Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
mbran01
Senior Member
 
Join Date: Jan 2011
Location: Flint, MI
Posts: 100

Old April 16th, 2012, 05:27 PM
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).
mbran01 is offline   #1 Reply With Quote
mbran01
Senior Member
 
Join Date: Jan 2011
Location: Flint, MI
Posts: 100

Old April 16th, 2012, 06:08 PM
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
mbran01 is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:14 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.