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
xekon
Apprentice


Joined: 11 Oct 2007
Posts: 154

PostPosted: Wed Jun 10, 2009 9:15 pm   

Mapper configuration for Aardwolf when using tag roomnames on
 
I tried doing the usual reconfigure but If I had the roomnames tag on rooms are displayed like this:
{rname}Whitewind Avenue (G)

instead of like this:
Whitewind Avenue (G)

I would like to make use of the roomnames tag so that I can store my current room to a variable, this way if my position on the mapper gets messed up I can more easily reset my position on the mapper... Any help is appreciated.
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Wed Jun 10, 2009 9:29 pm   
 
Just do #tag for room name, and then reconfigure the mapconfig.

Code:

#regex "RoomCap" {\{rname\}(.*)$} {#tag name %1}


...If I understand correctly. I get a feeling that perhaps you already tried it/came up with it on your own.
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Jun 10, 2009 9:35 pm   
 
Use a #tag trigger. I'm not totally sure that #TAG is required in this case, but if you're going to be triggering on the tag anyways...why not?

#trigger {^~{rname~}(*)} {#tag name %1;#PSUB "" 0 7}

The above trigger will take care of the mapper, but you will need to edit whatever existing rooms still have the tag in the room name. The #PSUB removes the tag from the visible line onscreen.

I believe the exits tag works in similar fashion, but for description or if you want to work with characters/mobs or items you will need a slightly more complex system (these tags follow the tag.../tag format, and each of the tags appears on its own line.)
_________________
EDIT: I didn't like my old signature
Reply with quote
xekon
Apprentice


Joined: 11 Oct 2007
Posts: 154

PostPosted: Wed Jun 10, 2009 11:23 pm   
 
Awesome, this is working just the way that I need it to now. I made just a small tweak to your example, posting incase anyone here needs it.

Code:
<trigger name="RoomCap" priority="14320" case="true" regex="true">
    <pattern>^\{rname\}(.*)( \(G\)|)( \[\*\*> PK <\*\*\]|)$</pattern>
    <value>#PSUB "" 0 6;#TAG name %1;rnametag=%1</value>
</trigger>
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