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
Odoth
Wanderer


Joined: 13 Nov 2004
Posts: 54
Location: Visalia, CA

PostPosted: 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?
_________________
*ribbit*
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Mar 16, 2007 1:51 pm   
 
By the look of things in the minimap display it would seem that the mud does not use diagnals. If this is the case then turn off the DirectionsDiag and KeypadDiag classes by setting them to disable on connect.

You should turn off the 'Use <> for expansion' in the scripting preferences.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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