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
skeen77
Novice


Joined: 25 Oct 2010
Posts: 31

PostPosted: Wed Nov 27, 2013 11:40 pm   

Setting up the Mapper
 
So I'm trying to set up the mapper and have encountered an issue with how it records room names. A room name shows up as
Quote:
Central Square - [mid-morning] [ Smooth ]
and the time-of-day portion is cause it to create new rooms when I go back on them at different times. I'd like to keep the information, since if you're inside it just says Inside, and that's useful to know, but really, how do I fix this?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Nov 28, 2013 1:42 am   
 
You create a trigger that #TAGs the proper data from the line.

Code:
#trigger {^([%w%s]) - ~[(*)~]$} {
  #tag name %1
  //do whatever else you want with the name data here (%1)
  //do whatever you want with the time/other data (%2)
}
_________________
EDIT: I didn't like my old signature
Reply with quote
skeen77
Novice


Joined: 25 Oct 2010
Posts: 31

PostPosted: Thu Dec 12, 2013 2:43 am   
 
So.. what package would I put this trigger in?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Thu Dec 12, 2013 2:08 pm   
 
Usually in the mud-specific package is fine, unless you plan to share your mapper settings via the library
_________________
Discord: Shalimarwildcat
Reply with quote
skeen77
Novice


Joined: 25 Oct 2010
Posts: 31

PostPosted: Thu Dec 12, 2013 3:34 pm   
 
So I added this trigger, and the mapper stopped.. mapping. It wouldn't register adding new rooms until I disabled it. I'm going to play around with the format of that line a bit I guess. I don't really understand all the syntax.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Fri Dec 13, 2013 3:43 am   
 
you need to reconfigure the mapper ever time you add new #TAG triggers, so the map knows what it is supposed to do
_________________
Discord: Shalimarwildcat
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