I'm having trouble figuring out what is wrong with my code. This is supposed to add situational text on any saves the Hero is not proficient with, while the referenced ability is active.
It shows the situational text on all saveswhen activated, no matter what I do.
The weird thing is, almost the exact same code works just fine for skills. Only the non-proficient skills get the situational when activated.
I don't think it's a timing issue, as I've tried a whole bunch of different ones. Interestingly enough, any timing before Final phase causes the situational to show up twice on each save.
It shows the situational text on all saveswhen activated, no matter what I do.
Code:
~ If we're disabled, do nothing &
doneif (tagis[Helper.Disable] <> 0 )
doneif (hero.childfound[cWlk5CPacTal].field[abilActive].value = 0)
var sText as string
sText = "+1d4"
foreach pick in hero from BaseSave where "!Helper.ProfDouble & !Helper.Proficient"
#situational[eachpick,sText,field[thingname].text]
nexteach
The weird thing is, almost the exact same code works just fine for skills. Only the non-proficient skills get the situational when activated.
Code:
~ If we're disabled, do nothing &
doneif (tagis[Helper.Disable] <> 0 )
doneif (field[abilActive].value = 0)
var sText as string
sText = "+1d4"
foreach pick in hero from BaseSkill where "!Helper.ProfDouble & !Helper.Proficient"
#situational[eachpick,sText,field[thingname].text]
nexteach
I don't think it's a timing issue, as I've tried a whole bunch of different ones. Interestingly enough, any timing before Final phase causes the situational to show up twice on each save.