|
jkoster Newbie
Joined: 30 Aug 2005 Posts: 6 Location: Eureka, CA, USA
|
Posted: Sun May 18, 2008 12:26 am
A Mapping / Exit Question |
This is (I hope) going to be a simple question to answer, using a sample room description.
Code: |
Shind Road
N-River Tesh E-Ruins of Yulash S-Cormanthor W-Plains hh^^^^?^h
NE-The Throat NW-River Tesh SE-Plains SW-Shind Road hh^^hhppw
The road is clear of grass and heavily rutted from the passage of ppppp?ppp
many wagons bearing their heavy loads. There are several potholes pppww|www
that you must take care to avoid tripping in. wwwp@+\ww
ff-/fpp\p
f/ppFffp\
/fffFFFfp
pppfFFFFf
The sky is cool and cloudless but a warm southerly breeze blows.
A black and chestnut painted horse stands here. |
How can I get the exits to trigger on the exit direction (N/S/E/W/NE/NW/SE/SW)? I have it set up that it usually fires, but if the exit name is too long and leads into the next exit, it won't fire. Example: NW-River TeshSE-Plains. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun May 18, 2008 3:42 am |
#trigger {([NEWS]-*)%x$} {#TAG exit %1}
Have you tried that? I'm expecting it to not work, but I've been surprised before. If it doesn't, you will need to doctor up the line a bit and then #TAG the results.
Exits = "%1"
#forall "N|S|E|W" {
#forall "a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z" {
Exits = %replace(@Exits,%concat(%j,%i),%concat(%j," ",%i))
}
}
#TAG exit @Exits |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|
|
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
|
|