OpenXcom Forum

Modding => OpenXcom Extended => OXCE Suggestions DONE => Topic started by: Finnik on December 29, 2021, 10:45:27 pm

Title: [DONE][SUGGESTION] Research for mission success, fail and site despawn
Post by: Finnik on December 29, 2021, 10:45:27 pm
Due to my project complex mission progression, it turns out I need to specify several researches to be unlocked for both mission success and failure cases. I'd like to know if that can be done in OXCE (if it is a required feature for other modders), or should I do that myself in my branch? I can also make it based on OXCE and commit pull request if desired. AFAIK, it's a pretty small code change.

Title: Re: [SUGGESTION] List of researches for fail and success deployments
Post by: Meridian on December 29, 2021, 10:55:50 pm
Can you give some examples too?

I can imagine why a research on fail might be needed; but I can't yet imagine why multiple would be needed.
Title: Re: [SUGGESTION] List of researches for fail and success deployments
Post by: Finnik on December 29, 2021, 11:00:10 pm
Well, I have a mission that can affect 2 different arcs on failure, tho they can be triggered separately with another ways.
Title: Re: [SUGGESTION] Research for mission success, fail and site despawn
Post by: Meridian on January 02, 2022, 10:16:00 am
Added.

Code: [Select]
alienDeployments:
  - type: STR_TERROR_MISSION
    unlockedResearch: STR_MOTION_SCANNER  # on success
    unlockedResearchOnFailure: STR_LASER_PISTOL
    unlockedResearchOnDespawn: STR_LASER_RIFLE