Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   RaceGroup Question (http://forums.wolflair.com/showthread.php?t=67792)

Santok1972 May 6th, 2023 08:37 AM

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.

ploturo May 26th, 2023 12:49 PM

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


Santok1972 June 16th, 2023 05:30 PM

Oh my goodness, I cannot believe it was that silly of a mistake.

Thank you so much.


All times are GMT -8. The time now is 02:37 PM.

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