The Dink Network

Reply to Re: Script Freezes

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
September 12th 2004, 12:55 AM
pig.gif
sjoerdje
Peasant He/Him Netherlands
Lava pig to the rescue! 
void talk(void)
{
freeze(1);
freeze(&current_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.",&current_sprite);
unfreeze(1);
unfreeze(&current_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.",&current_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.",&current_sprite);
unfreeze(1);
unfreeze(&current_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