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
Redcap's Corner
Senior Member
 
Join Date: Jul 2010
Posts: 149

Old January 18th, 2015, 08:57 AM
I'm trying to code a class special ability that has an incrementer with a maximum value of 0 and a minimum value equal to the negative Intelligence modifier of the hero. Currently I'm checking the user-selected value of this incrementer at post-attributes/1000, though I may be able to check at a later point if necessary.

I have been trying to accomplish this by setting both the minimum and maximum values of the incrementer to 0 by default, but adding the following to the beginning of the script at post-attributes/1000.

Code:
field[actUserMin].value -= #attrbonus[aINT]
Unfortunately, I'm still getting 0 as my minimum value. Is there a particular timing when I'd need to make adjustments to the value of field[actUserMin]? Am I going to have access to the hero's final Intelligence modifier at that time?
Redcap's Corner is offline   #1 Reply With Quote
Redcap's Corner
Senior Member
 
Join Date: Jul 2010
Posts: 149

Old January 18th, 2015, 09:11 AM
As an addendum, if I open up the information window for this class ability's fields, it shows field[actUserMin] with the value I want (in this case -5 for a character with 20 Int), but it isn't actually applying that number to the incrementer, which makes me think the incrementer needs the information earlier. But I won't have access to the value of aINT much earlier, right? Is there a work-around?
Redcap's Corner is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old January 18th, 2015, 09:43 AM
"Search" is your friend on this forum. THIS thread has pretty much the exact same questions/issues and it has answers and timing information.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #3 Reply With Quote
Redcap's Corner
Senior Member
 
Join Date: Jul 2010
Posts: 149

Old January 18th, 2015, 09:44 AM
After digging around I've found that post-levels/500 is where I want to set actUserMin. Does anyone know a work-around for that priority that will get me to the hero's Intelligence bonus (which normally isn't calculated until post-attributes)?

EDIT: I did actually search pretty extensively, but didn't stumble across that thread. Thanks for pointing it out for me!
Redcap's Corner is offline   #4 Reply With Quote
Redcap's Corner
Senior Member
 
Join Date: Jul 2010
Posts: 149

Old January 18th, 2015, 09:53 AM
Hmm... so it actually isn't possible from the looks of that thread. A tracker will be wayyy too confusing in presentation for this ability. I guess my best bet is to set an arbitrary minimum that's lower than could conceivably be possible and then just set an error message if the user ever goes lower than they're allowed to?
Redcap's Corner is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old January 18th, 2015, 02:38 PM
Quote:
Originally Posted by Redcap's Corner View Post
Hmm... so it actually isn't possible from the looks of that thread. A tracker will be wayyy too confusing in presentation for this ability. I guess my best bet is to set an arbitrary minimum that's lower than could conceivably be possible and then just set an error message if the user ever goes lower than they're allowed to?
As you say, probably the eval rule route is the best here.
Aaron is offline   #6 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 10:05 PM.


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