End game

Freeform discussion about anything related to modding Transcendence.
Post Reply
AdmiralZo
Militia Lieutenant
Militia Lieutenant
Posts: 228
Joined: Wed Feb 11, 2015 10:32 am
Location: Scouring Dantalion System for CSC Antarctica...

How do I make the game end like what happens when you enter the Heretic gate?


Basically, what I want is:

-You complete the final mission
-Dock back at station X
-Admiral Decker congratulates you...
-At the final pane, you click 'Continue' and the game ends.
User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 857
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way
Contact:

In Eternity Port, this is how its handled:

Code: Select all

(gamEnd 'inEternityPort "joined the denizens of Eternity Port")
This is sort of adventure-specific. You need to define the flag in <OnGameEnd> for it to work, I think. Doing it this way also lets you set different backgrounds based on the end game reason.

Another way to do it is to just destroy the player:

Code: Select all

(plyDestroyed gPlayer "End Game Reason")
This is a bit less graceful but still works.

You should be able to put either of these in-line in a dockscreen pane.
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
Real programmers count from 0. And sometimes I do, too.
AdmiralZo
Militia Lieutenant
Militia Lieutenant
Posts: 228
Joined: Wed Feb 11, 2015 10:32 am
Location: Scouring Dantalion System for CSC Antarctica...

I tried using the first method and it works perfectly. Thanks Xephyr.
Post Reply