📧 Message Board Archive

why doesn't this script work??? *PLZ*HELP*ME*!!!*
it doesn't help!!!

this was my last mssg:



:: : dink won't die with this script (hey, a new God Mode!), it is the normal dinfo.c from dink\story.



:: : the bold things are the things i've added to the script...



:: : if dink's life is 0, this script won't run. so dink doesn't die.. and, fade down and up won't work with me... weird.



:: Okay, first of all, what's this on the first line? There's at least 3 things wrong with it. I assume that happened when you copied it here, but if not... no wonder it won't run.



:: : sp_kill_wait(, 0);void die( void );

:: : {

:: :       freeze(1);

:: :       &update_status = 0;

:: :       int &mholdx = sp_x(1,-1);

:: :       int &mholdy = sp_y(1,-1);

:: : }



:: And why do you close the curly brace here? You want the rest of the script to run too, don't you?



:: : //int &crap = create_sprite(&mholdx,&mholdy,5,436,1);

:: : sp_seq(1, 436);

:: : sp_base_idle(1, -1);

:: : wait(3000);

:: : sp_nohit(1, 1);

:: : sp_brain(1, 0);

:: : wait(1000);

:: : fade_down();

:: : wait(2000);

:: : script_attach(1000);

:: : &player_map = 33;

:: : load_screen(33);

:: : draw_screen();

:: : fade_up();

:: : again:

:: : choice_start();

:: : "Restart game"

:: : "Quit to Windows"

:: : choice_end();

:: : if (&result == 1)

:: : {

:: :       sp_nohit(1, 0);

:: :       restart_game();

:: : }

:: : if (&result == 2)

:: : {

:: :       kill_game();

:: : }



:but dink doesn't freeze... nothing! the whole void die( void ) doesn't work!!!







PLZ HELP ME!
Re: why doesn't this script work??? *PLZ*HELP*ME*!!!*
: it doesn't help!!!

: this was my last mssg:

: :: : dink won't die with this script (hey, a new God Mode!), it is the normal dinfo.c from dink\story.

: :: : the bold things are the things i've added to the script...

: :: : if dink's life is 0, this script won't run. so dink doesn't die.. and, fade down and up won't work with me... weird.

: :: Okay, first of all, what's this on the first line? There's at least 3 things wrong with it. I assume that happened when you copied it here, but if not... no wonder it won't run.

: :: : sp_kill_wait(, 0);void die( void );

: :: : {

: :: : freeze(1);

: :: : &update_status = 0;

: :: : int &mholdx = sp_x(1,-1);

: :: : int &mholdy = sp_y(1,-1);

: :: : }

: :: And why do you close the curly brace here? You want the rest of the script to run too, don't you?

: :: : //int &crap = create_sprite(&mholdx,&mholdy,5,436,1);

: :: : sp_seq(1, 436);

: :: : sp_base_idle(1, -1);

: :: : wait(3000);

: :: : sp_nohit(1, 1);

: :: : sp_brain(1, 0);

: :: : wait(1000);

: :: : fade_down();

: :: : wait(2000);

: :: : script_attach(1000);

: :: : &player_map = 33;

: :: : load_screen(33);

: :: : draw_screen();

: :: : fade_up();

: :: : again:

: :: : choice_start();

: :: : "Restart game"

: :: : "Quit to Windows"

: :: : choice_end();

: :: : if (&result == 1)

: :: : {

: :: : sp_nohit(1, 0);

: :: : restart_game();

: :: : }

: :: : if (&result == 2)

: :: : {

: :: : kill_game();

: :: : }

: :but dink doesn't freeze... nothing! the whole void die( void ) doesn't work!!!

: PLZ HELP ME!



I'm not sure but I don't think you can have two commands in one line (first line), at least not such that you need two ";".If this is for an alternate death seq. or after death event then sorry , but this is still beyond me.
Re: why doesn't this script work??? *PLZ*HELP*ME*!!!*
//What's this? I'll try to figure it out

//sp_kill_wait(, 0);void die( void );





//I think thats better, not sure thou.

sp_kill_wait();

void die();

{

freeze(1);

&update_status = 0;

int &mholdx = sp_x(1,-1);

int &mholdy = sp_y(1,-1);



// don't know why this was inactive, couldn't hurt to reactivate it, at least, don't think so.

int &crap = create_sprite (&mholdx,&mholdy,5,436,1);



sp_seq(1, 436);

sp_base_idle(1, -1);

wait(3000);

sp_nohit(1, 1);

sp_brain(1, 0);

wait(1000);

fade_down();

//wait(2000);

//----------------

// this has a tendancy to take a very long time, as in +5 min for me. Try wait(300); , wait(100); and wait(200); as no one likes to be kept waiting and also, Fade_down & wait can cause *issues*. At least for me.

//----------------

script_attach(1000);

&player_map = 33;

load_screen(33);

draw_screen();

fade_up();

again:



//---------- options

choice_start();

  "Restart game"

  "Quit to Windows"

choice_end();



//------------------------ option 1

if (&result == 1)

{

sp_nohit(1, 0);

restart_game();

}



//-------------------------- option 2

if (&result == 2)

{

 kill_game();

}



I don't know if any of this will work. So just see from there.
Re: why doesn't this script work??? *PLZ*HELP*ME*!!!*
Can you post the WHOLE script? And also explain what you want to do. I'm sorry, but I can't make any sense out of your script.