For example, say I'm surrounded by five An Inferno Goblin mobs.
I want my mage to assist my tank, do his nuking thing, but then if my mage's pet's HP goes down to a certain point, I want him to target his pet and cast a heal. Then target his original mob and get back to nuking.
Is storing ${Target.Name} good enough? Or will that target the nearest Goblin?
I'm also not sure how to store a string in a variable. Will a simple /varset do the trick?
So:
Code: Select all
/declare targetname string
:nukeandhealloop
/if (${Me.Pet.PctHPs} < 70){
/varset targetname ${Target.Name}
/target ${Me.Pet}
/call HealPet
/target targetname
/goto :nukeandhealloop
} else {
/call Nukem
/goto :nukeandhealloop
}
