I'm encountering an issue. My bootstrap condition seems to be working the opposite of how I would expect it to, and that is confusing me.
Here is what I want to do, if the feat's checkbox is active on the in play tab, and if we are not a natural lycanthrope, then forward a custom tag to the hero. If the custom tag is on the hero, bootstrap the afflicted lycanthrope template, otherwise add bonuses to our stats.
Here are the codes I am using:
First 500
~ If our related feat is not active, stop now.
doneif (hero.childfound[fFeatname].field[abilActive].value = 0)
~ If we have no Natural Werewolf template, forward a tag to the hero that says it is ok to bootstrap the Afflicted Werewolf template.
if (hero.picklives[tmLyWolfN] = 0) then
perform hero.assign[Custom.LycAfflict]
endif
Pre Attributes 10000
~ If we do not have the custom tag but the feat is active, then we were already a natural lycanthrope and should boost our stats.
if (hero.childfound[fFeatname].field[abilActive].value <> 0) then
if (hero.tagis[Custom.LycAfflict] = 0) then
hero.child[aSTR].field[aNormMod].value += 2
hero.child[aCON].field[aNormMod].value += 2
endif
endif
The Afflicted Werewolf template is being bootstrapped with the following condition:
First 500
count:Custom.LycAfflict <> 0
Now, the code seems to be working, the Custom tag is being forwarded to the hero when the ability is active, but it seems to be having the opposite effect, and not bootstrapping the template when the tag is present. Instead, the template starts bootstrapped, and when you check the box to make the feat active, it disappears.
As I understand it, once the condition is true, the bootstrap should go through, which is why "count:Classes.Whatever >= X" works for bootstrapping things based on more than X class levels. Is that incorrect? If I reverse the Bootstrap condition to "count:Custom.LycAfflict = 0" then it seems to work correctly...
HAVE I GONE MAAAD!?!?
Here is what I want to do, if the feat's checkbox is active on the in play tab, and if we are not a natural lycanthrope, then forward a custom tag to the hero. If the custom tag is on the hero, bootstrap the afflicted lycanthrope template, otherwise add bonuses to our stats.
Here are the codes I am using:
First 500
~ If our related feat is not active, stop now.
doneif (hero.childfound[fFeatname].field[abilActive].value = 0)
~ If we have no Natural Werewolf template, forward a tag to the hero that says it is ok to bootstrap the Afflicted Werewolf template.
if (hero.picklives[tmLyWolfN] = 0) then
perform hero.assign[Custom.LycAfflict]
endif
Pre Attributes 10000
~ If we do not have the custom tag but the feat is active, then we were already a natural lycanthrope and should boost our stats.
if (hero.childfound[fFeatname].field[abilActive].value <> 0) then
if (hero.tagis[Custom.LycAfflict] = 0) then
hero.child[aSTR].field[aNormMod].value += 2
hero.child[aCON].field[aNormMod].value += 2
endif
endif
The Afflicted Werewolf template is being bootstrapped with the following condition:
First 500
count:Custom.LycAfflict <> 0
Now, the code seems to be working, the Custom tag is being forwarded to the hero when the ability is active, but it seems to be having the opposite effect, and not bootstrapping the template when the tag is present. Instead, the template starts bootstrapped, and when you check the box to make the feat active, it disappears.
As I understand it, once the condition is true, the bootstrap should go through, which is why "count:Classes.Whatever >= X" works for bootstrapping things based on more than X class levels. Is that incorrect? If I reverse the Bootstrap condition to "count:Custom.LycAfflict = 0" then it seems to work correctly...
HAVE I GONE MAAAD!?!?