FLAG ally mainquest
KEYS mainquest

STAR 0
FLAG protect faraway
PLNC gasgiant
FLET damocles 0
END STAR

STAR 1
FLAG protect
ITEM it_horloge
UVAR horloge unused
END STAR

STAR 2
FLAG protect faraway
STRT exo_blhole
PLNT none
FLET primordius 0
HOME primordius
END STAR

CONDITION 0
TYPE explore
STR0 0
END CONDITION

CONDITION 1
TYPE explore
STR0 2
END CONDITION

CONDITION 2
TYPE haveitem
STR0 it_horloge
END CONDITION

CONDITION 3
TYPE uvar
STR0 horloge
STR1 unused
END CONDITION

CONDITION 4
TYPE gameover
PAR0 0
END CONDITION

CONDITION 5
TYPE fleetdestroy
PAR0 1
END CONDITION

CONDITION 6
TYPE nothome
STR0 primordius
END CONDITION

PAGE 0
REQ0 0
GFXP misc/events.jpg 5
TITL Damocles
TEXT As dawn's crescent illuminates the horizon of this immense alien world, a wondrous sight is revealed. Once legendary, now fact. The starship Damocles is yours to command!
MUSC music/damocles.ogg
END PAGE

PAGE 1
REQ0 1
DISP 1
ACTN endquest popup break
GFXP misc/killprim.jpg 0
TITL Primordius Defeated
TEXT Stand triumphant! You have defeated Primordius and his haunted battlestation and saved the galaxy! As news travels quickly, even in deep space, tales of your exploits become the stuff of legends!
MUSC music/victory.ogg
SCOR 2000 other
END PAGE

PAGE 2
REQ0 2
REQ1 3
XPLR 2 1
SVAR horloge used
ACTN popup
GFXP misc/sucked.jpg 0
TITL Horloge of Primordius
TEXT The odd clockwork horloge reveals the location of Primordius, Dread Lord of the Dark Traverse, and a prophecy: The hero will go to the <uvar=exploredstar> black hole with Damocles to save the galaxy!
MUSC music/blackhole.ogg
END PAGE

PAGE 3
REQ0 4
ACTN break endquest
GOVT You have returned safely to Hope. Meanwhile, Primordius and his ghostly minions begin anew their conquest of the galaxy. The Dark Traverse, an ancient domain only now reclaimed, will engulf all worlds including Hope and plunge them into shadow...
GOVR Failed to stop Primordius
GOVP races/primordius.jpg
END PAGE

PAGE 4
REQ0 5
REQ1 6
ACTN popup break endquest
GFXP misc/nova.jpg
TITL Deep Space Explosion
TEXT It appears you have destroyed something massive in orbit around a nearby black hole! You celebrate the occasion with space cigars, soybean nut clusters, loud gas music and Tiberian moonshine!
MUSC music/victory.ogg
SCOR 2000 other
END PAGE

