|
Ewar_fiend Newbie
Joined: 30 Jan 2004 Posts: 2 Location: USA
|
Posted: 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!!!
|
|
|
|
Rorso Wizard
Joined: 14 Oct 2000 Posts: 1368
|
Posted: 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 |
|
|
|
|
|
|
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
|
|