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
Kefka
Newbie


Joined: 24 Jul 2002
Posts: 5

PostPosted: Wed Jul 24, 2002 2:56 pm   

Newbie question
 
Alright, I have a variable full of names...

Variablename: friends
Value: Pinky|Pocky|Picky

I have a trigger that goes off specifically for them:
Pattern: {@friends} says (to you) 'sanc'
Value I want: c sanc whicheverpersonasked

How do I specify it so that it sancs the person from the variable that told me?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jul 24, 2002 3:12 pm   
 
Enclose the part from the pattern that you want saved in parenthesis. Thus, the trigger's pattern should be:
({@friends}) says ~(to you~) 'sanc'

and then the command is:
c sanc %1

Notice that in the pattern, the "(to you)" part has ~ before each parenthesis. The ~ tells zMUD not to interpret it as a special character, but as something that should appear in the text sent from the MUD.

Kjata
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