 |
carpii Newbie
Joined: 14 Aug 2007 Posts: 1
|
Posted: Tue Aug 14, 2007 2:56 pm
BatMUD mapping script? |
Hi,
The MUD I play (BatMud) is a bit strange because sometimes it will show you a basic room description, and other times it will show you an ascii map, with the room description by the side of it. This means its very difficult to configure zMuds automapper.
To try and work around this, Im trying to write a script/trigger to parse the ascii map out, and then display it underneath the room description. Im hoping this will allow the automapper to be configured ok. Im new to zMud, and its been many years since I played a MUD, so feel free to ridicule my idea, or if theres a better way.... ? :-)
Does the automapper kick in after all triggers have been fired ?
Or would it still just parse the uncooked text from the MUD, so all my fancy reformatting will have no effect
Thanks |
|
|
|
 |
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Tue Aug 14, 2007 3:53 pm |
If you want the mapper to not parse a line of text then you need to #NOMAP it.
When I am trying to rewrite the output as you describe I basically turn on a #noMap;#gag trigger that captures the text from the mud into a variable.
Then when I receive the next Prompt or the exit line I #noMap;#gag capture that as well, parse the lot and then turn off the #nomap;#gag;capture triggers, and #show the results. After that you can either make triggers to #tag your parsed results or use #tag or other room commands to set the descriptions etc.
The mapper does not like you to try to #sub or #psub lines. The above process causes the mapper to be unaware that any text came from the mud at all until you use the #show command. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Aug 14, 2007 5:57 pm |
If there are two possibilities for rooms (maps or "real" rooms) you could just write two sets of triggers using the #tag command to tell the mapper which parts of rooms are which when it'd otherwise fail.
|
|
|
|
 |
|
|
|