Page 1 of 1

Storing a Target Name

Posted: Fri Dec 16, 2011 2:07 pm
by Sandypants
I need to know if there is a way, and how, to store specific mob name information.

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

}

Re: Storing a Target Name

Posted: Fri Dec 16, 2011 2:17 pm
by Gomer
Use IDs not names.

Re: Storing a Target Name

Posted: Fri Dec 16, 2011 2:27 pm
by Sandypants
Ah, thanks.