ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: The Ghost on October 29, 2015, 03:26:48 AM
-
Was playing with a sub and get an issue with this if statement. Can someone explain what I'm not seeing.
set %heal 10 ; Number to heal before to heal or
; set %heal ( #MAXHITS - 10 ) ; this one doesn't work ???
sub health_check
if c in #charstatus
{
gosub scanbar
if _poison_ in %icons . #charid
gosub TM_NewCastSpell 24 self 1 10 10 ; Arch Cure
}
set %icons . #charid _
if #hits < ( #maxhits - %heal ) < --- this work if I enter a number.
; if #hits < %heal < ------------ this statement doesn't work
{
while #hits < #maxhits
{
gosub TM_NewCastSpell 28 self 1 10 10 ; G Heal
}
return
}
return
-
set %heal (#MAXHITS - 10) ; this one doesn't work ???
set %heal ( #MAXHITS - 10 )
you need a space after/before the parentheses
if #hits < %heal < ------------ this statement doesn't work
it works
my2c
-
The bracket space was just a miss typo here, my bad.
-
set %heal (#MAXHITS - 10) ; this one doesn't work ???
set %heal ( #MAXHITS - 10 )
you need a space after/before the parentheses
if #hits < %heal < ------------ this statement doesn't work
it works
my2c
If that is the case, the euo parser seems to be bad *giggles*