The Dink Network

Reply to Can't talk

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:
 
 
July 19th 2006, 04:53 PM
milder.gif
I am using this to talk to a sprite buy pressing the space bar but when I do it I can't talk to it because when I hit the space bar I only see The word leave.

void main( void )
{
int &story;

void talk( void )
{
freeze(1);
freeze(&current_sprite);
choice_start()
(&story == 1) "What a lot of books here?"
(&story == 2) "Do you have something to tell me?"
"Leave"
choice_end()
if (&result == 1)
{
say_stop("What a lot of books here?", 1);
wait(100);
say_stop("`6SSSTTT, no talking here. This a library.", &current_sprite);
wait(100);

&story = 1;
}
if (&result == 2)
{
say_stop("Do you have something to tell me?", 1);
wait(250);
say_stop("`6No.", &current_sprite);
wait(250);

}

unfreeze(1);
unfreeze(&current_sprite);
}

void hit( void )
{
if (&story <= 10)
{
say_stop("`6Please, don't hit me. I am just a Librarian.", &current_sprite);
}
say_stop("`6Please no, that hurts.", &current_sprite);
}

What am I doing wrong?