• 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

Situational saving throw bonuses problem.

bmarten88

New member
Hello all! This is my first time posting. I have had HL for a while now and have had been enjoying playing around with both it and browsing these forums. I have, however, hit a brick wall these past few days. I am trying to set up a situational saving throw bonus that scales with class level as an eval script in a class special ability. I modeled it after the Diabolist Raised Campaign Trait from the Council of Thieves Player's Guide. Here is what I have so far running at Render/10000:

field[abValue].value += 1
field[abValue2].value += 2
field[abValue3].value += 3

if (hero.tagis[Classes.ShadowAde] >= 9) then
#situational[hero.childfound[svAll],signed(field[abValue3].value) & " Trait bonus vs. spells from the schools of enchantment, illusion, and necromancy, as well as spells with the darkness descriptor.",field[thingname].text]
elseif (hero.tagis[Classes.ShadowAde] >= 6) then
#situational[hero.childfound[svAll],signed(field[abValue2].value) & " Trait bonus vs. spells from the schools of enchantment, illusion, and necromancy, as well as spells with the darkness descriptor.",field[thingname].text]
elseif (hero.tagis[Classes.ShadowAde] >= 3) then
#situational[hero.childfound[svAll],signed(field[abValue].value) & " Trait bonus vs. spells from the schools of enchantment, illusion, and necromancy, as well as spells with the darkness descriptor.",field[thingname].text]
endif

My problem is that the bonus will not show up when written as an if/then statement, but will show up just fine if all I use is the #situational macro like so:

#situational[hero.childfound[svAll],signed(field[abValue].value) & " Trait bonus vs. spells from the schools of enchantment, illusion, and necromancy, as well as spells with the darkness descriptor.",field[thingname].text]
.

Is there any way to make this work? Any help at all would be greatly appreciated.
 
tagcount[Classes.ShadowAde], rather than tagis[Classes.ShadowAde] if you want to count levels - tagis will only report the presence (1) or absense (0) of those tags.
 
Thank you for getting back to me Mathias. One of the best parts about these forums is how incredibly helpful everyone is, even on the apparently simple things such as this. Sorry I couldn't figure it out, I was afraid it would be something stupid like that. It worked perfectly, "tagcount" has been noted and added to my list, I won't have to go looking for it again.
 
Back
Top