Can't talk
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(¤t_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.", ¤t_sprite);
wait(100);
&story = 1;
}
if (&result == 2)
{
say_stop("Do you have something to tell me?", 1);
wait(250);
say_stop("`6No.", ¤t_sprite);
wait(250);
}
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit( void )
{
if (&story <= 10)
{
say_stop("`6Please, don't hit me. I am just a Librarian.", ¤t_sprite);
}
say_stop("`6Please no, that hurts.", ¤t_sprite);
}
What am I doing wrong?
void main( void )
{
int &story;
void talk( void )
{
freeze(1);
freeze(¤t_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.", ¤t_sprite);
wait(100);
&story = 1;
}
if (&result == 2)
{
say_stop("Do you have something to tell me?", 1);
wait(250);
say_stop("`6No.", ¤t_sprite);
wait(250);
}
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit( void )
{
if (&story <= 10)
{
say_stop("`6Please, don't hit me. I am just a Librarian.", ¤t_sprite);
}
say_stop("`6Please no, that hurts.", ¤t_sprite);
}
What am I doing wrong?
July 19th 2006, 05:05 PM
Tha Dude
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...
but other than that it looks like it should be working...
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.