Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Thelonius
Newbie


Joined: 01 Jun 2008
Posts: 1

PostPosted: Sun Jun 01, 2008 3:35 pm   

CMud, AutoMap, Zones, Funky Room Names
 
I'm a recent user of CMud and these forums, so please forgive any ignorant transgressions on my part with this post.

Here is my problem:

I play on CthulhuMud and they display their room names like so:

Miskatonic University - Common Room (inside)
Miskatonic University - Main Lawn (city-sunny-clear)

This causes a problem with the 'city' rooms as the 'sunny-clear' part can change as the day progresses and night comes around. So the automapping feature will hook into 'Main Lawn (city-sunny-clear)' and then fault when I come around to the same room but it's 'Main Lawn (city-night-fog)'. I saw that there were some configuration possibilities with the mapper as to how it read room names but I'm having a bit of trouble figuring out what exactly I can configure.

Is it possible to configure the auto-mapper to read a room name up until '(' and how would I configure that.

It has a really nasty side effect when dealing with 'zones' in a map. If, as I have done, I set an interior room to link to another zone that is an exterior room, then unless the exterior room text matches exactly with what weather and time conditions existed before, it'll cause an error - thankfully, the app can recover from the errors but it's annoying to have to click on a 'continue' button every time I switch zones from interior to exterior.

Any help would be appreciated.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Jun 01, 2008 5:05 pm   
 
It's very possible - the way you do it is by setting up a trigger that matches your room names (and only your room names) that uses the #tag command to tell the mapper what the room name is.

The hard part is making a trigger that'll work for all room names, but no other lines. It helps if your room names are always one colour, or something like that, but without more information on that, there's not much more help we can give.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jun 01, 2008 5:10 pm   
 
Use a #TAG trigger:

#trigger {^([%w%s] - [%w%s]) ~(} {#tag name %1}

You'll probably have to edit your map to fix the existing room names, and if the room name was really the reason for the AV then those will stop (I don't think it's the room name, though).

There's also an existing bug with the mapper where you can't use room scripts.
_________________
EDIT: I didn't like my old signature
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Mon Jun 02, 2008 9:33 pm   
 
You may place an alias as a room script within the script box. If you put the actual script into the box, CMUD will bomb when the room is entered.
_________________
Sic itur ad astra.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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