The Dink Network

Cute text color trick.

October 23rd 2003, 09:11 PM
wizardg.gif
Paul
Peasant He/Him United States
 
Did you know you can color text using a variable?
You can. All you hahve to do is this:
say_stop("`&mycolorHello there.", &current_sprite);

Note that I included the ` just like you normally do when you color text. All you have to do is set &mycolor to a number from 0 to 9. That means you can't do Yellow, Hot Pink/Red or White this way.

What would you use it for? Well any time you need the same text in different colors. I can imagine some type of genaric NPC script or using it in a text-entry system. Or of course just a crazy-looking, random-color blinky-text-thing.

I'm sure there's more.
October 23rd 2003, 09:23 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Yeah, I discovered that a couple months ago. I think I used it for something, but I can't remember what. Oh, for a blackjack game, using variables to define the color/suit of the letters/cards.
October 24th 2003, 12:30 AM
old.gif
and paul is discovering the already discovered
October 24th 2003, 05:32 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Just like Columbus discovered the New World when the Vikings already did.
October 24th 2003, 09:23 AM
fish.gif
Binirit
Peasant She/Her
 
Well, there are some that discover and don't tell, and some that spread the word and become famous because of it.