TCArknight
Well-known member
Is there anything special I need to do to have a creation script set the default value of a field with a pick is added?
The notify shows as expected, but when I check the field histories the value is ) and says unchanged since creation.
Thoughts?
Code:
<creation><![CDATA[
var career as string
var careerspec as string
var speccost as Number
var speccount as Number
careerspec = tagids[CareerSpec.?]
career = hero.findchild[Career].tagids[CareerSpec.?]
speccount = 1
speccount += hero.tagcount[HasSpecialization.?]
speccost = 10 * speccount
notify speccost
field[stXPCost].value += speccost
notify field[stXPCost].value
]]></creation>
Thoughts?