• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Derived Traits Hide/Unhide

SeeleyOne

Well-known member
Making a Derived Trait is easy. We have several examples to choose from, the easiest being Charisma. There are some options like "Show as a General Trait", "Show as a Combat Trait", and "Show as a General Trait". These are simple true/false things that you set when plugging data into the Derived Trait.

But what if you want the trait to only appear if someone has a particular Edge?

For example, since it can be annoying to do the math yourself I made it so that there is a Command Radius as a Derived Trait. But a character needs to have the Leadership Edge to have a value greater than zero. So it would be great if this trait hid itself unless the value > 0. I am thinking that this is likely an Eval Script mod, but I do not know what to do with it.

Another example, I made a Derived Trait for size, which automatically does all of the various mods that are related to size (plug it in, and the sheet does the rest). But in this case, it should only show if the value is less than or greater than 0 (anything but 0).
 
I don't know the answer, but I would say it would be cool to get both of those, Size and Command Radius, added into HL in general. They don't come up often, admittedly, but for the players that do have characters that use those Traits it would be really helpful to have them.
 
SeeleyOne, since this is Savage Worlds, which has the source code available, here's how to look this sort of question up for yourself:

Look at the tab or summary panel this is on - in this case, traits are displayed on the basics tab and the basics summary panel. So, in the source code, open up tab_basics.dat or summ_basics.dat in an editor.

Now, look through there until you find a table that is talking about traits. Here's the one in tab_basics:

Code:
<!-- baTrait portal
Presents a fixed table with all derived traits in it. The sortset allows
us to dictate the order of display via a hand-numbered sequence. All traits
are always visible, so we don't need a scroller.
-->
<portal
id="baTrait"
style="tblInvis">
<table_fixed
component="Derived"
showtemplate="baTrtPick"
showsortset="explicit"
scrollable="no">
<list>!Hide.Trait</list>
<headertitle><![CDATA[
@text = "Derived Traits"
]]></headertitle>
</table_fixed>
</portal>

Look at the <list> element there - you'll see that it's "!Hide.Trait" - not Hide.Trait. So, that means that if you assign the Hide.Trait tag to your item, it will be hidden and won't show.

(P.S. I notice something about this table that you'll want to put on CapedCrusader's to-do list - because this table is missing this setting:

alwaysupdate="yes"

The fact that the trait is hidden or not won't change whether it appears in the table or not until the user has purchased something, deleted something, or until you switch tabs and come back to that tab. Unfortunately, to save calculation time, unless that setting is turned on, Hero Lab won't re-test the list of what should and shouldn't be in that table until one of the conditions I listed are met.)
 
Thank you for the replies.

I will play around with this when I have some free time. Stupid school and family responsibilities get in the way of my hobby time.

How do I get it put on CapedCrusader's to-do list?
 
Just post it in the requests thread stickied on this forum, although if it helps any I already posted it there. Then again if you want to +1 that (and/or anything else you see in that thread) it wouldn't hurt to do so just to lend some level of support for some of the things in particular the community might like to see... come to that maybe I should go through that thread and make a consolidate list of the requests we have there so far...
 
Back
Top