Senior Member
Join Date: Jan 2011
Location: Flint, MI
Posts: 100
|
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) |
#1 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
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 |
#2 |
Senior Member
Join Date: Jan 2011
Location: Flint, MI
Posts: 100
|
Yes, the area of effect (20-ft radius, 15-ft cone, etc.)
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
"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. |
#4 |
Senior Member
Join Date: Jan 2011
Location: Flint, MI
Posts: 100
|
I when I use ".tagis[sArea.?]" I get a group not definded error. Any thoughts on that.
|
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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. |
#6 |
Senior Member
Join Date: Jan 2011
Location: Flint, MI
Posts: 100
|
Uh, so dumb question. How do I transition to the spell from the MM?
|
#7 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
parent.field[WHATEVER]
|
#8 |
Senior Member
Join Date: Jan 2011
Location: Flint, MI
Posts: 100
|
That did it, thanks guys.
|
#9 |
|
|