Another problem
Another problem! (I'm sure I'm starting to get you guys on the nervs, sorry)
When i talk to this guy, select "The major sent me" and then "8" He say it's wrong and kill me, isn't that weird? Also, if i select "spying" at first selection nothing happens.
Here's the script:
void main(void)
{
int &pass;
&pass = 0;
}
void talk(void)
{
If (&pass == 0)
{
freeze(1);
say_stop("`5HEY! What are you doing here?!", ¤t_sprite);
choice_start();
set_y 240
set_title_color 1
title_start();
"What are you doing here?"
title_end();
"The major sent me"
"Spying"
choice_end();
If (&result == 1)
{
say_stop("`5Oh really? Tell me the password then!", ¤t_sprite);
choice_start();
set_title_color 1
title_start();
"Password"
title_end();
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9"
"10"
"11"
"12"
"13"
"14"
"15"
"16"
"17"
"18"
"19"
"20"
choice_end();
If (result == 8)
{
say_stop("`5Oh you know the password!",¤t_sprite);
say_stop("`5Then the major really sent you!", ¤t_sprite);
wait(200);
say_stop("Of course he did!*cough*", 1);
say_stop("Now, let me in!", 1);
wait(200);
say_stop("Ok.", ¤t_sprite);
sp_hard(&block, 1);
draw_hard_map();
&pass = 1;
unfreeze(1);
}
else
{
say_stop("`5That's wrong, I have to kill you.", ¤t_sprite);
unfreeze(1);
&life = 0;
}
If (&result == 2)
{
say_stop("I'm spying on you.",1);
wait(200);
say_stop("`5Oh I see, then i have to kill you.", ¤t_sprite);
unfreeze(1);
&life = 0;
}
}
}
When i talk to this guy, select "The major sent me" and then "8" He say it's wrong and kill me, isn't that weird? Also, if i select "spying" at first selection nothing happens.
void main(void)
{
int &pass;
&pass = 0;
}
void talk(void)
{
If (&pass == 0)
{
freeze(1);
say_stop("`5HEY! What are you doing here?!", ¤t_sprite);
choice_start();
set_y 240
set_title_color 1
title_start();
"What are you doing here?"
title_end();
"The major sent me"
"Spying"
choice_end();
If (&result == 1)
{
say_stop("`5Oh really? Tell me the password then!", ¤t_sprite);
choice_start();
set_title_color 1
title_start();
"Password"
title_end();
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9"
"10"
"11"
"12"
"13"
"14"
"15"
"16"
"17"
"18"
"19"
"20"
choice_end();
If (result == 8)
{
say_stop("`5Oh you know the password!",¤t_sprite);
say_stop("`5Then the major really sent you!", ¤t_sprite);
wait(200);
say_stop("Of course he did!*cough*", 1);
say_stop("Now, let me in!", 1);
wait(200);
say_stop("Ok.", ¤t_sprite);
sp_hard(&block, 1);
draw_hard_map();
&pass = 1;
unfreeze(1);
}
else
{
say_stop("`5That's wrong, I have to kill you.", ¤t_sprite);
unfreeze(1);
&life = 0;
}
If (&result == 2)
{
say_stop("I'm spying on you.",1);
wait(200);
say_stop("`5Oh I see, then i have to kill you.", ¤t_sprite);
unfreeze(1);
&life = 0;
}
}
}
void main(void)
{
int &pass;
&pass = 0;
}
void talk(void)
{
If (&pass == 0)
{
freeze(1);
say_stop("`5HEY! What are you doing here?!", ¤t_sprite);
choice_start();
set_y 240
set_title_color 1
title_start();
"What are you doing here?"
title_end();
"The major sent me"
"Spying"
choice_end();
If (&result == 1)
{
say_stop("`5Oh really? Tell me the password then!", ¤t_sprite);
choice_start();
set_title_color 1
title_start();
"Password"
title_end();
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9"
"10"
"11"
"12"
"13"
"14"
"15"
"16"
"17"
"18"
"19"
"20"
choice_end();
//missing &
If (&result == 8)
{
say_stop("`5Oh you know the password!",¤t_sprite);
say_stop("`5Then the major really sent you!", ¤t_sprite);
wait(200);
say_stop("Of course he did!*cough*", 1);
say_stop("Now, let me in!", 1);
wait(200);
say_stop("Ok.", ¤t_sprite);
sp_hard(&block, 1);
draw_hard_map();
&pass = 1;
unfreeze(1);
}
else
{
say_stop("`5That's wrong, I have to kill you.", ¤t_sprite);
unfreeze(1);
&life = 0;
//I added this here because otherwise when the player picks choice 2, it will run the following dialogue for the previous choice menu
return;
}
//missing a closing bracket
}
If (&result == 2)
{
say_stop("I'm spying on you.",1);
wait(200);
say_stop("`5Oh I see, then i have to kill you.", ¤t_sprite);
unfreeze(1);
&life = 0;
}
}
}
{
int &pass;
&pass = 0;
}
void talk(void)
{
If (&pass == 0)
{
freeze(1);
say_stop("`5HEY! What are you doing here?!", ¤t_sprite);
choice_start();
set_y 240
set_title_color 1
title_start();
"What are you doing here?"
title_end();
"The major sent me"
"Spying"
choice_end();
If (&result == 1)
{
say_stop("`5Oh really? Tell me the password then!", ¤t_sprite);
choice_start();
set_title_color 1
title_start();
"Password"
title_end();
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9"
"10"
"11"
"12"
"13"
"14"
"15"
"16"
"17"
"18"
"19"
"20"
choice_end();
//missing &
If (&result == 8)
{
say_stop("`5Oh you know the password!",¤t_sprite);
say_stop("`5Then the major really sent you!", ¤t_sprite);
wait(200);
say_stop("Of course he did!*cough*", 1);
say_stop("Now, let me in!", 1);
wait(200);
say_stop("Ok.", ¤t_sprite);
sp_hard(&block, 1);
draw_hard_map();
&pass = 1;
unfreeze(1);
}
else
{
say_stop("`5That's wrong, I have to kill you.", ¤t_sprite);
unfreeze(1);
&life = 0;
//I added this here because otherwise when the player picks choice 2, it will run the following dialogue for the previous choice menu
return;
}
//missing a closing bracket
}
If (&result == 2)
{
say_stop("I'm spying on you.",1);
wait(200);
say_stop("`5Oh I see, then i have to kill you.", ¤t_sprite);
unfreeze(1);
&life = 0;
}
}
}









