OpenXcom Forum

Modding => OpenXcom Extended => Topic started by: Meridian on October 10, 2019, 08:47:53 pm

Title: [DONE] [Suggestion] Multiple game endings
Post by: Meridian 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)
Title: Re: [DONE] [Suggestion] Multiple game endings
Post by: Meridian 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).
Title: Re: [DONE] [Suggestion] Multiple game endings
Post by: Meridian on October 12, 2020, 11:45:37 am
Research cutscenes will also be supported starting with OXCE v6.7