• 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

validate spell area

mbran01

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