Reply to Re: Help!This can't work!
If you don't have an account, just leave the password field blank.
void talk(void)
{
freeze(1);
freeze(¤t_sprite);
if (&story == 0)
{
say_stop("`2Hey.", ¤t_sprite);
wait(250);
say_stop("Wow!A talking well!", 1);
wait(250);
say_stop("`2What?Haven't you seen a well talked?", ¤t_sprite);
wait(250);
say_stop("Ummm...Yes.", 1);
wait(250);
say_stop("`2dang", ¤t_sprite);
wait(250);
say_stop("...", 1);
wait(250);
say_stop("`2There is a stone,hit it.", ¤t_sprite);
wait(250);
say_stop("Fine.", 1)
&story = 1;
}
if (&story == 1)
{
say_stop("`2Hit it!", ¤t_sprite);
}
if (&story == 2)
{
say_stop("`2Well done.", ¤t_sprite);
wait(250);
say_stop("<sigh>", 1);
&story = 3;
}
if (&story == 3)
{
say_stop("`2Hey.", ¤t_sprite);
wait(250);
say_stop("Hey.", 1);
}
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit(void)
{
say_stop("`2grrr!",¤t_sprite);
}
Try it now.
The problem was since the beginning, the space between the procedure's name and it's parameter: wait(250) is correct, wait (250) isn't.
It should work now.
{
freeze(1);
freeze(¤t_sprite);
if (&story == 0)
{
say_stop("`2Hey.", ¤t_sprite);
wait(250);
say_stop("Wow!A talking well!", 1);
wait(250);
say_stop("`2What?Haven't you seen a well talked?", ¤t_sprite);
wait(250);
say_stop("Ummm...Yes.", 1);
wait(250);
say_stop("`2dang", ¤t_sprite);
wait(250);
say_stop("...", 1);
wait(250);
say_stop("`2There is a stone,hit it.", ¤t_sprite);
wait(250);
say_stop("Fine.", 1)
&story = 1;
}
if (&story == 1)
{
say_stop("`2Hit it!", ¤t_sprite);
}
if (&story == 2)
{
say_stop("`2Well done.", ¤t_sprite);
wait(250);
say_stop("<sigh>", 1);
&story = 3;
}
if (&story == 3)
{
say_stop("`2Hey.", ¤t_sprite);
wait(250);
say_stop("Hey.", 1);
}
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit(void)
{
say_stop("`2grrr!",¤t_sprite);
}
Try it now.
The problem was since the beginning, the space between the procedure's name and it's parameter: wait(250) is correct, wait (250) isn't.
It should work now.






