Reply to Can't talk
If you don't have an account, just leave the password field blank.
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?