Author Topic: [DONE] [Suggestion] Multiple game endings  (Read 385 times)

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 5594
  • Aaand we're back!
    • View Profile
    • My Wiki
[DONE] [Suggestion] Multiple game endings
« on: October 10, 2019, 08:47:53 pm »
Quote
Requested by Kato.

The victory and defeat cutscenes have been unhardcoded.
You can now mark a cutscene with winGame or loseGame attribute:

Code: [Select]
cutscenes:
  - type: myCustomVictoryCutscene
    winGame: true

or

Code: [Select]
cutscenes:
  - type: myCustomDefeatCutscene
    loseGame: true

and it will trigger the desired effect.

It works on:
- mission win/lose/abort cutscenes
- special loss-only cutscenes except "loseDefeat" (see next post)

It doesn't work on other cutscenes:
 - intro
 - briefing cutscenes
 - research cutscenes
« Last Edit: October 11, 2019, 01:57:38 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 5594
  • Aaand we're back!
    • View Profile
    • My Wiki
Re: [DONE] [Suggestion] Multiple game endings
« Reply #1 on: October 10, 2019, 08:48:07 pm »
The special loss-only cutscene names have been unhardcoded, with vanilla name as default value for all of them.

Syntax:

Code: [Select]
gameOver:
  loseMoney: loseGame       # cutscene ID that should be played when the player loses due to poor economy management
  loseRating: loseGame      # cutscene ID that should be played when the player loses due to poor rating
  loseDefeat: loseGame      # cutscene ID that should be played when the player loses the last base

PS: "loseDefeat" will always cause a game over (defeat)... the rest can be configured to trigger defeat or not (see post above).
« Last Edit: October 10, 2019, 10:57:08 pm by Meridian »