What did I do wrong?
I made a script and attached it to a sprite. (It's a cutscene) And at the end I want to bring Dink from one place to another. The DINKC.txt file on the CD called it "warping". I tried it but it doesn't work! What did I do wrong? Here it is:
void main(void)
{
freeze(1);
say_stop("Dink, are you sure you want to be a knight?",
¤t_sprite);
say_stop("Yes, mom! Now cut the crap, I must be going.", 1);
say_stop("My tutor is waiting for me outside now, so I've got to go.
I'm sorry.", 1);
&player_map = 2;
void load_screen(void);
void draw_screen(void);
void draw_status(void);
&update_status = 1;
draw_status();
unfreeze(1);
}
void main(void)
{
freeze(1);
say_stop("Dink, are you sure you want to be a knight?",
¤t_sprite);
say_stop("Yes, mom! Now cut the crap, I must be going.", 1);
say_stop("My tutor is waiting for me outside now, so I've got to go.
I'm sorry.", 1);
&player_map = 2;
void load_screen(void);
void draw_screen(void);
void draw_status(void);
&update_status = 1;
draw_status();
unfreeze(1);
}
here is the working script:
void main(void)
{
freeze(1)
say_stop("Dink, are you sure you want to be a knight?", ¤t_sprite);
say_stop("Yes, mom! Now ct the crap, I must be going.", 1);
say_stop("My tutor is waiting for me outside now, so I've got to go. I'm sorry.", 1);
//We must attach the script to 1000, or else it will be killed when warping
script_attach(1000);
&player_map = 2;
//no voids
load_screen();
draw_screen();
//I think the status commands aren't needed here
unfreeze(1);
}
void main(void)
{
freeze(1)
say_stop("Dink, are you sure you want to be a knight?", ¤t_sprite);
say_stop("Yes, mom! Now ct the crap, I must be going.", 1);
say_stop("My tutor is waiting for me outside now, so I've got to go. I'm sorry.", 1);
//We must attach the script to 1000, or else it will be killed when warping
script_attach(1000);
&player_map = 2;
//no voids
load_screen();
draw_screen();
//I think the status commands aren't needed here
unfreeze(1);
}