PDA

View Full Version : Colour Script?


SniperDave
18-02-2003, 22:30
I'm trying (with little success) to make a script which will randomly pick a colour for every letter I type. Does anyone know how I could do this?

Kalleth
20-02-2003, 18:06
alias colourise {
unset %string2
unset %colornum
var %i 1
while (%i <= $len($1-)) {
var %colornum $rand(0,15)
set %string2 %string2 $+  $+ %colornum $+ $iif($right($left($1-,%i),1) == $chr(32),$chr(255),$right($left($1-,%i),1))
inc %i
}
return $replace(%string2,$chr(255),$chr(32))
}


to use this type //say $colourise(thingy in here).

SniperDave
21-02-2003, 13:35
Thanks Kalleth.

/me prepares to be banned from many channels