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


Joined: 02 Aug 2008
Posts: 25

PostPosted: Sun Mar 31, 2013 12:41 pm   

Editing prompt to colorize based on number...
 
My prompt looks like this:

95.95 118.118 86.86 115.119

If I want the first set of numbers to turn red if they are below, say 30, how would I construct the trigger?

If I want the first set of numbers to turn yellow when it is between 30 and 60, how would I construct the trigger?

Thanks!

Edit to add: Also - would love to know how to trigger an increase in font size along with coloring. Thanks!
Reply with quote
shalimar
GURU


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

PostPosted: Sun Mar 31, 2013 7:20 pm   
 
make a prompt trigger for it

#TR {^(%d).%d} {
#IF (%1>60) {#CW yellow}
#IF (%1>30) {#CW red}
}

And changing font size is possible, but i find that it rarely looks right
you would need to define a personal style for it then use

#CW styleName
_________________
Discord: Shalimarwildcat
Reply with quote
Moab
Beginner


Joined: 02 Aug 2008
Posts: 25

PostPosted: Mon Apr 01, 2013 11:05 am   
 
Thanks, Shalimar!
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