aliens

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

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9095
    • View Profile
[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)
- research cutscenes (starting from OXCE 6.7)

It doesn't work on other cutscenes:
 - intro
 - briefing cutscenes
 - research cutscenes (until OXCE 6.7)
« Last Edit: October 12, 2020, 11:44:47 am by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9095
    • View Profile
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 »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9095
    • View Profile
Re: [DONE] [Suggestion] Multiple game endings
« Reply #2 on: October 12, 2020, 11:45:37 am »
Research cutscenes will also be supported starting with OXCE v6.7

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9095
    • View Profile
Re: [DONE] [Suggestion] Multiple game endings
« Reply #3 on: August 14, 2024, 08:57:40 am »
Since OXCE v7.13.3, geoscape event cutscenes are also supported.