Odoth Wanderer
Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Fri Mar 16, 2007 4:57 am
Trying to #tag exits, running into trubble |
Well I've started playing this cool new (to me) mud called Purple Dragon! The big problem that I am running into while playing is trying to use zMUD automapper. Exits display like they would in standard ROM, except that closed doors display in the exits list, surrounded by <>. Example:
Code: |
Slaver's Route Before the Prisons
+-----[ 8%]+ You stand on the slaver's route. The road stretches on between two huge
| | buildings. The building to the south is the head quarters for the guardian
| | eyes and to the north is the inn. The road here is very clean and better lit
| O | then most of the city. The shadow's seem less ominous here. A couple
| I | orbs seem to have stopped functioning here.
| O-O-X-O-O | South is the entrance to the Guardian Eye's headquarters and the prisons. Slaver's route continues east and west
| I |
| O-O-O |
| I |
| O |
+-----------+
You are inside the city.
[Exits: east <south> west]
A brownish grey gnome watches you warily.
A merchant looks ready to buy all the slaves he sees.
|
When this happens, instead of picking up the closed exit, it somehow compounds it with the following direction. So in the previously stated example it creates a room with EAST and SOUTHWEST directions. To try to solve this problem I created the following scriptie:
Code: |
#CLASS {scriptie}
#VAR removebraces {%replace( %replace( "%1", "<", ""), ">", "")}
#TRIGGER {~[Exits~: (*)~]} {
#var exits @removebraces(%1)
#tag exits @exits
}
#CLASS 0
|
This does work in that it creates all of the correct directions. However the incorrect diagonal directions still are created as well, even after reconfiguring the mapper. Any suggestions? |
|