Page 1 of 1 1
Topic Options
#2412 - 2000-04-05 01:37 PM Colors in a message line.
Anonymous
Unregistered


How would I change the color of a single word in a sentence? For example...

code:
"Your password will expire in " + COLOR r/n + @PWAGE + COLOR n/n + "days."



Top
#2413 - 2000-04-05 01:47 PM Re: Colors in a message line.
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
How about this...

code:

?"Your password will expire in " COLOR r/n "@PWAGE" COLOR n/n " days."

Shawn.

Top
#2414 - 2000-04-05 01:56 PM Re: Colors in a message line.
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
ok i have been waiting for a reason to post this!!!

it has some exelent examples of how to use the color command

---------
;-------------------------------------------
:xmas
;-------------------------------------------
; ok so i had too much time on my hands!

DIM $Xmas_x
DIM $Xmas_y

$xmas_x = 16 ;the starting X cord
$xmas_y = 0 ;the starting Y cord

at($xmas_x+1,$xmas_y+40)""COLOR W+/N"*"
at($xmas_x+2,$xmas_y+39)""COLOR G+/N"/"COLOR C/N"."COLOR G+/N"\"
at($xmas_x+3,$xmas_y+38)"/"COLOR R/N"."COLOR R+/N"."COLOR B/N"'"COLOR G+/N"\"
at($xmas_x+4,$xmas_y+38)"/"COLOR M+/N"'"COLOR Y+/N"."COLOR W/N"'"COLOR G+/N"\"
at($xmas_x+5,$xmas_y+37)"/"COLOR G/N"."COLOR C+/N"'"COLOR C/N"'"COLOR B+/N"."COLOR N+/N"'"COLOR G+/N"\"
at($xmas_x+6,$xmas_y+37)"/"COLOR M+/N"."COLOR W+/N"'"COLOR Y/N"."COLOR B+/N"'"COLOR R+/N"."COLOR G+/N"\"
at($xmas_x+7,$xmas_y+10)''COLOR Y/N'""""""""""""""""""""""""""' + ""COLOR G+/N"/"COLOR Y+/N"'"COLOR W+/N"."COLOR G+/N"'"COLOR B/N"'"COLOR R/N"."COLOR C/N"'."COLOR G+/N"\"COLOR Y/N"" + '""""""'
at($xmas_x+8,$xmas_y+36)""COLOR G+/N"^^^"COLOR Y/N"[_]"COLOR G+/N"^^^"""COLOR N/N

color r+/n
at($xmas_x+0,$xmas_y+1)'__, ,___,'
at($xmas_x+1,$xmas_y+0)'(--|__| _,,_ ,_ '
at($xmas_x+2,$xmas_y+2)'_| |(_| |_)|_)\/'
at($xmas_x+3,$xmas_y+1)'( | | _/'
at($xmas_x+4,$xmas_y+8)'__, ,___,'
at($xmas_x+5,$xmas_y+7)"(--|__| _ |' _| _, ,"
at($xmas_x+6,$xmas_y+9)'_| |(_)| |(_|(_|\//_)'
at($xmas_x+7,$xmas_y+8)'('
at($xmas_x+7,$xmas_y+24)'_/'

Color y+/n
return
---------

Top
#2415 - 2000-04-05 03:42 PM Re: Colors in a message line.
Anonymous
Unregistered


Hahahaha... Bryce that is cool. I'd like to use that next Christmas, if it's not copyrighted. ;-) Maybe I'll see if I can find an ASCII Easter bunny and paint it "COLOR M+/N".
Top
#2416 - 2000-04-05 05:49 PM Re: Colors in a message line.
Anonymous
Unregistered


Ok... I had to. Here's an Easter script niblet:

code:

? COLOR M+/N " ___ ___"
? " /::_\._./_::\" COLOR N/N
? " _=" COLOR M+/N "{: _>[_]<_)::}" COLOR N/N "=_"
? " _~ " COLOR M+/N "^--~/:i:\~--^" COLOR N/N " ~_"
? " .d^ " COLOR M+/N "/:/ \:\" COLOR N/N " ^b."
? " .d^ " COLOR M+/N "(;/ \ " COLOR N/N " ^b."
? " i| " COLOR W+/N ",___" COLOR N/N " |i"
? " ii " COLOR W+/N "/ /^\ ,___" COLOR N/N " q&&&p ii"
? " ii " COLOR W+/N "\__), ^^ _, \" COLOR N/N " *+*+*+* ii"
? " |i " COLOR W+/N "/" COLOR N/N " @@ @@ " COLOR W+/N "\\_/" COLOR N/N " x=X=X=X=x i|"
? " | | " COLOR W+/N "{" COLOR N/N " -.x.- " COLOR W+/N "}" COLOR N/N " pXoXoXoXq | |"
? " /=============================\"
? "{ \\\\\\\\\\\\\\i////////////// }"
? " \ - x - x - x - x - x - x - x /"
? " | / \ / \ / \ / \ / \ / \ / |"
? " |x - x - x - x - x - x - x -|"
? " | \ / \ / \ / \ / \ / \ / \ |"
? " |- x - x - x - x - x - x - x|"
? " | / \ / \ / \ / \ / \ / \ / |"
? " \ - x - x - x - x - x - x /"
? " ^^^^^^^^^^^^^^^^^^^^^^^^^"

I didn't color it all. Just a nice pink bow and a little highlighting for the bunny. Enjoy!!

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.053 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org