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:
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:
Is there any way to make this work? Any help at all would be greatly appreciated.
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.