Reply to Re: A Scrip problem
If you don't have an account, just leave the password field blank.
Here we go. I hope this is right!
make_global_int("&key", 0);
That's the glpbal int.
Corrected version:
void talk( void )
{
if (&key == 1)
{
freeze(1);
say_stop("`3Hmm.. this door is locked but... how?", 1);
sp_dir(1, 2);
say_stop("`3I wonder what's behind it?", 1);
unfreeze(1);
}
if (&key == 2)
{
{
freeze(1);
say_stop("`3Hmm.. this door is locked but... how?", 1);
sp_dir(1, 2);
say_stop("`3I wonder what's behind it?", 1);
sp_dir(1, 6);
say_stop("`3This key might...", 1);
sp_nodraw(¤t_sprite, 1);
say_stop("`3Open it!", 1);
fade_down();
sp_active(&kill, 0);
wait(500);
script_attach(1000);
fill_screen(0);
&player_map = 283;
sp_x(1, 355);
sp_y(1, 185);
sp_dir(1, 6);
load_screen(34);
draw_screen();
fade_up();
unfreeze(1);
}
}
I hope those are right.
BTW: I gotta go now, so I probably don't reply in a while. Just for, so you know.
make_global_int("&key", 0);
That's the glpbal int.
Corrected version:
void talk( void )
{
if (&key == 1)
{
freeze(1);
say_stop("`3Hmm.. this door is locked but... how?", 1);
sp_dir(1, 2);
say_stop("`3I wonder what's behind it?", 1);
unfreeze(1);
}
if (&key == 2)
{
{
freeze(1);
say_stop("`3Hmm.. this door is locked but... how?", 1);
sp_dir(1, 2);
say_stop("`3I wonder what's behind it?", 1);
sp_dir(1, 6);
say_stop("`3This key might...", 1);
sp_nodraw(¤t_sprite, 1);
say_stop("`3Open it!", 1);
fade_down();
sp_active(&kill, 0);
wait(500);
script_attach(1000);
fill_screen(0);
&player_map = 283;
sp_x(1, 355);
sp_y(1, 185);
sp_dir(1, 6);
load_screen(34);
draw_screen();
fade_up();
unfreeze(1);
}
}
I hope those are right.
BTW: I gotta go now, so I probably don't reply in a while. Just for, so you know.







