The Dink Network

What did I do wrong?

July 2nd 2003, 12:16 PM
pq_frog.gif
nwdel
Peasant He/Him
 
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?",

&current_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);
}
July 2nd 2003, 01:29 PM
old.gif
here is the working script:

void main(void)
{
freeze(1)
say_stop("Dink, are you sure you want to be a knight?", &current_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);
}
July 2nd 2003, 10:16 PM
spike.gif
Unless that is an intro, you half-mutated crocodile head.
July 2nd 2003, 10:17 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
&update_status = 1;

You only have to do this once, not every time Dink warps. Just place that line in start-1.c and the game knows to update the statusbars if necessary.