The Dink Network

Reply to Re: New File: Dink Smallwood v1.08 - Release Candidate 2

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:
 
 
January 5th 2006, 08:26 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
sp_custom is in the reference, basically you can do like this:

void main( void )
{
sp_custom("Banana", &current_sprite, 3);
}

void talk( void )
{
int &crap = sp_custom("Banana", &current_sprite, -1);
say_stop("&crap", &current_sprite);
&crap = random (5,0);
sp_custom("Banana", &current_sprite, &crap);
}

If you talk to it, it will first say 3, and then a random number between 0 and 4