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
Sakieh
Newbie


Joined: 10 Nov 2013
Posts: 5

PostPosted: Sun Nov 10, 2013 2:36 pm   

page/whisper/tell highlighting help needed
 
I am, frankly, not that technically savvy, and the MUCK's I go to do not have
ANSI colour in the MUCK code itself. I am hoping someone here can help
me by walking me through how I can use CMUD to make the output of
pages and whispers filtered into a different colour in the output on screen.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sun Nov 10, 2013 4:58 pm   
 
Do you have some sample text?
Reply with quote
shalimar
GURU


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

PostPosted: Sun Nov 10, 2013 5:12 pm   
 
I have a stock trigger i use in almost all games:

#TR {, "*"} {#CW aqua}

it gets most 'spoken' text, provided the server does not break apart the line before displaying it to you.
_________________
Discord: Shalimarwildcat
Reply with quote
Sakieh
Newbie


Joined: 10 Nov 2013
Posts: 5

PostPosted: Sun Nov 10, 2013 5:28 pm   
 
Thank you, Shalimar. I am going to have to ask what will sound like a stupid question: how do I set that?

Where do I set it in Cmud, and, how do I set it so that it will handle things like

(name) pages, "hello!" to you.
or
In a page-pose to you, (name) waves!

As I said, I am not technically savvy. So I have no idea how to set something like this at all.
Reply with quote
shalimar
GURU


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

PostPosted: Sun Nov 10, 2013 6:08 pm   
 
you can actually paste that line of code on the command line

as for the page examples...


#TR {page*to you} {#CW violet}
_________________
Discord: Shalimarwildcat
Reply with quote
Sakieh
Newbie


Joined: 10 Nov 2013
Posts: 5

PostPosted: Tue Nov 12, 2013 3:43 am   
 
Ah! Thank you!

Now, for ones that don't have a set end, like page-poses, how would I do them?
Reply with quote
shalimar
GURU


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

PostPosted: Tue Nov 12, 2013 9:54 am   
 
Thats just it, so long as it is on one line, you dont actually have to set the end, you can use the shortest segment that will actually match without getting false positives.
Wildcards are used to 'fill in' for the variable segments of a line.

But without another example, I cant get more specific.
_________________
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