Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

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

Old April 25th, 2012, 10:25 PM
I am trying to create a metamagic feat that requires the spell to have an area. I see that there is a field called sArea, but I can't figure how to validate it. Any help in that area would be great. I was working along these lines.

Thanks

Code:
validif (component.BaseSpell.field[sArea.?] <> 0)
mbran01 is offline   #1 Reply With Quote
chiefweasel
Senior Member
 
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322

Old April 26th, 2012, 04:10 AM
Do you mean an area of effect for the spell?

Web site - Cheese Weasel Logistics - www.cheeseweasel.net
Twitter - @CheeseWeaselGMZ
For user created content check out www.d20pfsrd.com and www.cheeseweasel.net
For video demos of Hero Lab go to http://www.youtube.com/user/TheChiefweasel?blend=9&ob=5
chiefweasel is offline   #2 Reply With Quote
mbran01
Senior Member
 
Join Date: Jan 2011
Location: Flint, MI
Posts: 100

Old April 26th, 2012, 05:16 AM
Yes, the area of effect (20-ft radius, 15-ft cone, etc.)
mbran01 is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 26th, 2012, 05:10 PM
Quote:
Originally Posted by mbran01 View Post
Code:
validif (component.BaseSpell.field[sArea.?] <> 0)
"sArea.?" is a tag not a Field. To get started think of fields as what holds a numeric value and a tag as words separated by a period.

So you can do ".tagis[sArea.?]". That will resolve as true if the spell has any Area Tags.

If you want to be valid for a specific area, assuming Cone 15ft is 15ft, you would look for ".tagis[sArea.15ft]". I am no where near HL so I can't find the actual sArea tags that are valid but you will be able to see them on the spell Thing itself.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #4 Reply With Quote
mbran01
Senior Member
 
Join Date: Jan 2011
Location: Flint, MI
Posts: 100

Old April 26th, 2012, 06:27 PM
I when I use ".tagis[sArea.?]" I get a group not definded error. Any thoughts on that.
mbran01 is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old April 26th, 2012, 07:17 PM
Area is recorded on a spell in a field, it doesn't actually have a tag group associated. If your Metamagic needs an area, you can check if the area field is empty, and if not make the selection valid. Like so:

validif (field[sArea].isempty = 0)

You might have to transition from the MM to the container (the custom spell) to check the field, look at some other MM for how to do that.
Aaron is offline   #6 Reply With Quote
mbran01
Senior Member
 
Join Date: Jan 2011
Location: Flint, MI
Posts: 100

Old April 27th, 2012, 06:00 PM
Uh, so dumb question. How do I transition to the spell from the MM?
mbran01 is offline   #7 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old April 27th, 2012, 07:44 PM
parent.field[WHATEVER]
Aaron is offline   #8 Reply With Quote
mbran01
Senior Member
 
Join Date: Jan 2011
Location: Flint, MI
Posts: 100

Old April 30th, 2012, 04:26 AM
That did it, thanks guys.
mbran01 is offline   #9 Reply With Quote
Reply


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 11:00 AM.


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