Junior Member
Join Date: Dec 2015
Posts: 8
|
I've been tearing my hair out over this for a couple of days. I'm adding a template that will set a base ability score to 18. I can't figure out how to access this value, either for setting or for reading. I can set all sorts of bonuses and penalties, and I can determine the base value in a roundabout way from, for example, aSTR->aCost, but I can't find a way to access the actual base value. Any help greatly appreciated.
|
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
What do you mean by "base ability score"? The number rolled or chosen before any racial modifiers are applied?
|
#2 |
Junior Member
Join Date: Dec 2015
Posts: 8
|
|
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
To read the value, try subtracting the aStartMod field from the aUser field and using that. You can't really set a user value, but you can force the FINAL value to something specific using the aNormForce field. Alternately, you can set up an eval rule to complain if "aUser - aStartMod" does not equal the value you want.
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#5 |
Junior Member
Join Date: Dec 2015
Posts: 8
|
It appears that all I have to do is assign a value of 18 to aNormForce and I can still reap the benefits of other things that affect the final score, like so:
hero.child[aSTR].field[aNormForce].value = 18 One weird thing is that the value doesn't appear to return to normal after I remove the template. |
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
See my post above. Once "forced" that is the final value period now actually. Nothing will be able to adjust the value again.
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. |
#7 |
Junior Member
Join Date: Dec 2015
Posts: 8
|
|
#8 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Yes, hence my putting the word "final" in all caps. Just offering different ways he could go about it, so he can decide what works best for whatever his thing is.
|
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I wouldn't use "terrible" I would use that is just how it works. Many times its fine but you need to understand what and "how" something works. I have stuff in my houserules file that make use of this feature and it works very nicely. This is all just part of the learning process of HL.
Ahh. Well forgive me I just like being very "verbose" about stuff is all. 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. |
#10 |
|
|