Senior Member
Join Date: Aug 2010
Posts: 576
|
if I wanted to add a +5 ac bonus to the adamantine material would this be the correct eval script
~ If we're equipped, add an armor bonus if (field[gIsEquip].value <> 0) then hero.child[ArmorClass].field[tAC].field[Bonus].value + 5 Endif I am getting this error Hero Lab was forced to stop compilation after the following errors were detected: Syntax error in 'eval' script for Thing 'mWATAdamup' (Eval Script '#2') on line 3 -> Invalid use of a reserved word in script |
#1 |
Senior Member
Join Date: Feb 2015
Posts: 676
|
I recommend looking at the Bone material for an example of how a special material can modify the item's AC bonus.
|
#2 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Right, the error you're getting is because you're not putting an = on the line where you add 5. It should be "+=" instead of just "+". But more than that, you're pointing the script at the wrong place. Instead of going to the ArmorClass helper on the hero, try manipulating the armor that the material is inside.
|
#3 |
Thread Tools | |
Display Modes | |
|
|