aliens

Author Topic: Help create a mission from the base  (Read 206 times)

Offline Kronos913

  • Colonel
  • ****
  • Posts: 121
    • View Profile
Help create a mission from the base
« on: October 04, 2024, 02:05:03 pm »
Please help create a mission that will start every month from each alien base. That is, how many bases - so many mission starts. As usual, a mission of several UFOs - from scouts to target UFOs

For example, STR_ALIEN_HARVEST. Then, I will try to create the rest myself by analogy

Offline Kozinsky

  • Colonel
  • ****
  • Posts: 122
  • Sorry for my bEd English
    • View Profile
Re: Help create a mission from the base
« Reply #1 on: October 04, 2024, 02:19:48 pm »
Not exactly one mission per month per base, but very close to it:

Code: [Select]
alienDeployments:
  - type: STR_ALIEN_BASE_ASSAULT
...
    genMission:
      STR_ALIEN_HARVEST: 100
    genMissionFreq: 3

Offline Kronos913

  • Colonel
  • ****
  • Posts: 121
    • View Profile
Re: Help create a mission from the base
« Reply #2 on: October 05, 2024, 01:43:35 am »
If it's not too much trouble, please help me make the full code.

As far as I understand, I need to write something in other sections, not just in alienDeployments?

And what should be in place...?

Offline Kozinsky

  • Colonel
  • ****
  • Posts: 122
  • Sorry for my bEd English
    • View Profile
Re: Help create a mission from the base
« Reply #3 on: October 05, 2024, 10:50:40 am »
Examples of the alien missions themselves can be seen in the original game's rule set “...\OpenXCom\standard\xcom1\alienMissions.rul”, including STR_ALIEN_HARVEST.
And the alienDeployments.rul file contains the full code of alien base behavior, you just need to edit it as you need it.
For example, for your task in your submod you should write something like this:

Code: [Select]
alienDeployments:
  - update: STR_ALIEN_BASE_ASSAULT
    genMission:
      STR_ALIEN_SUPPLY: 50
      STR_ALIEN_HARVEST: 50
    genMissionFreq: 6