The Dink Network

Reply to script problem

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:
 
 
August 1st 2003, 08:06 AM
duck.gif
Ok, so I was making this script (so far an easy one) but somehow I managed to screw up. Do you know what wrong with it? Because when i start about one topic, the computer gives all answers.
void talk(void)
{
freeze(1);
choice_start()
" I would like the key of my room, room 44. "
" Where can I have breakfast? "
" Can you show me my room? "
" Where are the toilets?"
" Nothing "
choice_end()

if(&result == 1)
{
say_stop("`0 Here you go, sir. ", &current_sprite);
say_stop(" Thanks.", 1);
unfreeze(1);
}

if(&result == 2);
{
say_stop("`0 First go to the left and then enter the big room, ", &current_sprite);
say_stop("`0 with the sign: 'BREAKFAST'.", &current_sprite);
unfreeze(1);
}

if(&result == 3);
{
say_stop("`0 Sir, you've been here over a week.", &current_sprite);
say_stop("`0 I'm not sending Louis again.", &current_sprite);
unfreeze(1);
}

if(&result == 5);
{
say_stop("`0 To the right, then through the door into the toilets.", &current_sprite);
unfreeze(1);
}

if(&result == 6);
{
unfreeze(1);
}

}