I was bored, and came up with an interesting idea. I
used the {n "colour code" to randomly put out a color.
(This is written for Lope's color). Here's what I
did:
In the int colour function add:
int random = 0;
to the declarations.
Then I added:
case 'n':
random = number_range( 1, 13);
if ( random == 1 )
strcpy( code, C_BLUE );
else if ( random == 2 )
strcpy( code, C_B_BLUE );
else if ( random == 3 )
strcpy( code, C_CYAN );
else if ( random == 4 )
strcpy( code, C_B_CYAN );
else if ( random == 5 )
strcpy( code, C_GREEN );
else if ( random == 6 )
strcpy( code, C_B_GREEN );
else if ( random == 7 )
strcpy( code, C_D_GREY );
else if ( random == 8 )
strcpy( code, C_MAGENTA );
else if ( random == 9 )
strcpy( code, C_B_MAGENTA );
else if ( random == 10 )
strcpy( code, C_RED );
else if ( random == 11 )
strcpy( code, C_B_RED );
else if ( random == 12 )
strcpy( code, C_YELLOW );
else
strcpy( code, C_B_YELLOW );
break;
To all of the definitions of each letter. When you
string up equipment, or titles, or whatever, you can
use {n for each letter and have a different rainbowed
color string every time you look at it. I think it's
kind of cool, feel free to check it out for you to
decide. :)
-Matt Foltz
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com