The Dink Network

Reply to Re: Summoning

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:
 
 
March 16th 2006, 04:28 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Okay members of the DN one last thing, really...Everything is working fine, but... I have some lines that need to happen for the screenlock enemy to unlock the screen...Why not just copy from an example script? That's no good, it needs to exclude our summon. I know that I could make another script and spawn it..but I'm ending up with too many scripts as it is, here are the lines that need to play in the die procedure of the enemy:
note: &locks is initted in main procedure

//exclude summoned monster

&locks = get_sprite_with_this_brain(9, &summon);
//subtract one for the monster that just died
&locks -= 1;
if (&locks == 0)
{
//no more brain 9 monsters here, lets unlock the screen

screenlock(0);
playsound(43, 22050,0,0,0);

}