I working on this code
It gives the bonus fine, but it will not change the name and I get this error:
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?
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"
It gives the bonus fine, but it will not change the name and I get this error:
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?