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