![]() |
Junior Member
Join Date: Mar 2019
Posts: 12
|
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. |
![]() |
![]() |
Member
Join Date: May 2021
Posts: 84
|
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 |
![]() |
![]() |
Junior Member
Join Date: Mar 2019
Posts: 12
|
Oh my goodness, I cannot believe it was that silly of a mistake.
Thank you so much. |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|