How can I make an auto-rescue trigger that will rescue _____ whenever any mob attacks him/her? (This way, I won't have to alter the trigger depending on the mob. Rather, I will rescue _____ from any mob that attacks him/her.)
Auto-rescue
Posted by Pagkh on Sun 18 Mar 2001 02:01 AM — 4 posts, 19,042 views.
Can you give an example of the sort of thing you see?
However the general answer is simply to use a wildcard.
eg.
The asterisk will match on any mob name.
However the general answer is simply to use a wildcard.
eg.
Match on: * attacks you!
The asterisk will match on any mob name.
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.
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.
This is an interesting challenge. You can almost do it with a regular expression, here is my first attempt:
What this is doing is:
You can then:
However there is a problem with this - if Pickle attacks the dragon, the trigger matches and you try to rescue the dragon!
The only way I can think of around this, is to name all the members of your party, like this:
This will then match on any attack on members of your party. Of course, you don't name yourself in the list, and thus you don't try to rescue yourself.
Match on: (?U)^(?!You)(.*) (OBLITERATES|tries to claw at|massacres|slashes|cools|claws) (?!you)(.*) (.*)$
What this is doing is:
(?U) - makes the matching "un-greedy"
^ - start of line
(?!You) - anything except "You"
(.*) - what is doing the attacking
(OBLITERATES|tries to claw at|massacres|slashes|cools|claws)
- all the possible ways of attacking (not complete)
(?!you)(.*) - attacking everyone except you
(.*) - rest of line (eg. "hard" "to fragments")
$ - end of line
You can then:
Send: rescue %3
However there is a problem with this - if Pickle attacks the dragon, the trigger matches and you try to rescue the dragon!
The only way I can think of around this, is to name all the members of your party, like this:
Match on: (?U)^(.*) (OBLITERATES|tries to claw at|massacres|slashes|cools|claws) (Pickle|Nick|Varius|Vargus) (.*)$
This will then match on any attack on members of your party. Of course, you don't name yourself in the list, and thus you don't try to rescue yourself.