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


Joined: 30 Jan 2004
Posts: 2
Location: USA

PostPosted: Fri Jan 30, 2004 10:58 pm   

Needs help mapping, is completely clueless.
 
I have a little experience dealing with zmud mapper, the mud i play on has alot of different "You cannot go any further in that direction" messages for when u hit a wall orso. Is there a way to set a trigger that will give the #NODIR command if it doesn't say "You walk/fly/sneak/etc <dir>" when u hit that dir? Please help me!!!
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Fri Jan 30, 2004 11:18 pm   
 
quote:
Originally posted by Ewar_fiend

I have a little experience dealing with zmud mapper, the mud i play on has alot of different "You cannot go any further in that direction" messages for when u hit a wall orso. Is there a way to set a trigger that will give the #NODIR command if it doesn't say "You walk/fly/sneak/etc <dir>" when u hit that dir? Please help me!!!


Try something like this:
Pattern: (You walk|You fly|)
Type: Perl regular expression
Code:
#if ("%1"="") {
#nodir
}

What the above code does is to attempt to match known strings, or the empty string. As it matches from left to right the empty string will be what is matched last. So if we find the empty string we can use it to determine if the search failed, and issue the #nodir command.

Hope this helps Smile
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