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


Joined: 18 Jul 2008
Posts: 1

PostPosted: Fri Jul 18, 2008 5:42 pm   

#COLOR+#SHOW
 
I'm making a bs counter script and I am having some problems with color. What i need to know is how do I use the color command with #show so that the display for the counter will have some parts colored. This is what I have so far.

Code:
#CLASS bsscript
#TRIGGER {Before %1 can react, } {#ADD total 1;#ADD land 1}
#TRIGGER {You plunge a } {#ADD total 1;#ADD land 1}
#TRIGGER {finds its true mark as you stab} {#ADD total 1;#ADD land 1}
#TRIGGER {makes a strange sound but is suddenly very silent, as you} {#ADD total 1;#ADD land 1}
#TRIGGER {You twist a} {#ADD twist 1}
#TRIGGER {turns %1 head, noticing you} {#ADD total 1;#ADD miss 1}
#TRIGGER {You lunge at a} {#ADD total 1;#ADD miss 1}
#TRIGGER {convulses in pain as you land} {#ADD total 1;#ADD land 1}
#TRIGGER {and slides in for a direct hit!} {#ADD total 1;#ADD land 1}
#TRIGGER {A flash of metal interrupts your concentration} {#ADD total 1;#ADD miss 1}
#VAR twist 0 0
#VAR miss 5 0
#VAR land 20 0
#VAR total 25 0
#VAR landrate 0 0
#VAR math1 0 0
#ALIAS {bsshow} {#MATH math1 {%float(@land)/%float(@total)}
#MATH landrate {(@math1*100)}
 #SH ********************************
 #SH ***********BS STATS*************
 #SH ********************************
 #SH You have had (@total) Backstabs.
 #SH (@land) of those hit.
 #SH (@miss) of them missed.
 #SH YOUR SUCCESS RATE IS:
 #SH (@landrate%)
 #SH ********************************}
#CLASS 0
#ALIAS {bson} {#T+ bsscript}
#ALIAS {bsoff} {#T- bsscript}


What i would like to do is color the vars in the display between the (). Thanks for your help in advance.
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Fri Jul 18, 2008 7:51 pm   
 
%ansi
_________________
Taz :)
Reply with quote
Zhiroc
Adept


Joined: 04 Feb 2005
Posts: 246

PostPosted: Fri Jul 18, 2008 9:02 pm   
 
Or use mxp: #SH (<color yellow>@land</color>) of those hit
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