Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
You will need to write an eval script to modify the race. By putting the fields on the R cust special you are trying to modify fields that don't exist on the R Cust Special instead of the race.
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. |
#11 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
Great. I don't know why I thought it would be easy.
So how do I script to add the fields rHeightMnM, rHeightMnF, rWeightMnM, and rWeightMnF as well as the tags for HeightDice, HeightSize, and WeightMult to override the racial defaults? |
#12 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
Can you find any code anywhere that deals with changing the value of a field?
Can you figure out how to delete an existing tag value and add a new tag value? Think in terms of abilities in Pathfinder that alter how something else functions - that's the sort of ability that will be altering the fields and tags of other things. Since I can't think of a good example to lead you to in order to give you this, here's how to reach the race, no matter which race it is: Code:
perform hero.findchild[Race].setfocus doneif (state.isfocus = 0) Code:
focus. |
#13 |
Senior Member
Join Date: Apr 2010
Posts: 152
|
Okay, I've been trying to do this myself and I keep running into various errors. First off, if I put in the findchild code as above, without anything else, I get this error:
Quote:
Code:
focus.field[rHeightMnM].value = 60 Quote:
Last edited by Matt Droz; February 16th, 2012 at 09:32 AM. |
||
#14 |
Senior Member
Join Date: Apr 2010
Posts: 152
|
*bump*
Any suggestions? |
#15 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Don't recommend it allot but you could try trustme at the top of the script.
Code:
trustme 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. |
#16 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I'll look into whether switching them to derived fields would break anything. If not I will and then you can modify them.
If you're manipulating the tags that control added die size, those scripts run an First 650, I think. Make sure you run your script before that. |
#17 |
Senior Member
Join Date: Apr 2010
Posts: 152
|
Cool, thanks!
|
#18 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Alright, I switched the fields to derived, you should be able to work with them after the next release.
|
#19 |
Senior Member
Join Date: Apr 2010
Posts: 152
|
Any idea when the next release is going out?
|
#20 |
Thread Tools | |
Display Modes | |
|
|