Junior Member
Join Date: Jun 2010
Posts: 22
|
One of the things that's always annoyed me about d20 and was carried over to Pathfinder was the maximum Dex bonus based on armor type. Short of recreating every type of armor, is there a way to disable this? I prefer the Dex bonus to be there regardless of armor worn as the various feats offset (or enable) penalties.
Thanks! |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
Make an adjustment that adds the positive difference between current Dex and Max Dex.
|
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You could use a foreach to search through all armor on the character, setting the max dex of that armor to 999. You'd put this on a Mechanic. The max dex is stored in the arMaxDex field, and it looks like Pre-Levels/1000 should be a good phase and priority for this.
|
#3 |
Junior Member
Join Date: Jun 2010
Posts: 22
|
Quote:
How difficult would this be to implement? Thanks! |
|
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
In the editor, create a new file - the name doesn't matter, but leave it in the default folder with the default extension. Go to the Mechanics tab, and create a new mechanic. Give it an appropriate name and an Id.
At the top right, press the Eval Scripts button, and create a new script. At the top of that, set the Phase to Pre-Levels and the Priority to 1000. Copy the following text into the script: Code:
foreach pick in hero from hero in BaseArmor eachpick.field[arMaxDex].value += 999 nexteach Save your creation, exit the editor, and press ctrl-r to quick-reload the files. Now in the configure hero menu, find and enable the source you created for this. Try adding some armor - it should have a max dex of "-" (none). |
#5 |
Junior Member
Join Date: Jun 2010
Posts: 22
|
Excellent! Thank you Mathias, this should do the trick!
Kurt |
#6 |
Junior Member
Join Date: Jun 2010
Posts: 22
|
Real life got in the way of trying this for a while and when I did I ran into an issue. I followed the directions above and when I tried to the "Test Now" button, received an error message:
Hero Lab was forced to stop compilation after the following errors were detected: Syntax error in 'eval' script for Thing 'KEF001'(Eval script '#1') on line 1 -> Non-existent component 'hero' referenced by script I've attached a copy of the file to this post. Any pointers on where I messed up? Thanks! Kurt |
#7 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
Quote:
Code:
foreach pick in hero from BaseArmor eachpick.field[arMaxDex].value += 999 nexteach |
|
#8 |
Junior Member
Join Date: Jun 2010
Posts: 22
|
Quote:
Thanks! |
|
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Attached is a working version based on the .zip file you uploaded. I also fixed the "Source" you had it attached to so that it does not turn on if just any house rule is selected.
So when you add this .user file a new source under "House Rules" will show that says "No armor max dex". Now when buying armor it will still show a Max dex, but as soon as it is added to your character the max dex will be removed.... 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 |
|
|