Target Of Target

Zandros

Script Author: VGA
I've spent hours and can't figure this out.

Is it possible to know what my Target is targeting?

For instance, I am fighting my target and all the sudden my target stops fighting me and begins fightings someone else. How do I know what my target is fighting?

I don't know how to get TargetOfTarget to work.
 

Amadeus

The Maestro
Staff member
Well, unless it's broken,
Code:
${Me.TargetOfTarget}
should return a 'pawn' type that is your current offensive target's target.

You should also be able to get it with
Code:
${Pawn[exactname,${Me.TargetAsEncounter.Target}]}
 

Zandros

Script Author: VGA
Well, unless it's broken,
Code:
${Me.TargetOfTarget}
should return a 'pawn' type that is your current offensive target's target.

You should also be able to get it with
Code:
${Pawn[exactname,${Me.TargetAsEncounter.Target}]}
Sweet... that works!

Now, how do I do the same for Encounters?
 

Amadeus

The Maestro
Staff member
The 'Target' member of the encounter datatype returns a string that is the target's name. Therefore, any time you have an 'encounter' object, you can get the Target MEMBER of that datatype and utilize it with the Pawn TLO using the 'exactname' parameter to get a pawn object. ie, ${Pawn[exactname,NAME]}
 

mordacai

Active Member
Someone please make a simple target of target UI so i can pretend I can tank like a Pro, nothing to complicated, even just a button to click or a key to bind so when i'm tanking and lose agro, I can click to retarget and rescue. Yes some people will say just learn to tank.

Anyway just a thought and it sounds like a simple script, but also outside my abilitys.
 

Zandros

Script Author: VGA
The 'Target' member of the encounter datatype returns a string that is the target's name. Therefore, any time you have an 'encounter' object, you can get the Target MEMBER of that datatype and utilize it with the Pawn TLO using the 'exactname' parameter to get a pawn object. ie, ${Pawn[exactname,NAME]}
I have torn apart Wiki and it doesn't give enough information to understand the possibility without an example here and there concerning Encounters and possible combinations utilizing Pawn.

Right now, I got TargetOfTarget working great. I can't figure out how to check what target my Encounters are targeting.

Any help would definitely spike several other's appreciation who's been trying to figure it out. :)
 

Amadeus

The Maestro
Staff member
Code:
variable int i = 1
 
if ${Me.Encounter} > 0
{
    do
    {
        echo "${Me.Encounter[${i}].Name}'s Target is ${Pawn[exactname,${Me.Encounter[${i}].Target}].Name}."
    }
    while ${i:Inc} <= ${Me.Encounter}
}
 
Top Bottom