Reply to Re: Script Interrupted
If you don't have an account, just leave the password field blank.
Making a new spacebar script? That doesn't exactly sound like the easy way out.
The easy way out is by making a new global (&dstalk in this example) and setting it to 1 if you don't want the guard to come in, and to 0 if he's free to come in.
So your script looks something like this:
void main ( void )
{
if (&story == 8)
{
freeze(1);
say_stop("Ouch! My head!", 1);
wait(300);
say_stop("Where am I?", 1);
wait(300);
say_stop("Dang! I'm trapped!", 1);
wait(300);
unfreeze(1);
wait(5000);
loop:
if (&dstalk == 1)
{
wait(500);
goto loop;
}
//Here goes the rest of the script.
}
In the script you don't want to interupt you do something like this:
void talk(void)
{
&dstalk = 1;
freeze(1);
say_stop("I'm having a lengthy conversation with myself here",1);
say_stop("Conversing with yourself is normal in prison",1);
say_stop("Really!",1);
unfreeze(1);
&dstalk = 0;
}
If this is not what you meant you should check Quiztis's answer, though I wouldn't see why you'd spawn a new script, you can attach the entire script to the screen in the first place.
The easy way out is by making a new global (&dstalk in this example) and setting it to 1 if you don't want the guard to come in, and to 0 if he's free to come in.
So your script looks something like this:
void main ( void )
{
if (&story == 8)
{
freeze(1);
say_stop("Ouch! My head!", 1);
wait(300);
say_stop("Where am I?", 1);
wait(300);
say_stop("Dang! I'm trapped!", 1);
wait(300);
unfreeze(1);
wait(5000);
loop:
if (&dstalk == 1)
{
wait(500);
goto loop;
}
//Here goes the rest of the script.
}
In the script you don't want to interupt you do something like this:
void talk(void)
{
&dstalk = 1;
freeze(1);
say_stop("I'm having a lengthy conversation with myself here",1);
say_stop("Conversing with yourself is normal in prison",1);
say_stop("Really!",1);
unfreeze(1);
&dstalk = 0;
}
If this is not what you meant you should check Quiztis's answer, though I wouldn't see why you'd spawn a new script, you can attach the entire script to the screen in the first place.