Reply to Re: Script Freezes
If you don't have an account, just leave the password field blank.
void talk(void)
{
freeze(1);
freeze(¤t_sprite);
choice_start();
"Tell him you haven't found Cyrus yet"
(&story == 4) "Give him the potion"
"leave"
choice_end();
if (&result == 1)
{
say_stop("I can't find Cyrus,your majesty.",1);
say_stop("`3Well,keep trying Smallwood.",¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
if (&result == 2)
{
if (&story == 4);
say_stop("I found Cyrus your majesty,he gave me this potion.",1);
say_stop("`3Well,hand it over Smallwood.",¤t_sprite);
drop_item("item-potion",460, 17);
external("morph","make")
say_stop("Well,Dink Smallwood saves the day...again.",1);
say_stop("`3Nicely done,I knew I could count on you.",¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
return;
}
You forgot several minor things. It's if (result == 1) and not if(result = 1)
few minor ;'s too but this should work.
And put a leave in it, you should always be able to just leave
{
freeze(1);
freeze(¤t_sprite);
choice_start();
"Tell him you haven't found Cyrus yet"
(&story == 4) "Give him the potion"
"leave"
choice_end();
if (&result == 1)
{
say_stop("I can't find Cyrus,your majesty.",1);
say_stop("`3Well,keep trying Smallwood.",¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
if (&result == 2)
{
if (&story == 4);
say_stop("I found Cyrus your majesty,he gave me this potion.",1);
say_stop("`3Well,hand it over Smallwood.",¤t_sprite);
drop_item("item-potion",460, 17);
external("morph","make")
say_stop("Well,Dink Smallwood saves the day...again.",1);
say_stop("`3Nicely done,I knew I could count on you.",¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
return;
}
You forgot several minor things. It's if (result == 1) and not if(result = 1)
few minor ;'s too but this should work.
And put a leave in it, you should always be able to just leave
