Reply to Coding error
If you don't have an account, just leave the password field blank.
I attached this script to one of redink1's trees, and the script works like a charm except for the fact the bloody thing goes ahead and sings anyway regardless of whether you choose to ignore it or not. I can't see any errors, can anyone else?
void talk(void)
{
freeze(1);
choice_start();
"Ask for directions"
"Ignore the tree for now"
choice_end();
if(&result==1)
{
say_stop("`7It was twenty years ago today", ¤t_sprite);
say_stop("`7That Sergeant Pepper taught the band to play",¤t_sprite);
wait(200);
say_stop("What's up?", 1);
wait(200):
say_stop("`7And a stranger stopped to ask the way...", ¤t_sprite);
wait(200);
say_stop("Which way is Swinetown?", 1);
wait(200);
say_stop("`7Somewhere, over the rainbow-", ¤t_sprite);
wait(200);
say_stop("What?", 1);
wait(200);
say_stop("`7Way up high...", ¤t_sprite);
say_stop("`7And he failed to realise it was very nigh...", ¤t_sprite);
}
unfreeze(1);
return;
}
void talk(void)
{
freeze(1);
choice_start();
"Ask for directions"
"Ignore the tree for now"
choice_end();
if(&result==1)
{
say_stop("`7It was twenty years ago today", ¤t_sprite);
say_stop("`7That Sergeant Pepper taught the band to play",¤t_sprite);
wait(200);
say_stop("What's up?", 1);
wait(200):
say_stop("`7And a stranger stopped to ask the way...", ¤t_sprite);
wait(200);
say_stop("Which way is Swinetown?", 1);
wait(200);
say_stop("`7Somewhere, over the rainbow-", ¤t_sprite);
wait(200);
say_stop("What?", 1);
wait(200);
say_stop("`7Way up high...", ¤t_sprite);
say_stop("`7And he failed to realise it was very nigh...", ¤t_sprite);
}
unfreeze(1);
return;
}
