BTW, this is what I have so far in my attempt to create a sequencer API and implement your initial sequence in it:
(excuse the very long lines - I wanted to keep each step on one line and some of the console msgs are very long -- cut and paste in to text editor to see without word wrap)
Code: Select all
Sequence.define("introSequence", sequenceProcessor, [
"[Transport Technician]: ... damned Scavenger technology ... come on, guys, let's get this Scavenger Sensor rigged up.", 6*SECONDS,
{task:"transferObject", object:"someLabel", to:me}, Sequence.NEXT,
"[Transport Technician]: There it goes. We've got the Overhead View. Tactical Sergeant Gibbs, UHF comm check.", Sequence.NEXT,
setMiniMap.curry(true), 6*SECONDS,
{task:"spawnDroid", template:"TacSergeantGibbs", position:"someLabel", owner:me, experience:64, moveTo:"someLabel"}, Sequence.NEXT,
"[Sgt.Gibbs]: UHF comm check confirmed. Signal is five-by-five. Good job, people. All units, offload and proceed to formation.", 7*SECONDS,
{task:"spawnDroid", template:"CommandTurret", position:"someLabel", owner:me, experience: 64, moveTo:"someLabel"}, 2*SECONDS,
{task:"spawnDroid", template:"RailGun1", position:"someLabel", owner:me, moveTo:"someLabel"}, 2*SECONDS,
{task:"spawnDroid", template:"RailGun2", position:"someLabel", owner:me, moveTo:"someLabel"}, 2*SECONDS,
{task:"spawnDroid", template:"RailGun3", position:"someLabel", owner:me, moveTo:"someLabel"}, 2*SECONDS,
{task:"spawnDroid", template:"AssaultGun1", position:"someLabel", owner:me, moveTo:"someLabel"}, 2*SECONDS,
{task:"spawnDroid", template:"AssaultGun2", position:"someLabel", owner:me, moveTo:"someLabel"}, 2*SECONDS,
{task:"spawnDroid", template:"AssaultGun3", position:"someLabel", owner:me, moveTo:"someLabel"}, 2*SECONDS,
{task:"spawnDroid", template:"RepairTurret1", position:"someLabel", owner:me, moveTo:"someLabel"}, 2*SECONDS,
{task:"spawnDroid", template:"RepairTurret2", position:"someLabel", owner:me, moveTo:"someLabel"}, 2*SECONDS,
"[Sgt.Gibbs]: Okay people, Transport Two and ourselves have crash-landed in the south-central coast of Alaska.", 7*SECONDS,
"[Sgt.Gibbs]: The sensor data shows several Scavenger bases and moderate population density throughout this region.", 9*SECONDS,
"[Sgt.Gibbs]: Our first order of business is to secure the area, find out who shot us down, and find Transport Two.", 9*SECONDS,
"[Sgt.Gibbs]: It is vital that we protect our Transport. The locals may try to destroy it, so we either guard it or clear the area.", 6*SECONDS,
"Sgt.Gibbs: We need to keep our eyes open for anything we can use to contact HQ and call for rescue.", 6*SECONDS,
{task:"setMissionTime", time:100*SECS}, Sequence.NEXT,
{task:"addMessage", id:Obj1Msg, type:PROX_MSG, to:player, showIntel:false}, Sequence.END
]);