The Dink Network

Reply to trigger

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 24th 2005, 09:50 PM
goblinm.gif
One extra procedure I'd like to see is an "item_use", triggered when dink uses the currently-armed item. There were a few other procedures I thought of which could be useful, but most could be done with variations of the following.

void main( void )
{
//don't want to get interrupted, so let's split this instance
script_attach(&current_sprite);
sp_script(&current_sprite, "whatever");
while(wait(17))
{
if (whatever)
{
//stuff you want to happen
}
}
}

That should let almost any event trigger a sprite reaction (exception noted above) as long as wait() returns an integer.