• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help with metamagic

mbran01

Well-known member
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).
 
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
 
Back
Top