Reply to Re: help making quest scripts!
If you don't have an account, just leave the password field blank.
Here is an example:
global_int = &story;
&story = 1;
ITEM:
void main(void)
{
if (&story == 1) sp_kill(&current_sprite, 1);
}
void talk(void)
{
say("Hey a broom", 1);
&story = 3;
sp_kill(&current_sprite, 1);
}
MAN:
void talk(void)
{
if (&story == 3) goto after;
if (&story == 4) goto done;
BEFORE:
say_stop("Can you find my broom?", &current_sprite);
&story = 2;
goto end;
AFTER:
say_stop("Hey, its my broom!", &current_sprite);
&story = 4;
goto end;
DONE:
say_stop("You already found it", &current_sprite);
END:
}
global_int = &story;
&story = 1;
ITEM:
void main(void)
{
if (&story == 1) sp_kill(&current_sprite, 1);
}
void talk(void)
{
say("Hey a broom", 1);
&story = 3;
sp_kill(&current_sprite, 1);
}
MAN:
void talk(void)
{
if (&story == 3) goto after;
if (&story == 4) goto done;
BEFORE:
say_stop("Can you find my broom?", &current_sprite);
&story = 2;
goto end;
AFTER:
say_stop("Hey, its my broom!", &current_sprite);
&story = 4;
goto end;
DONE:
say_stop("You already found it", &current_sprite);
END:
}