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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Shades__
Newbie


Joined: 06 Jan 2001
Posts: 4
Location: USA

PostPosted: Fri Jan 12, 2001 6:28 am   

The Color Of Text-For Lost Souls
 
A lot of MU*'s allow you to say things in color. This script allows you to say things in multiple colors.

-------Begin Macro-------
#VAR amount  %prompt("","Say:")

#VAR out " "
#VAR c {BRed}
#LOO 1,%len(@amount) {#VAR out %concat(@out,"{{", %word(@TCOLOR, 1+%mod(%i,%numWords(@TCOLOR,"|")),"|") ,"}", %copy(@amount, %i , 1) ,"}" )}
say @out in anglic

-------End Macro-----

You must also set up your colors. You create a TCOLOR variable. Mine is:
Bold;Red|Bold;Red|Red|Red|Bold;Black|Bold;Black

Each color is seperated by a |.

Have Fun,
Shades__

Edited by Jouster to fix spelling and to colorize for clarity.

Edited by - Jouster on 01/15/2001 12:11:40
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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