The Dink Network

Reply to Re: Locking screens....

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:
 
 
December 8th 2008, 03:29 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Only certain enemy scripts from the main game had the screen lock in their scripts. You can check out my Pre-Used Scripts In Dink Smallwood file. It gives a list of the enemy scripts and tells their stats and which ones have screen locking capabilities.

If you wanted to lock a screen only the first time you entered it, you can use this script. Just attach it to a 'fake' sprite. Keep in mind that whatever you attach it to will disappear. It will beat a screen lock cheat also since it continuously locks the screen until all brain 9 enemies are gone.

void main( void )
{
int &monster;
sp_nodraw(&current_sprite, 1);
sp_nohit(&current_sprite, 1);

//loop checks for brain 9 monsters
loop:
wait(1);
&monster = get_sprite_with_this_brain(9, &current_sprite);

//if there are any brain 9 monster
//lock screen and go back to loop
if (&monster > 0)
{
screenlock(1);
goto loop;
}

//no monsters since we made past loop
//unlock screen with jingle sound
screenlock(0);
playsound(43, 22050,0,0,0);

//kills the screen locking sprite forever
int &editor_sprite = sp_editor_num(&current_sprite);
if (&editor_sprite != 0)
{
editor_type(&editor_sprite, 1);
}

kill_this_task();
}