Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I working on this code
Code:
~ If not human get out now doneif (#hasrace[rHuman] = 0) ~set our focus to the hero's race perform hero.findchild[BaseRace].setfocus doneif (state.isfocus = 0) ~ Give one Nationality focus.field[rGiveSp2nd].value +=1 perform focus.assign[Helper.OptCustom] focus.field[rSpec2ndSi].text = "Nationality" Syntax error in 'eval' script for Thing 'mechFGMPNa' (Eval Script '#2') on line 1 -> Only derived fields can generally be modified via scripts (field 'rSpec2ndSi') It's just a text field, any ideas? |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Not all fields are setup to allow outside scripts to change the value.
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. |
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Ok, seems weird, you change all the others, just not that one. Maybe it's a bug. I'll send it in.
|
#3 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Well, I heard back from tech support, and they said that is a closed field. Seems weird that you can re-name rSpecSing, rSpecName and rSpec2ndNm but not rSpec2ndSi.
Anyway they told me to ask here for help. So seeing rSpec2ndNm works but will not show. Any ideas how to fool HL into thinking it multiples and not single abilities so it will use the multiple name? |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I'd build this as a configurable bootstrapped from a mechanic, rather than trying to use the racial fields.
|
#5 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Yea, didn't really want to do that. I thought about just moving them to the primary slot, (I can rename the field there). But I couldn't find a good way to hide all the Ethnicity with a loop.
|
#6 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Even if you could use the 2nd racial custom table, there is still several common races (Tiefling and Aasimar) which can use both so you'd run into the same issue as with the primary. Configureable is the way I'd go too.
That said, we'll switch the field from static to derived so that it can be affected by scripts. |
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
A Configureable is the safest route as future changes/books won't destroy what you do. 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. |
|
#8 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
For this, it's just for humans, but Thank You so very much for switching the field!!
|
#9 |
|
|