Reply to script problem
If you don't have an account, just leave the password field blank.
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. ", ¤t_sprite);
say_stop(" Thanks.", 1);
unfreeze(1);
}
if(&result == 2);
{
say_stop("`0 First go to the left and then enter the big room, ", ¤t_sprite);
say_stop("`0 with the sign: 'BREAKFAST'.", ¤t_sprite);
unfreeze(1);
}
if(&result == 3);
{
say_stop("`0 Sir, you've been here over a week.", ¤t_sprite);
say_stop("`0 I'm not sending Louis again.", ¤t_sprite);
unfreeze(1);
}
if(&result == 5);
{
say_stop("`0 To the right, then through the door into the toilets.", ¤t_sprite);
unfreeze(1);
}
if(&result == 6);
{
unfreeze(1);
}
}
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. ", ¤t_sprite);
say_stop(" Thanks.", 1);
unfreeze(1);
}
if(&result == 2);
{
say_stop("`0 First go to the left and then enter the big room, ", ¤t_sprite);
say_stop("`0 with the sign: 'BREAKFAST'.", ¤t_sprite);
unfreeze(1);
}
if(&result == 3);
{
say_stop("`0 Sir, you've been here over a week.", ¤t_sprite);
say_stop("`0 I'm not sending Louis again.", ¤t_sprite);
unfreeze(1);
}
if(&result == 5);
{
say_stop("`0 To the right, then through the door into the toilets.", ¤t_sprite);
unfreeze(1);
}
if(&result == 6);
{
unfreeze(1);
}
}