• 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

Just a couple more questions.

jbearwillis

Well-known member
1) I have a trait that gives a 1 free language and 3 languages that become racial languages. I have it all working, but would like for it to check on the free language to see if the character already has it and if so not give it to the character so as not to have the language show up twice on the character.
if i have Elven and the free language is elven - not to give it to the character.

2) How would i go about a trait giving a choice between 3 different feats.
 
1) I have a trait that gives a 1 free language and 3 languages that become racial languages. I have it all working, but would like for it to check on the free language to see if the character already has it and if so not give it to the character so as not to have the language show up twice on the character.
if i have Elven and the free language is elven - not to give it to the character.

2) How would i go about a trait giving a choice between 3 different feats.

1) This is how you'd code it if the language was Elven. Replace lElven with the ID for the language you are granting.

if (hero.picklives[lElven] <> 0) then
your code that adds the free language
endif

2) As an example, if the feats were Dodge, Diehard, and Toughness, you'd put "component.BaseFeat & thingid.fDodge | thingid.fDiehard | thingid.fToughness" in the Custom Expression box in the editor (minus the quotes), and Restrict First List to "All Things".

just replace the feat IDs with what you want them to be able to chose from.
 
Last edited:
Ok that would work but I bootstrapped the language to the trait because for the life of me I tried to script it with no luck. So I bootstrapped it. So how would I script it to give the free language instead of bootstrapping it and thanks on the number two question that did the trick
Well on question two I found out it let me have a choice but it doesn't add the Feat in the feats section and doesn't add anything to the sheet.
 
Last edited:
Ok that would work but I bootstrapped the language to the trait because for the life of me I tried to script it with no luck. So I bootstrapped it. So how would I script it to give the free language instead of bootstrapping it and thanks on the number two question that did the trick
Well on question two I found out it let me have a choice but it doesn't add the Feat in the feats section and doesn't add anything to the sheet.

Create a custom tag then assign it if the language isnt present on the hero.

click on User Tags and add it through new tag.

then assign it like.
Code:
if (hero.picklives[lElven] <> 0) then
perform hero.assign[Custom.NoElven]
endif

then in the bootstrapped language, add the condition
Try First 500 or something.

Code:
hero#Custom.NoElven

This makes it so it will only bootstrap the language if the tag is present.
 
Back
Top