• 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

RaceGroup Question

I am working on some custom dragons and dragon abilities for an ongoing Pathfinder 1st Edition campaign, and I seem to be getting stuck checking some of the tags on the dragons.

For one ability, I'm want to check if the dragon has the Chromatic Dragon Race Group tag, so I put it inside the following if, then check. However, the If check doesn't seem to be working. When I take the changes I want to make outside of this loop, they work just fine.

if (tagis[RaceGroup.ChromaDrag] <> 0) then


endif

The same is occurring for another ability that I want to make changes based upon the DragonAge tag.

if (tagis[DragonAge.VeryYoung] <> 0) then


endif

I'm sure it's likely something rather simple that I have messed up, but I haven't found a solution yet, so I'm reaching out to the great group here.

Thank you.
 
The default context is the pick/thing where the script is running from, so these are checking for the tags on that pick/thing.

If you want to check the tags on the active "hero" instead, you need to specify it
Code:
if (hero.tagis[RaceGroup.ChromaDrag] <> 0) then


endif
 
Back
Top