Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
ashe3064
Newbie


Joined: 28 Sep 2004
Posts: 1

PostPosted: 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.
Reply with quote
Thunderbuster
Novice


Joined: 07 Nov 2001
Posts: 45
Location: USA

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net