• 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

favored terrain

Frodie

Well-known member
I know I have this backwards. I am trying to get the abValue3 to = the abValue from the thingid.ft? Any ideas? Thank you!

Code:
foreach pick in hero from Ability where "thingid.ft?"
  eachpick.field[abValue].value = field[abValue3].value 
nexteach
 
so you want to loop through the favored enemies and add the individual situationals for each skill inside the loop

Code:
foreach pick in hero from BaseCustUs where "Helper.Secondary"
 
  #situational[hero.child[skillid], signed(eachpick.field[abValue].value) & " blah blah blah", field[thingname].text]
nexteach

you could probably use eachpick.field[name].text for the situational reference if you just want to show its from the favored terrain.
 
Works fine and applies the bonus, but is there a good way to get the name with the chosen enemy to show up when you look at the skill? I tiried livename, listname, sbName, actName. But no go.

Code:
foreach pick in hero from BaseCustUs where "!Helper.Secondary"
    #situational[hero.child[skDiplo], signed(eachpick.field[abValue].value) & field[livename].text, field[thingname].text]
nexteach
  endif
 
Last edited:
shortname didn't get it. I also tried

Code:
if (field[usrIndex].value = 1) then
foreach pick in hero from BaseCustUs where "!Helper.Secondary"
    #situational[hero.child[skIntim], signed(eachpick.field[abValue].value) & signed(eachpick.field[shortname].text), field[thingname].text]
nexteach
  endif

But all I got was a +0 after the +2
 
When you used "signed()" with a text string you get +0, because text strings usually don't have any numbers in them. Try getting rid of the signed around the shortname field.
 
Very cool! Works great! Thanks yall!

Code:
foreach pick in hero from BaseCustUs where "!Helper.Secondary"
    #situational[hero.child[skDiplo],signed(eachpick.field[abValue].value), eachpick.field[thingname].text]
nexteach
 
Back
Top