|
ashe3064 Newbie
Joined: 28 Sep 2004 Posts: 1
|
Posted: Tue Sep 28, 2004 1:54 pm
Targetting mobs in a trigger |
Folks,
I'm extremely new to mudding and zmud, but so far have had no trouble in setting up basic triggers. However this one seems to elude me.
I'm trying to setup a trigger so that when I'm in a group and someone attacks, I can do a follow-up attack to any mob that the 'tanker' targets.
Presently I have individual names setup in my trigger, where I change the name of 'guard' to whatever the mob is.
eg. (Pattern is 'Your shield') (Value is 'shield guard')
This works fine, but obviously this gets tedious after a while. ;)
I know that you can set %w in the pattern to grab text from the mud, but what about in the value line. Is this easily doable?
Many thanks in advance for any and all replies. |
|
|
|
Thunderbuster Novice
Joined: 07 Nov 2001 Posts: 45 Location: USA
|
Posted: Wed Sep 29, 2004 2:20 am |
Try giving us some sample Mud output to go by and I am sure we can help.
Reguards. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Sep 29, 2004 4:01 pm |
Use a variable as your target.
#AL shield {#VAR ShieldTarget {%-1};~shield %-1}
#TR {Your shield} {~shield @ShieldTarget}
NOTE: ~ is important. It's the character which tells zMUD not to parse the next character. Without it, this alias becomes an infinite loop. |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
|
|