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


Joined: 04 Jan 2004
Posts: 1

PostPosted: Sun Jan 04, 2004 3:53 pm   

problem with group tell
 
when the grouptell comes out like this
**Kryten: 'ref'
how can i capture the name kryten out of those symbols to use
in a trigger to cast 'refresh' on kryten and anyone else grouptelling for it?

Helge
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Sun Jan 04, 2004 4:16 pm   
 
Try this:
#trigger {~*~*(%w): 'ref'} {cast 'refresh' %1}

(%w) is a wildcard to match a word, and the parentheses tells it to set that word as %1.
You need ~ in front of the asterixes to tell zmud to parse them as literal strings, instead of wildcards.
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