aliens

Author Topic: [Answered] Tie cancellation of alien pact to research/mission?  (Read 6652 times)

Offline krautbernd

  • Commander
  • *****
  • Posts: 1116
    • View Profile
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)?
« Last Edit: February 19, 2023, 10:43:33 am by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #1 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.
« Last Edit: February 19, 2023, 10:42:51 am by Meridian »

Offline krautbernd

  • Commander
  • *****
  • Posts: 1116
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #2 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.
« Last Edit: May 05, 2019, 02:22:36 pm by krautbernd »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #3 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.
« Last Edit: May 05, 2019, 03:53:40 pm by Meridian »

Offline krautbernd

  • Commander
  • *****
  • Posts: 1116
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #4 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?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #5 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.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #6 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.

Offline krautbernd

  • Commander
  • *****
  • Posts: 1116
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #7 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.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #8 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".

Offline krautbernd

  • Commander
  • *****
  • Posts: 1116
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #9 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?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11452
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #10 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.

Offline krautbernd

  • Commander
  • *****
  • Posts: 1116
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #11 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?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11452
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #12 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".

Offline krautbernd

  • Commander
  • *****
  • Posts: 1116
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #13 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?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: [Suggestion] Tie cancellation of alien pact to research/mission?
« Reply #14 on: May 05, 2019, 11:18:23 pm »
Where in the ruleset are those defined?

under alienDeployments