View Single Post
blzbob
Senior Member
Volunteer Data File Contributor
 
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407

Old December 8th, 2013, 09:03 AM
I'm trying to get the hardness loss to be automatically calculated for this ability.

Quote:
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):

Quote:
~ 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:

Quote:
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?
blzbob is offline   #1 Reply With Quote