The Dink Network

Reply to Re: Need Some Help for my First DMOD

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:
 
 
July 11th 2004, 02:12 AM
farmer.gif
void die( void )
{
&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);

int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
{
//added this bracket, so that script would not terminate when it got to the next closing bracket
editor_type(&hold, 2);
editor_seq(&hold, 645);
editor_frame(&hold, 1);
}
script_attach(1000);
int &othersprite = create_sprite(&save_x, &save_y, 0, 645, 1);
stopmidi();
playmidi("12.mid");
freeze(1);
freeze(&othersprite);
say_stop("`5 Bla bla bla",&othersprite);
say_stop(" bla bla bla",1);
unfreeze(1);
unfreeze(&othersprite);
external("credits", "main");
}

i can't believe i didn't think of this before. i was having the same problem with a boss script when he died. i'm not quite sure exactly what you're wanting to do, but you have to attach the script to sprite 1000, or the script just dies with the boss. i modified the script to do this, plus fixed a few other things. i created another sprite for the boss to talk after he's dead. at least, that's the only way i can think of doing it at the moment. as far as the credits go, you should create another script for them named credits and just put whatever you want to do for them. the external() command will run the credits script when it gets to that part of the boss script.