Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
nlmacdonald
Junior Member
 
Join Date: Oct 2018
Posts: 29

Old November 23rd, 2018, 11:50 AM
Can the abilActive field be updated via a script?
nlmacdonald is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 23rd, 2018, 12:12 PM
Whenever someone asks something weird like this, I'd rather know the objective, because while this is an option, it's not usually the best way to handle things.
Mathias is online now   #2 Reply With Quote
nlmacdonald
Junior Member
 
Join Date: Oct 2018
Posts: 29

Old November 23rd, 2018, 04:17 PM
Okay. This is connected to an earlier thread you commented upon. My goal is to create an option for characters to use Auras. Much like the class ability of the Marshal or Dragon Shaman class in 3.5.

I would like to ensure that the character only has one Aura active at a time. To activate an aura, the character check the checkbox in the activated abilities list. What I was attempt was to create a foreach loop that would scan through all picks on a character. If these pick were one of these auras I would force the abilActive value to 0 to turn off the aura. This way the only aura that would be active would be the one just chosen.

I implemented this, but received an error message from the compiler -> "Only derived fields can generally be modified via scripts"

I assume this means that you cannot manipulate this element via the script.
nlmacdonald is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 23rd, 2018, 05:26 PM
The inquisitor's judgements are a similar thing - a variety of abilities, but they're mutually exclusive with each other - they can't be activated at the same time (with some exceptions). In cases like this, we prefer not to control things for the user, but instead to just use eval rules to notify the user that it's not valid to have more than one of these active at a time.
Mathias is online now   #4 Reply With Quote
nlmacdonald
Junior Member
 
Join Date: Oct 2018
Posts: 29

Old November 25th, 2018, 03:26 PM
Thanks. I'll check it out.
nlmacdonald is offline   #5 Reply With Quote
Reply


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 08:12 AM.


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