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


Joined: 15 Oct 2005
Posts: 1

PostPosted: Sat Oct 15, 2005 8:06 am   

Coloring chats
 
Is it posible to create an alias such as this

#if {@name="Kayosuke"} {~chat %0 }
#if @name!="Kayosuke" {~chat %0}

What as in chat, I want it to assign a color to each letter to text.

What is needed to make a phrase / word / sentence (letters of text) to all have different colors

like if the command i enterd was "chat Hey there",

I would send to the mud " Hey there"
Notice were color changes from red to orange for each letter in the text phrase
Can it be done? If so, How?
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Sun Oct 16, 2005 7:20 am   
 
Search the forums. There are a few chat colorizers posted. Here's one from the Finished Scripts:

http://forums.zuggsoft.com/phpbb/viewtopic.php?t=7520

Code:
#VAR out ""
#VAR Scheme "Wx" // Change this string for your different colors
#VAR ESC "{" // escape character the mud uses for ansii colors
#VAR Count 0
#WHILE ( %len( "%-1")>=@Count) {
#VAR out %concat( @out, @ESC)
#VAR out %concat( @out, %copy( @Scheme, %mod( @Count, %len( @Scheme))+1, 1))
#VAR out %concat( @out, %copy( "%-1", @Count+1, 1))
#ADD Count 1
}
#VAR out %concat( @out, @ESC, "x") // x in the mud i play uses {x as it's terminator
' @out // ' is an alias in the mud for the say command.


credit: ccogdill
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
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