The Dink Network

Reply to Re: As always... Problems

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:
 
 
April 4th 2006, 01:12 AM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
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(&current_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.", &current_sprite);
wait(200);
say_stop("That's what you shouldn't do... move please?", 1);
wait(200);
say_stop("`3Where, to do what?", &current_sprite);
wait(200);
say_stop("Wel... actually.. uhm...", 1);
wait(200);
say_stop"`3I will do.", &current_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.", &current_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!!", &current_sprite);
wait(200);
say_stop("You're welcome!", 1);
}
unfreeze(1);
unfreeze(&current_sprite);
}

void hit( void )
{
say("USELESS", 1);
}