Hi
I'm trying to write a feat, which has several options. Depending on which option is chosen, I want a different Special Ability to show on the Specials tab.
So far, I can offer the choice with a custom expression in the feat based on a user tag denoting the set of possible abilities.
I can write an eval script in the feat to set another user tag on the hero denoting which special ability to activate.
I can see (using the hero tags floating info window) that the second tag gets set on the hero.
How do I either activate the relevant ability with a script in the feat or with a script in the ability?
I tried an eval script in the ability along the lines of
But I'm not sure what to do to get that script to run, or if - when it is run - it will do what I want.
Should I instead set ShowSpec on the tag from the feat? How do I do that?
Is in fact setting ShowSpec the right thing to do?
Help?
Thanks
Karl
I'm trying to write a feat, which has several options. Depending on which option is chosen, I want a different Special Ability to show on the Specials tab.
So far, I can offer the choice with a custom expression in the feat based on a user tag denoting the set of possible abilities.
I can write an eval script in the feat to set another user tag on the hero denoting which special ability to activate.
I can see (using the hero tags floating info window) that the second tag gets set on the hero.
How do I either activate the relevant ability with a script in the feat or with a script in the ability?
I tried an eval script in the ability along the lines of
Code:
if (hero.tagis[User.Abil01] <> 0) then
perform assign[Helper.ShowSpec]
endif
But I'm not sure what to do to get that script to run, or if - when it is run - it will do what I want.
Should I instead set ShowSpec on the tag from the feat? How do I do that?
Is in fact setting ShowSpec the right thing to do?
Help?
Thanks
Karl
Last edited: