alright so I'm not the best for sure, but I was trying this out to get it to register an allies hps below 100% and cast heal on them, one issue regarding these is that they'll only check a single friend at a time, so I was planning to try and set it up to repeat the same script 3-4x while ignoring previous friends found unharmed, then pressed again it will clear the ignored friends and recheck all.
Now I had this working below.
@getfriend 'friend'
if not poisoned 'friend'
@ignoreobject 'friend'
else
setalias '0' 'friend'
cast 'Arch Cure'
waitfortarget 2000
@target '0'
pause 750
endif
(at this point I repeat it 3x then clearignorelist at bottom to make sure it checks multiples, if any ideas on how to improve the searching for poisoned friends process, that would be awesome.)
But I can't figure out how to find below 100% hps, or preferably like 80% if you can specify
Any help is appreciated
![Cheesy :D](http://www.scriptuo.com/Smileys/yarex2/cheesy.gif)
clearignorelist
if not getfriend 'friend'
sysmsg 'forever alone'
stop
else
setalias 'o' 'found'
endif
sysmsg '1'
if friend 'o' hits == 'maxhits'
ignoreobject 'o'
stop
else
endif
sysmsg '2'
cast 'Greater Heal'
waitfortarget 2000
target 'o'
pause 750
endif