Reply to Could someone look at this script?
If you don't have an account, just leave the password field blank.
In the script below, I have two problems:
1) I don't want the game to fade if Dink chooses not to go to bed, but it does.
2)If Dink takes a nap there will be a fade and the storyline is up to 1, if not the story stays at 0.
I tried to put that in, but the game just chrashed, and I don't know what to do about it. I would be very thankful if someone could show me excactly how this should be written out... I'm just starting to learn this, so excuse this basic question...
THE SCRIPT:
void talk(void)
{
freeze(1);
choice_start();
"Lie down?"
"Nah... Sleep is overrated..."
choice_end();
if(&result==1)
{
fade_down();
fill_screen(0);
say_stop("`4Dink! Wake up!", ¤t_sprite);
wait(200);
&player_map = 33;
sp_x(1, 300);
sp_y(1, 160);
script_attach(1000);
load_screen();
draw_screen();
draw_status();
fade_up();
unfreeze(1);
kill_this_task();
}
return;
}
void hit(void)
{
freeze(1);
say_stop("You're hard!! Soften!", 1);
wait(200);
say_stop("`4In your dreams...", ¤t_sprite);
unfreeze(1);
}
1) I don't want the game to fade if Dink chooses not to go to bed, but it does.
2)If Dink takes a nap there will be a fade and the storyline is up to 1, if not the story stays at 0.
I tried to put that in, but the game just chrashed, and I don't know what to do about it. I would be very thankful if someone could show me excactly how this should be written out... I'm just starting to learn this, so excuse this basic question...
THE SCRIPT:
void talk(void)
{
freeze(1);
choice_start();
"Lie down?"
"Nah... Sleep is overrated..."
choice_end();
if(&result==1)
{
fade_down();
fill_screen(0);
say_stop("`4Dink! Wake up!", ¤t_sprite);
wait(200);
&player_map = 33;
sp_x(1, 300);
sp_y(1, 160);
script_attach(1000);
load_screen();
draw_screen();
draw_status();
fade_up();
unfreeze(1);
kill_this_task();
}
return;
}
void hit(void)
{
freeze(1);
say_stop("You're hard!! Soften!", 1);
wait(200);
say_stop("`4In your dreams...", ¤t_sprite);
unfreeze(1);
}