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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Leontes
Beginner


Joined: 18 May 2004
Posts: 16

PostPosted: Wed May 19, 2004 5:06 pm   

Color several lines?
 
I want to color tells that I get, but how can I trigger it so that it gets all the text?

Like:

Holden tells you: "Hey hey hey hey hey hey
hey hey hey hey hey hey hey hey you daaawg
yoooooo".

I want to color all the lines and not just the top one. Anyone have any ideas?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed May 19, 2004 7:56 pm   
 
Ignore holden. [}:)]

Seriously, most tells are single-line no matter how they appear on your screen.
#TR {tells you} {#COLOR yellow}

If they aren't, use the standard multiline approach
Starting pattern - enable main trigger
* - main trigger to color, capture, gag, add to database variable, etc
Ending pattern - disable main trigger

#TR {tells you: ~"} {#T+ tellcolor}
#TR tellcolor {*} {#COLOR yellow} {} {disable}
#TR {~".$} {#T- tellcolor}
Reply with quote
Leontes
Beginner


Joined: 18 May 2004
Posts: 16

PostPosted: Wed May 19, 2004 8:49 pm   
 
Sigh, logical thinking is not my strong side.

I did somewhat like you said, and it works - Thanks a lot for poitint me in the right direction.

What I don't understand about your way of doing it is the ~ symbol. I read that it's a sort of wildcard. What does that mean, and do?
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Wed May 19, 2004 9:01 pm   
 
The ~ is not a wildcard. It's the default quote character, which means any character immediatly following is quoted as that character and not interpreted as a special character. In this case, the double quote is quoted.
Reply with quote
Leontes
Beginner


Joined: 18 May 2004
Posts: 16

PostPosted: Wed May 19, 2004 9:12 pm   
 
hmm, it seemed to work without, so perhaps I should just settle for that.

Something different - How do you make a button that toggles something on and off, like:
F1 - Toggle "netdodging on" and "netdodging off", so that every other time you press the button you get the on and off?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 20, 2004 4:20 am   
 
Assuming netdodging is a class:
#IF (%class( netdodging)) {#T- netdodging} {#T+ netdodging}


You could also use a toggle button with one state doing #T+ netdodging and the other state doing #T- netdodging.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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