The Dink Network

Can't talk

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?
July 19th 2006, 05:05 PM
anon.gif
Tha Dude
Ghost They/Them
 
the only thing wrong i see is that you put 'void main (void)' instead of '(void) main (void)
but other than that it looks like it should be working...
July 19th 2006, 05:21 PM
milder.gif
I will reply my own stupidity. Look at the void main (void) int &story. Oh I am stupid just delete the int &story and the script is working perfectly.