Senior Member
Join Date: Jan 2011
Location: Flint, MI
Posts: 100
|
I am trying to validate the sArea field on a metamagic feat but I keep getting an error. The metamagic is valid if the spell has a range of personal, touch, or has an area. Here is what I have so far.
if (tagis[sRange.Personal] + tagis[sRange.Touch] + <> 0) then @valid = 1 elseif (?.field[sArea.Area] <>0) @valid = 1 endif I hope I am not too far off base with this (if I am I understand even less then I thought). |
#1 |
Senior Member
Join Date: Jan 2011
Location: Flint, MI
Posts: 100
|
well this seems to sort of work. I now get an error when I add a spell with the metamagic instead of when I test it in the editor. Here is what I have now.
@valid = 0 if (@valid = 0) then foreach pick in hero from BaseSpell where "sArea.Area" @valid = 1 nexteach elseif (tagis[sRange.Personal] + tagis[sRange.Touch] <> 0) then @valid = 1 endif |
#2 |
|
|