The Dink Network

sjoerdje's Profile

pig.gif
sjoerdje
Peasant He/Him Netherlands
Lava pig to the rescue! 
2004-09-04 04:09:25
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;
}

sjoerdje has released 1 file

TitleCategoryAvgUpdated
Sjoerd's QuestD-Mod, RompFair 6.6June 26th, 2004

sjoerdje has written 5 reviews

TitleFileTypeScoreDate
Ahh Yes Cloud Castle 2: ScarabFeaturedExceptional 9.1October 2nd, 2004
Really a Great Dmod I Must Say World of DinkCNormalExceptional 9.2August 30th, 2004
Graphics: Hmm Elves of RathorNormalFair 5.5August 24th, 2004
Just Finished the Game Stone of BalanceFeaturedExceptional 9.7April 22nd, 2004
Let's Get Straight To the Point: Knight's Tale (A)NormalGood 7.5April 12th, 2004