Script freeze again!!!!!
AGH! Anything I learned a few months ago must have completely disappeared from my memory.
Okay,here is the problem.The script works fine,I leave the screen but decide to go back and thats when it freezes the game.Quit won't even work,or escape or ctrl alt delete.I hate my life!
Oh and I changed the conversation to protect the content of story...not that there's much of a story to protect...but...ahh...well....
whatever.Here it is:
void main(void)
if (&story == 2)
{
move_stop(1, 8, 282, 1);
move_stop(1, 6, 385, 1);
freeze(1);
sp_dir(1, 8);
say_stop("hey there dude!", 1);
wait(500);
say_stop("`5Hello.", ¤t_sprite);
say_stop("`5dude.", ¤t_sprite);
wait(500);
say_stop("Whoa dude<wink wink>", 1);
wait(500);
say_stop("`5don't wink at me dude.", ¤t_sprite);
wait(500);
say_stop("why dude?", 1);
wait(500);
say_stop("`5cuz dude,", ¤t_sprite);
say_stop("`5thats too weird dude!", ¤t_sprite);
add_magic("item-fb",437, 1);
playsound(33, 22000, 0, 0,0);
wait(500);
say_stop("Hey,cool,some magic!", 1);
wait(500);
say_stop("`5yeah dude.", ¤t_sprite);
&story = 3;
unfreeze(1);
kill_this_task();
}
P.S. I posted this in development but it never went there,it never does.Grrr!I even tried off-topic once but that didn't work either.
Okay,here is the problem.The script works fine,I leave the screen but decide to go back and thats when it freezes the game.Quit won't even work,or escape or ctrl alt delete.I hate my life!

Oh and I changed the conversation to protect the content of story...not that there's much of a story to protect...but...ahh...well....
whatever.Here it is:
void main(void)
if (&story == 2)
{
move_stop(1, 8, 282, 1);
move_stop(1, 6, 385, 1);
freeze(1);
sp_dir(1, 8);
say_stop("hey there dude!", 1);
wait(500);
say_stop("`5Hello.", ¤t_sprite);
say_stop("`5dude.", ¤t_sprite);
wait(500);
say_stop("Whoa dude<wink wink>", 1);
wait(500);
say_stop("`5don't wink at me dude.", ¤t_sprite);
wait(500);
say_stop("why dude?", 1);
wait(500);
say_stop("`5cuz dude,", ¤t_sprite);
say_stop("`5thats too weird dude!", ¤t_sprite);
add_magic("item-fb",437, 1);
playsound(33, 22000, 0, 0,0);
wait(500);
say_stop("Hey,cool,some magic!", 1);
wait(500);
say_stop("`5yeah dude.", ¤t_sprite);
&story = 3;
unfreeze(1);
kill_this_task();
}
P.S. I posted this in development but it never went there,it never does.Grrr!I even tried off-topic once but that didn't work either.
Umm... I dunno if this will fix the problem, but you might want to add a { right after the void main() function and close it with a }.
Yup.
And kill_this_task is kinda redundant, unless the script is attached to sprite 1000.(hm. even if sp1000, the script is done.)
I think Strikers point about { & } for the main() is it though.
And when Dink freezes, try Alt/Tab to minimise it, then Rclick to close, or Cont/Alt/Del.
And kill_this_task is kinda redundant, unless the script is attached to sprite 1000.(hm. even if sp1000, the script is done.)
I think Strikers point about { & } for the main() is it though.
And when Dink freezes, try Alt/Tab to minimise it, then Rclick to close, or Cont/Alt/Del.
Thank you guys...you're awesome!!I'll go try that.