Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Santok1972
Junior Member
 
Join Date: Mar 2019
Posts: 12

Old May 6th, 2023, 08:37 AM
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.
Santok1972 is offline   #1 Reply With Quote
ploturo
Member
 
Join Date: May 2021
Posts: 84

Old 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
ploturo is offline   #2 Reply With Quote
Santok1972
Junior Member
 
Join Date: Mar 2019
Posts: 12

Old June 16th, 2023, 05:30 PM
Oh my goodness, I cannot believe it was that silly of a mistake.

Thank you so much.
Santok1972 is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:44 PM.


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