The Dink Network

Reply to A scripting problem

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:
 
 
June 21st 2005, 10:25 AM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
Somewhere in my DMOD, there is a bonca.
The "die" procedure is the following:

void die( void )
{

if (get_sprite_with_this_brain(9, &current_sprite) == 0)
{
//no more brain 9 monsters here, lets unlock the screen

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

}

int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
editor_type(&hold, 6);

&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);
&kill_bonca = 1;

//The problem starts from here
freeze(1);
say_stop("Something odd happened", 1);
say_stop("I feel so strange...", 1);
unfreeze(1);
}

When I play the game, after I kill the bonca, the &kill_bonca variable becomes 1, Dink freezes, than says: "Something odd happened", and than nothing else happends. He never says "I feel so strange...", and never get unfreezed. I have no ideea why. Can anybody help me?