The Dink Network

Reply to Re: Callback

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:
 
 
September 12th 2005, 01:50 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Pseudo code...

Somewhere:

//&spawned is global, you can also use any other valid check, just make sure it isn't run twice at the same moment, or you must want that.
if (&spawned == 0)
{
spawn("other_script");
//add .c extension?
&spawned == 1;
}

other_script:

void main( void )
{
wait(&loooong_time);
pee();
}

And the poison would be done with a loop and a timer or something.

other_script:

void main( void )
{
int &timer = 0;
loop:
wait(1000);
&timer += 1;
if (&timer == &time)
{
if (&poisoned != 1)
{
//Kill if not poisoned
kill_this_task();
}
&life -= 5;
}
goto loop;
}