I can't figure out why this won't work for me. I am sending this sub a toon ID and it is supposed to cycle through party members until it finds the ID, assign it as last target, and then apply bandages.
My toons are partied
There are only two of them, so even if I don't send the id, it picks the ID and attempts to apply the bandages
I pulled the sub out and ran it as a stand alone and it selects the other toon on the first loop and applies the bandage
When I run it in my script that sends it the id, I get a bunch of can't find party member error messages, then it tries to apply the bandage and gets an error back saying that it can't locate a party member.
If I double click the heal target first, which I think is manually bringing up the target, it works fine.
Start_CrossHeal:
Set %LoopNumber 0
Repeat
{
Event macro 50 2
Set %loopnumber %loopnumber + 1
}
Until #ltargetid = %1 || %Loopnumber > 4
event sysmessage target is #ltargetid loop number is %Loopnumber
If %loopnumber > 6
Return
event macro 59