nlmacdonald
Active member
I'm having some trouble with a feat I'm creating. The feat allows the user to select from a number of optional powers. The powers were developed as Abilities and they have been bootstrapped to the feat. I've created conditional on each bootstrapped ability to check the abValue5 field for a particular value. So ability one might have the conditional fieldval:abValue5 = 2.
I have an eval script on the feat that runs on phase: Post-levels, Priority: 10000. The script resembles:
By this means, I was hoping to conditionally add an ability to the hero depending on the choice made with usrChosen1. Each of the abilities has [x] Show in Specials List? checked and also [x] Show in Activated Abilities List? is checked.
When selecting an option with usrChosen1, the ability doesn't appear in Special or under Activated Abilities. In reviewing tags on the hero, I can see
Group Name * Tag Name * Tag Id
Thing Identity * Power1 * thingid.Power1
When I remove the conditional from the bootstrapping on the feat. I get:
Group Name * Tag Name * Tag Id
Ability * Power1 * Ability.Power1
Activated * Power1 * Activated.Power1
ActiveList * Power1 * ActiveList.Power1
HasAbility * Power1 * HasAbility.Power1
I'm guessing that this means that when the conditional is present that the ability hasn't been bootstrapped to the hero. I will confirm that in reviewing the debugging for the feat that the abValue5 does have the value that I expect so I would assume that the conditional is met. I've tried playing around with the timing, but I haven't had any success.
Does anyone have some insight on what might be the problem?
Thanks
I have an eval script on the feat that runs on phase: Post-levels, Priority: 10000. The script resembles:
Code:
if (field[usrChosen1].chosen.tagexpr[thingid.Power1] <> 0) then
field[abValue5].value = 1
elseif (field[usrChosen1].chosen.tagexpr[thingid.Power2] <> 0) then
field[abValue5].value = 2
elseif (field[usrChosen1].chosen.tagexpr[thingid.Power3] <> 0) then
field[abValue5].value = 3
elseif (field[usrChosen1].chosen.tagexpr[thingid.Power4] <> 0) then
field[abValue5].value = 4
endif
By this means, I was hoping to conditionally add an ability to the hero depending on the choice made with usrChosen1. Each of the abilities has [x] Show in Specials List? checked and also [x] Show in Activated Abilities List? is checked.
When selecting an option with usrChosen1, the ability doesn't appear in Special or under Activated Abilities. In reviewing tags on the hero, I can see
Group Name * Tag Name * Tag Id
Thing Identity * Power1 * thingid.Power1
When I remove the conditional from the bootstrapping on the feat. I get:
Group Name * Tag Name * Tag Id
Ability * Power1 * Ability.Power1
Activated * Power1 * Activated.Power1
ActiveList * Power1 * ActiveList.Power1
HasAbility * Power1 * HasAbility.Power1
I'm guessing that this means that when the conditional is present that the ability hasn't been bootstrapped to the hero. I will confirm that in reviewing the debugging for the feat that the abValue5 does have the value that I expect so I would assume that the conditional is met. I've tried playing around with the timing, but I haven't had any success.
Does anyone have some insight on what might be the problem?
Thanks