The Dink Network

Reply to Re: say_stop("Epiphany");

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 10th 2014, 06:35 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
It's one of the reasons I wrote the DinkC_Talk Python script.

You could fake it with:

void main( void )
{
  int &col = 5;
  // Set a property which we can use in other scripts.
  sp_custom("text_colour",&current_sprite,&col);
}

void talk( void )
{
  say("`&col Hello!");
}


Alas, this only works for colour values 0 to 9, because it only reads a single character after ` (but only *after* expanding variables).

And it's actually more of a hassle, but at least it avoids any "oops wrong text colour"-mistakes.

Long story short, that would make sense.