Quote:
Originally Posted by bodrin
Code:
~ Lets multiply our armor bonus by 10 which should give us our HP total
field[abValue].value += round(field[arBonus].value * 10,0,-1)
|
Your problem is on this line in the bolded section. You didn't give any transition so HL is looking for arBonus on the adjustment itself (thingid.pBodObHdHp). Basically your saying
hero.child[pBodObHdHp].field[arBonus].value which an adjustment does not have that field.
So I assume you set the selection menu to armor so you would want to change the script to the following:
Code:
~ If we're not enabled, get out now
doneif (field[pIsOn].value <> 1)
~ If nothing chosen, get out now
doneif (field[pChosen].ischosen <> 1)
~ Lets multiply our armor bonus by 10 which should give us our HP total
field[abValue].value += round(field[pChosen].chosen.field[arBonus].value * 10,0,-1)
~ Now lets add to the Hit point total to our name
field[pChosen].chosen.field[livename].text &= "Armor HP " & field[abValue].value