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
melodyb
Beginner


Joined: 28 Oct 2008
Posts: 18

PostPosted: Sat Jul 21, 2012 7:12 pm   

Excluding a line from information picked up by mapper
 
The first line of the description, which is a new paragraph after the room name, sometimes starts with something giving the time of day 'It is night' etc. Is there a way of ignoring certain phrases so they don't get put into the room description that is collected?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jul 21, 2012 7:44 pm   
 
#NOMAP is what you want.
_________________
EDIT: I didn't like my old signature
Reply with quote
melodyb
Beginner


Joined: 28 Oct 2008
Posts: 18

PostPosted: Sat Jul 21, 2012 9:44 pm   
 
I tried #NOMAP but it seems to remove the whole of the description - not just the first sentence.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Sat Jul 21, 2012 11:08 pm   
 
#NOMAP will remove the entire line which matches the trigger. If the description is one long line (wrapped by Cmud) and the time of day message is a part of the line with the rest of the description, you will have to remove it yourself.

What you would need to do is capture the line. Then edit the text the way you want. There are several ways you could remove the sentence--%match, or splitting it into sentences and dropping the first one, etc. Then use #TAG to set the description. After that, you will have to reconfigure the mapper so that it recognizes the TAGged information.
Reply with quote
melodyb
Beginner


Joined: 28 Oct 2008
Posts: 18

PostPosted: Sun Jul 22, 2012 7:23 am   
 
Thank you very much. That sounds like a job for a day when I am feeling bright :) For now, I will just manually delete it.
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