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
Kheri_
Wanderer


Joined: 11 Oct 2005
Posts: 58

PostPosted: Wed Jun 21, 2006 12:54 am   

Room Name Changes wow! sheesh (some more help)
 
#trigger {^[*] ~(dark~)} {#tag name %1}
How come this don't work for when i go into a room that's not dark?

Note: sometimes it would work.. for certain rooms, not sure if i had originally mapped them without the dark.

PLease help, in some way form shape pleasee
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Wed Jun 21, 2006 11:30 am   
 
You could use a regular expression to make the (dark) optional. You should have the escape character (default, ~, or use \ for a regex pattern) in front of your square brackets. Also, if you want the trigger to capture something into %1, you should surround it with parentheses.

Code:
#REGEX {^\[(*)\](?: \(dark\))?} {#tag name {%1}}
Reply with quote
Kheri_
Wanderer


Joined: 11 Oct 2005
Posts: 58

PostPosted: Sat Jun 24, 2006 1:38 am   
 
thank you larkin
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