OpenXcom Forum

Modding => OpenXcom Extended => OXCE Support => Topic started by: krautbernd on May 05, 2019, 01:30:47 pm

Title: [Answered] Tie cancellation of alien pact to research/mission?
Post by: krautbernd on May 05, 2019, 01:30:47 pm
Would it be possible to also tie the 'allowCountriesToCancelAlienPact' option to a specific mission or research? Assaulting alien bases to cancel the pacts ties in nicely if you play vanilla, but i think for mods it would be nice to have additional options/requirements. That way you could implement missions to round up alien collaborators, black-mail government officials etc. - would this even be possible given the current research and mission generation system (given that inifiltrations can happen multiple times per country)?
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Meridian on May 05, 2019, 01:33:24 pm
don't know, give me a specific example

EDIT: I'd suggest letting the alien base generate a new mission. The player would have to win this mission to obtain a unique item. This item can be used as pre-requisite to enter the alien base and cancel the pact.
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: krautbernd on May 05, 2019, 02:20:06 pm
Aliens infiltrate a country. Instead of destroying the alien base you get a mission to recover evidence from a government facility or to take out/assassinate alien collaborators. Researching the evidence cancels the alien pact / completing the assassination mission cancels the alien pact. This might also remove the alien base.

Another option:
Aliens infiltrate a country. Destroying the base itself doesn't cancel the pact - the destruction only enables follow up missions which, when completed, cancel out the pact.

Basically: Can the state of a country (infiltrated/not infiltrated) be used as a mission spawn trigger and can the state of country be tied to missions or research? Seeing how infiltrations can be recurring but research can not i realize this might be difficult.
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Meridian on May 05, 2019, 03:51:17 pm
I don't see how a research topic could remember which country it corresponds to.

Savegame objects (e.g. Base, Soldier, Alien base, ...) can remember things.
Ruleset objects (e.g. Research topic, Ufopedia article, Alien deployment, ...) cannot remember things.
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: krautbernd on May 05, 2019, 04:10:21 pm
Would it be possible to spawn mission sites in addition to the initial alien base set up by a successful alien infiltration (e.g. spawn a second 'base' that could be used for a custom mission)? Could an infilitrated country be used to trigger mission spawns?
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Meridian on May 05, 2019, 04:28:55 pm
Would it be possible to spawn mission sites in addition to the initial alien base set up by a successful alien infiltration (e.g. spawn a second 'base' that could be used for a custom mission)?

Yes, alien bases can spawn missions already today.

Could an infilitrated country be used to trigger mission spawns?

Would require development.
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Hobbes on May 05, 2019, 06:03:55 pm
It's already possible for alien bases spawned by infiltration to be placed upon the defecting countries' borders. So, 'technically' the infiltrated country would be triggering mission spawns. Unless you pretend other gameplay effects other than visualizing the base in a country.
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: krautbernd on May 05, 2019, 06:31:48 pm
Yes, alien bases can spawn missions already today.

How exactely does this work? I couldn't find anything related to that in the ruleset reference.
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Meridian on May 05, 2019, 06:34:42 pm
How exactely does this work? I couldn't find anything related to that in the ruleset reference.

Either using "genMission" or using "huntMissionWeights".
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: krautbernd on May 05, 2019, 07:28:36 pm
Either using "genMission" or using "huntMissionWeights".

Thanks for the heads-up, i must have overlooked those when i searched the ruleset for 'base'. There were a lot of matching entries  :P

Is there any way to restrict those mission spawns to bases that were set up by an infiltration?
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Solarius Scorch on May 05, 2019, 07:40:54 pm
Is there any way to restrict those mission spawns to bases that were set up by an infiltration?

Yes, by making the infiltration spawn a special kind of alien base which has its own rules.
Which is exactly what we're doing in X-Com Files.
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: krautbernd on May 05, 2019, 07:51:11 pm
Yes, by making the infiltration spawn a special kind of alien base which has its own rules.
Which is exactly what we're doing in X-Com Files.
Where in the ruleset are those defined?
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Solarius Scorch on May 05, 2019, 11:14:18 pm
Where in the ruleset are those defined?

It's unreleased yet, you'd need the GitHub version. But it's a flag "allowCountriesToCancelAlienPact".
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: krautbernd on May 05, 2019, 11:18:07 pm
It's unreleased yet, you'd need the GitHub version. But it's a flag "allowCountriesToCancelAlienPact".
Ahm...you mean the option i talked about in my initial post?  ???

No, i meant where i can find the "special" bases definitions that are used for infiltrations? How/where are they defined in the ruleset?
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Meridian on May 05, 2019, 11:18:23 pm
Where in the ruleset are those defined?

under alienDeployments
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Hobbes on May 05, 2019, 11:23:53 pm
No, i meant where i can find the "special" bases definitions that are used for infiltrations? How/where are they defined in the ruleset?

Code: [Select]
alienMissions:
  - type: STR_ALIEN_INFILTRATION
    siteType: STR_ALIEN_BASE_ASSAULT

siteType determines the alienDeployment corresponding to the base that is spawned
Title: Re: [Suggestion] Tie cancellation of alien pact to research/mission?
Post by: Solarius Scorch on May 06, 2019, 02:42:44 am
Ahm...you mean the option i talked about in my initial post?

Oops! Sorry.