RayPrancer
Well-known member
How do I code so that, for example, an Ability that can only be picked three times presents an error message if more than three picks are made. I'm pretty sure I need to count the number of times it's picked, but not sure what the code to do so is or the correct syntax for the "iserror"
A more explicit example: I have an ability called Extra Elemental Reduction with the Unique ID abXElemRed - it's limited to seven picks, so an error needs to appear if the number of picks satisfies the conditions "abXElemRed > 7".
It's not simply a matter of saying
so where am I going wrong?
I'm trying to create the ability via the editor rather than the data files, as it is dependant on a source.
A more explicit example: I have an ability called Extra Elemental Reduction with the Unique ID abXElemRed - it's limited to seven picks, so an error needs to appear if the number of picks satisfies the conditions "abXElemRed > 7".
It's not simply a matter of saying
Code:
if abXElemRed < 8 then
@valid
endif
I'm trying to create the ability via the editor rather than the data files, as it is dependant on a source.
Last edited: