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: Sat Jun 03, 2006 2:37 am   

room name changes
 
problems with the map recognizing rooms..

Across the desert {dark}

Across the desert

same room
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jun 03, 2006 6:47 pm   
 
Quote:

Across the desert


A simple #tag trigger should do the trick here. The key is to make sure it matches both instances:

#trigger {^[%w%s]{ ~{dark~}|%q}} {#tag name}
_________________
EDIT: I didn't like my old signature
Reply with quote
Kheri_
Wanderer


Joined: 11 Oct 2005
Posts: 58

PostPosted: Sun Jun 04, 2006 1:19 am   
 
ok, cool. i tried to make a tag one before. what is the %s and %q?
thank you
_________________
Old
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Sun Jun 04, 2006 1:36 am   
 
See Pattern Matching. This will tell you everything you need to know about patterns.
_________________
Taz :)
Reply with quote
Kheri_
Wanderer


Joined: 11 Oct 2005
Posts: 58

PostPosted: Sun Jun 04, 2006 1:40 am   
 
thanks taz and matt :)
guess i'll go look through the help files again too.
_________________
Old
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jun 04, 2006 4:30 am   
 
%s matches whitespace. Single spaces (like in a sentence), tabs and multiple consecutive spaces, and similar items that aren't control codes or carriage returns.

%q is a modified version of $ and ^. Basically it's adding %s to $ and ^. Maybe %p (for punctuation), but I forget that part.
_________________
EDIT: I didn't like my old signature
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