Reply to A Scrip problem
If you don't have an account, just leave the password field blank.
Hey I need help here.
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);
}
---
That's my script. But when I tru to talk to the door, Dink says nothing. and When I got the key. He still doesn't say nothing.
Any help? Did I do something w-r-o-n-g?
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);
}
---
That's my script. But when I tru to talk to the door, Dink says nothing. and When I got the key. He still doesn't say nothing.
Any help? Did I do something w-r-o-n-g?









