I'm trying to get the hardness loss to be automatically calculated for this ability.
I tried this (I took it from Stunning Fist):
I get the error:
Where did I go wrong?
Deteriorate: The alchemist can weaken the durability of inanimate objects. On a successful hit, the object loses 1 hardness for every two levels of the alchemist. Attended and magical objects are allowed a Fortitude saving throw to negate this effect: DC 10 + one-half alchemist level + alchemist’s Intelligence modifier.
I tried this (I took it from Stunning Fist):
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
var levels as number
levels = #totallevelcount[] - #levelcount[Alchemist]
field[trkMax].value += #levelcount[Alchemist] levels/2,0,-1
I get the error:
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'eval' script for Thing 'cRGGAlDe' (Eval Script '#1') on line 7
-> Error in right-side expression of assignment
Where did I go wrong?