Metal Sonic
Member
Hello,
It's the first script that I'm writing, but I'm lost and that doesn't compile.
The error is
Any help?
It's the first script that I'm writing, but I'm lost and that doesn't compile.

Code:
var val as number
val = field[pwRanks].value
if (val == 1) then
field[pwInfo].text = "Removes one Injuried condition per 20 minutes"
elseif (val == 2)
field[pwInfo].text = "Removes one Injuried condition each 5 minutes"
elseif (val == 3)
field[pwInfo].text = "Removes one Injuried condition each 1 minute (10 Rounds)"
elseif (val == 4)
field[pwInfo].text = "Removes one Injuried condition each 30 seconds (5 Rounds)"
elseif (val == 5)
field[pwInfo].text = "Removes one Injuried condition each 12 seconds (2 Rounds)"
elseif (val == 6)
field[pwInfo].text = "Removes one Injuried condition each 6 seconds (1 Round)"
elseif (val == 7)
field[pwInfo].text = "Removes one Injuried and the Disabled condition each 6 seconds (1 Round)"
elseif (val == 8)
field[pwInfo].text = "Removes one Injuried, the Disabled and the Dying condition each 6 seconds (1 Round)"
endif
The error is
Code:
Syntax error in 'eval" script for Thing 'pwRegenera' (Eval Script #1) on line 3
-> Error parsing right-side expression in relational comparison
Any help?
