Reply to A scripting problem
If you don't have an account, just leave the password field blank.
Somewhere in my DMOD, there is a bonca.
The "die" procedure is the following:
void die( void )
{
if (get_sprite_with_this_brain(9, ¤t_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(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_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?
The "die" procedure is the following:
void die( void )
{
if (get_sprite_with_this_brain(9, ¤t_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(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_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?