📧 Message Board Archive

Please help!!
I still have this problem with Key-90.c

I tried what Kyle and Tyrsis said, but no luck.

Here's the script:



void main(void)

{

if (&escape == 0)

{

say("I haven't got Escape Magic", 1);

}



if (&escape == 1)

{

&magic_level = 0;

say("Give me the power of *SAFETY*", 1);

wait(800);

script_attach(1000);

fade_down();

fill_screen(0);

&player_map = 500;

sp_x(1, 320);

sp_y(1, 220);

load_screen();

draw_screen();

fade_up();

&update_status = 1;

draw_status();

return;

}



}



Everytime I press Key-90 (Z), my computer crashes.

I made sure that &escape is 0 in the beginning, and even when I try to make 'if (&gold == 0)

(where your gold 0 is) my comp crashes. When &escape is 1, than everything works fine, but with 0 it crashes. Anyone has a solution to this?

I really need your help because it's a essential part of Legend of TerraEarth!! :(



Thanks in advance











Re: Please help!!
: I still have this problem with Key-90.c



: I tried what Kyle and Tyrsis said, but no luck.



: Here's the script:



: void main(void)

: {

: if (&escape == 0)

: {

:  say("I haven't got Escape Magic", 1);

: }

: if (&escape == 1)

: {

: &magic_level = 0;

: say("Give me the power of *SAFETY*", 1);

: wait(800);

: script_attach(1000);

: fade_down();

: fill_screen(0);

: &player_map = 500;

: sp_x(1, 320);

: sp_y(1, 220);

: load_screen();

: draw_screen();

: fade_up();

: &update_status = 1;

: draw_status();

: return;

: }

: }



: Everytime I press Key-90 (Z), my computer crashes.



: I made sure that &escape is 0 in the beginning, and even when I try to make 'if (&gold == 0)



: (where your gold 0 is) my comp crashes. When &escape is 1, than everything works fine, but with 0 it crashes. Anyone has a solution to this?



: I really need your help because it's a essential part of Legend of TerraEarth!! :(



: Thanks in advance



I tested it, using &flag (a variable already in my testing d-mod) in place of &escape and it worked fine. :( I don't know what's wrong. I also run my indent program on in first, but I doubt that changed it.
Re: Please help!!
: I still have this problem with Key-90.c



...(message here)



: Thanks in advance



Hmm, well, you need to have a kill this task there or the script will stay in memory. You could also try return; - I don't say it'll work but you can try...



Simeon
Re: Please help!!
: : I still have this problem with Key-90.c



: ...(message here)



: : Thanks in advance



: Hmm, well, you need to have a kill this task there or the script will stay in memory. You could also try return; - I don't say it'll work but you can try...



: Simeon



Yeah I know, Phoenix told me, and it worked!

Thanks anyway. :)