Uhmm... I dont have one here ( no internet at home ) but I can describe it :
FIRST : Think of HOW your mission can divide up into partitions. Like
mission stage 1 : Fly around and chatter
mission stage 2 : Enemies jump in
mission stage 3 : when enemies defeated, fly the long way to ship XY
mission stage 4 : when you have reached ship XY, more enemies jump in.
If your mission is set up like this ( for example ) it would be nice if you could jump to stage 2 when you are in stage 1, and if you could jump to stage 4 when you are in stage 3.
Technical part :
You have to use a variable, I call it MISSION-STAGE , default value is 1.
Throughout your mission , you can either jump to next stage, or the stage is reached automatically. In both cases, the variable counts up. For example :
event STAGE 2 - CHATTER IS DONE, ENEMIES ARRIVE
when
or
has-time-elapsed
300 ( hey ! There has been a lot to discuss !!! )
is-event-true-delay
JUMP TO STAGE 2
0
modify-variable
mission-stage
2
So. It is stage 2 after 300 secs ( = 5 minutes ) or after you pressed a key, for exaple pad-enter. This option requires another event :
event JUMP TO STAGE 2
when
and
=
mission-stage (1)
1
key-pressed
pad-enter
modify-variable
mission-stage (1)
2
you can add a FADE-OUT SEXP, and a FADE-IN in a chained event following this one. This chained event following the JUMP TO STAGE 2 can also feature things like coordinate manipulation and all kinds of stuff that is needed to set up things that would have happened if the mission has carried along regularly.
So, the AND - condition assures that you will only jump to stage 2 when you are still in stage 1. This trigger becomes obsolete if you have reached stage 2 through regularly waiting 5 minutes, as it should be.
Last but not least : You will have to look through ALL your events and check if they require a mission stage check. Some things, especially chatter that would have occured at a certain timestamp shall not happen if you have jumped to a new stage already.
So. something like
event CHATTER 14
when
has time elapsed
135
send-message
Alpha1
high
message14
translates into
event CHATTER 14
when
and
=
mission-stage (1)
1
has time elapsed
135
send-message
Alpha1
high
message14
Any questions ?