For the sake of simplicity, I will use the name Nick.
Say Nick and I are standing at Temple Square together. Suddenly, an aggro mob arrives from the west and attacks Nick. Because I have not implemented a trigger that rescues Nick from that mob, Nick dies.
What I want to implement is a trigger that will rescue Nick from any mob that attacks him - one which will react to him being attacked, regardless of the mob's name.
I understand the example that you supplied. But on the mud I play, how hard a mob hits a player varies.
Here is [part of ] a log from the mud I play...
POV: tank
Pickle slashes Shax'in, the brown dragon hard.
Pickle slashes Shax'in, the brown dragon hard.
Shax'in, the brown dragon scrambles to his feet!
Shax'in, the brown dragon claws you very hard.
Shax'in, the brown dragon tries to claw at you but misses by a hair!
Shax'in, the brown dragon claws you very hard.
Shax'in, the brown dragon claws you extremely hard.
Shax'in, the brown dragon massacres Pickle to small fragments with his claw.
You slash Shax'in, the brown dragon hard.
You slash Shax'in, the brown dragon hard.
Farius slashes Shax'in, the brown dragon.
Farius slashes Shax'in, the brown dragon.
Vargus slashes Shax'in, the brown dragon very hard.
Vargus cools Shax'in, the brown dragon with the breeze of his missed slash.
Shax'in, the brown dragon OBLITERATES Pickle with his deadly claw!!
Shax'in, the brown dragon tries to claw at Pickle, missing by a hair!
Shax'in, the brown dragon massacres Pickle to small fragments with his claw.
Shax'in, the brown dragon OBLITERATES Pickle with his deadly claw!!
Shax'in, the brown dragon massacres Pickle to small fragments with his claw.
Pickle slashes Shax'in, the brown dragon hard.
Pickle slashes Shax'in, the brown dragon hard.
You slash Shax'in, the brown dragon hard.
You slash Shax'in, the brown dragon hard.
You slash Shax'in, the brown dragon hard.
Farius cools Shax'in, the brown dragon with the breeze of her missed slash.
Farius slashes Shax'in, the brown dragon.
Farius slashes Shax'in, the brown dragon.
Vargus slashes Shax'in, the brown dragon hard.
Shax'in, the brown dragon nimbly avoids Vargus's slash.
Obviously, Pickle is not the tank. Rather, the mob switched to him. Here, Shax'in obliterates, massacres, and misses a blow at Pickle. The answer which you supplied would not suffice in a battle such as this.
Basically, what I am looking for is a trigger that will react to a mob switching to another player, and that will will rescue that player instantly. |