What anyone see what I'm doing incorrectly? This if statement will fire regardless if I'm at max health or not. I've tested the max_hp () max_mp () functions to return 1 or 0 when I'm at max health/mana so I think the issue is with the arguments of the if statement?
Do I need to do if max_hp () == 1 then ?
if def.vitality == 0 and def.vitality_timer == 1 and max_hp () and max_mp () then
Send ('vitality')
end
function max_hp ()
if hp.cur == hp.max then return 1; else return 0; end
end
function max_mp ()
if mp.cur == mp.max then return 1; else return 0; end
endDo I need to do if max_hp () == 1 then ?