aliens

Author Topic: [DONE][Suggestion] Trigger research topic when a country has signed a pact  (Read 2696 times)

Offline Alex_D

  • Colonel
  • ****
  • Posts: 498
    • View Profile
I'd like to suggest the idea of having a set of default research topics when a country enters or leaves X-Com funding.

Concept: The idea is to trigger a research popup of some text saying a country has been overrun by aliens (eg. signed a research pact). Then after a few of those, maybe events can trigger to either give more research or missions of some kind.

Example of usage:
Code: [Select]
countries:
  - type: STR_USA
    researchAlienJoin: STR_USA_IS_DOWN
    researchAlienleave: STR_USA_IS_BACK
  - type: STR_CANADA
    researchAlienJoin: STR_CANUCKS_ARE_DOWN
    researchAlienleave: STR_CANUCKS_HAVE_RETURNED
research:
  - name: STR_USA_IS_DOWN
    lookup: STR_THE_ALIEN_MENACE_ADVANCES
  - name: STR_CANUCKS_ARE_DOWN
    lookup: STR_THE_ALIEN_MENACE_ADVANCES
  - name: STR_WE_ARE_DOOMED
    dependencies:
      - STR_USA_IS_DOWN
      - STR_THE_ALIEN_MENACE_ADVANCES
  - name: STR_NO_MORE_HOCKEY
    dependencies:
      - STR_CANUCKS_ARE_DOWN
      - STR_THE_ALIEN_MENACE_ADVANCES
eventScripts:
  - type: STR_INTERNATIONAL_RESPONSE
    eventWeights:
      0:        STR_INTERNATIONAL_RESPONSE: 100
    researchTriggers:
       STR_WE_ARE_DOOMED: false
       STR_NO_MORE_HOCKEY: true
       STR_THE_ALIEN_MENACE_ADVANCES: true
« Last Edit: January 16, 2021, 02:25:26 pm by Meridian »

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
This is interesting! I'm in!

Btw, the example was so funny, made my day!

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
todolisted

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Added ability to spawn events after a country leaves/rejoins xcom.

You can add research/items/money/soldiers/etc. via the event... try it out, let me know if it covers the idea or if more stuff is needed.

Code: [Select]
events:
  - name: STR_UK_LEFT
  - name: STR_UK_REJOINED

countries:
  - type: STR_UK
    signedPactEvent: STR_UK_LEFT
    rejoinedXcomEvent: STR_UK_REJOINED

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Modding tip:

You can disable purchase of country-specific weapons when a country leaves, e.g. no more Glock if Austria leaves or no more P90 if Belgium leaves :P