Reply to Re: As always... Problems
If you don't have an account, just leave the password field blank.
The main problem here is caused by the ';' at the end of the control statements (the ifs). I would assume those would make Dink think they are commands and not control statements (actually, I'm not even sure if ;'s are even neccessary in DinkC, but I add them in anyway). I cleaned up the code a bit for you, as well. Try out this.
void talk( void )
{
freeze(1);
freeze(¤t_sprite);
choice_start()
set_title_color 7
title_start();
It's good to see you again, as always.
title_end();
"Tell him to hurry"
"Be nice and polite to him"
"Leave your useless servant"
choice_end();
if (&result == 1)
{
say_stop("Hurry up! Don't just stand like a", 1);
say_stop("a", 1);
say_stop("a bumblebee!", 1);
wait(200);
say_stop("`3Hello, my Lord.", ¤t_sprite);
wait(200);
say_stop("That's what you shouldn't do... move please?", 1);
wait(200);
say_stop("`3Where, to do what?", ¤t_sprite);
wait(200);
say_stop("Wel... actually.. uhm...", 1);
wait(200);
say_stop"`3I will do.", ¤t_sprite);
}
if (&result == 2)
{
say_stop("You don't seem to have much work lately. What are you going to do?", 1);
wait(200);
say_stop("`3To follow your orders, my Lord.", ¤t_sprite);
wait(200);
say_stop("I haven't got any, so you can get a day free.", 1);
wait(200);
say_stop("`3Ugatsikauujee THAANK YOUU!!", ¤t_sprite);
wait(200);
say_stop("You're welcome!", 1);
}
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit( void )
{
say("USELESS", 1);
}
void talk( void )
{
freeze(1);
freeze(¤t_sprite);
choice_start()
set_title_color 7
title_start();
It's good to see you again, as always.
title_end();
"Tell him to hurry"
"Be nice and polite to him"
"Leave your useless servant"
choice_end();
if (&result == 1)
{
say_stop("Hurry up! Don't just stand like a", 1);
say_stop("a", 1);
say_stop("a bumblebee!", 1);
wait(200);
say_stop("`3Hello, my Lord.", ¤t_sprite);
wait(200);
say_stop("That's what you shouldn't do... move please?", 1);
wait(200);
say_stop("`3Where, to do what?", ¤t_sprite);
wait(200);
say_stop("Wel... actually.. uhm...", 1);
wait(200);
say_stop"`3I will do.", ¤t_sprite);
}
if (&result == 2)
{
say_stop("You don't seem to have much work lately. What are you going to do?", 1);
wait(200);
say_stop("`3To follow your orders, my Lord.", ¤t_sprite);
wait(200);
say_stop("I haven't got any, so you can get a day free.", 1);
wait(200);
say_stop("`3Ugatsikauujee THAANK YOUU!!", ¤t_sprite);
wait(200);
say_stop("You're welcome!", 1);
}
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit( void )
{
say("USELESS", 1);
}