Reply to Re: Scripting Help
If you don't have an account, just leave the password field blank.
Thanks but now i have a problem with the new question in choice_start i made this script:
void talk(void)
{
freeze(1);
freeze(¤t_sprite);
choice_start();
"Ask about magic"
"Ask about village"
"Ask about Temple of the Ancients"
(&story == 3)"Tell about the blocking road"
"Nevermind"
choice_end()
if (&result == 1)
{
say_stop("Can you learn me some magic?", 1);
say_stop("`3Of course", ¤t_sprite);
wait(750);
say_stop("`3For 1 million gold.", ¤t_sprite);
say_stop("WHAT?!!I want it for 1000 gold", 1);
say_stop("`3Million gold or no magic", ¤t_sprite);
say_stop("NO WAY I'M OUTTA HERE!", 1);
unfreeze(1);
unfreeze(¤t_sprite);
}
if (&result == 2)
{
say_stop("Tell me about something about the village", 1);
say_stop("`3Well you are in Midina village the villagers are peaceful.", ¤t_sprite);
say_stop("`3If not that idiot called Rand!", ¤t_sprite);
say_stop("`3He suspects me that i changed his axe into a stick.What an ass!", ¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
if (&result == 3)
{
say_stop("Tell me about the Temple of the Ancients", 1);
say_stop("`3Temple of the Ancients?Hmmm i don't know about this temple.Sorry.", ¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
if (&result == 4)
{
if (&story == 3)
{
say_stop("Hey can you help me?", 1);
say_stop("`3In what?", ¤t_sprite);
say_stop("The road is blocked is there another way to the temple?", 1);
say_stop("`3What?The road is blocked again!.Ok i'll help you.Hold on for a sec", ¤t_sprite);
say_stop("`3Ommmmmm.....Ommmmmmm......", ¤t_sprite);
playsound(24, 22052, 0, 0, 0);
wait(750);
say_stop("`3There you go go south from my house for a secret passage", ¤t_sprite);
say_stop("Erm....Gee...Thanks...", 1);
unfreeze(1);
unfreeze(¤t_sprite);
&story = 4
}
}
if (&result == 5)
{
unfreeze(1);
unfreeze(¤t_sprite);
}
and when it's story = 3 it won't show me.What shoud i do?
void talk(void)
{
freeze(1);
freeze(¤t_sprite);
choice_start();
"Ask about magic"
"Ask about village"
"Ask about Temple of the Ancients"
(&story == 3)"Tell about the blocking road"
"Nevermind"
choice_end()
if (&result == 1)
{
say_stop("Can you learn me some magic?", 1);
say_stop("`3Of course", ¤t_sprite);
wait(750);
say_stop("`3For 1 million gold.", ¤t_sprite);
say_stop("WHAT?!!I want it for 1000 gold", 1);
say_stop("`3Million gold or no magic", ¤t_sprite);
say_stop("NO WAY I'M OUTTA HERE!", 1);
unfreeze(1);
unfreeze(¤t_sprite);
}
if (&result == 2)
{
say_stop("Tell me about something about the village", 1);
say_stop("`3Well you are in Midina village the villagers are peaceful.", ¤t_sprite);
say_stop("`3If not that idiot called Rand!", ¤t_sprite);
say_stop("`3He suspects me that i changed his axe into a stick.What an ass!", ¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
if (&result == 3)
{
say_stop("Tell me about the Temple of the Ancients", 1);
say_stop("`3Temple of the Ancients?Hmmm i don't know about this temple.Sorry.", ¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
if (&result == 4)
{
if (&story == 3)
{
say_stop("Hey can you help me?", 1);
say_stop("`3In what?", ¤t_sprite);
say_stop("The road is blocked is there another way to the temple?", 1);
say_stop("`3What?The road is blocked again!.Ok i'll help you.Hold on for a sec", ¤t_sprite);
say_stop("`3Ommmmmm.....Ommmmmmm......", ¤t_sprite);
playsound(24, 22052, 0, 0, 0);
wait(750);
say_stop("`3There you go go south from my house for a secret passage", ¤t_sprite);
say_stop("Erm....Gee...Thanks...", 1);
unfreeze(1);
unfreeze(¤t_sprite);
&story = 4
}
}
if (&result == 5)
{
unfreeze(1);
unfreeze(¤t_sprite);
}
and when it's story = 3 it won't show me.What shoud i do?