|
echo465 Newbie
Joined: 06 Apr 2014 Posts: 2
|
Posted: Sun Apr 06, 2014 8:25 pm
Exit detection help on Hexonyx.com |
In the following room, the automapper adds a nonexistent exit to the south, I assume from the room description of the exit to the west. How can I fix the exit detection?
Code: |
Entrance Hall of the Grunting Boar Inn
You are standing in the entrance hall of the Grunting Boar Inn. The hall
has been wisely decorated with simple, functional furniture. The heavy smell
of dust and aging paper drifts in from the Post Office to the north. More
importantly, the bar is to the east.
Obvious exits:
--------------
North - The Post Office
East - The Grunting Boar
West - South Temple Square
A gelatinous cube is moving slowly beside you.
39/39 129/129 86/87 462 > |
|
|
|
|
echo465 Newbie
Joined: 06 Apr 2014 Posts: 2
|
Posted: Sun Apr 06, 2014 8:36 pm |
Argh. And I just had this room detect an 'up' exit:
Code: |
Eastern Wall Road at Temple Street
You are walking next to the eastern city wall. Wall Road continues further
north and south. The wide cobblestones of Temple Street are to the west.
Obvious exits:
--------------
North - Eastern Wall Road
South - Eastern Wall Road
West - Temple Street
Eric the Janitor is here, cleaning up.
39/39 129/129 85/87 462 > |
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Apr 08, 2014 12:15 am |
Code: |
#trigger "tRoomExits {^[-]$} {
exits = ""
}
#condition {^({%w%s - *|%d/%d %d/%d %d/%d %d >})} {
#if (%pos(" - ",%1)) {
//this line has an exit
#additem exits %word(%1,1)
} {
//this line is the prompt
#if (@Exits = "") {exits = "none"}
#tag exit @Exits
#tag prompt %1
#state tRoomExits 0
}
} {manual} |
This should be enough to fix your issue, but you may want to incorporate this two-state trigger into a larger multistate trigger to handle the entire room info output. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|