I'm getting a syntax error on the output line (@value = ) of the following script, with the message "Error parsing parameter 3 of function". Might anyone know why?
Code:
<calculate phase="Setup" priority="1000" name="Calc Bonus">
<after name="Level final"/><![CDATA[
var level as number
level = hero.tagvalue[Level.?]
@value = 1 + round(level / 4, 0, +1)
]]></calculate>