The Dink Network

Reply to Re: A stupid Question...

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 4th 2004, 04:09 AM
pig.gif
sjoerdje
Peasant He/Him Netherlands
Lava pig to the rescue! 
Put this in a script and attach the script to a sprite. The script will do the rest:

//locks screen, just attach script to any sprite(not a monster)
void main(void)
{
sp_nodraw(&current_sprite, 1);
int &numberenemies = 0;
wait(10);
if (get_sprite_with_this_brain(9, &current_sprite) > 0)
{
&numberenemies = 1;
}
if (get_sprite_with_this_brain(10, &current_sprite) > 0)
{
&numberenemies = 1;
}
if (&numberenemies == 0)
{
return;
}
screenlock(1);
mainloop:
wait(500);
if (get_sprite_with_this_brain(9, &current_sprite) == 0)
{
if (get_sprite_with_this_brain(10, &current_sprite) == 0)
{
screenlock(0);
playsound(43, 22050,0,0,0);
return;
}
}
screenlock(1);
goto mainloop;
}