aliens

Author Topic: [Solved] UFOs in the same wave with different races?  (Read 1280 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
[Solved] UFOs in the same wave with different races?
« on: January 27, 2023, 04:38:53 pm »
My current understanding is that when a alienMissions: entry starts its waves: all UFOs share the same alien race.

Is there a variable I can assign or something script related that would allow for each UFO in a wave to have a different alien race?

Fighting the same alien until the end of the month can be a bit repetitive, if possible I'd like to increase the variety of aliens in the same month.


If this functionality doesn't already exist please consider this a feature request.

Perhaps something like being able to also assign the race weights to the UFO sets in the waves: section and having just those UFOs re-roll the crew's race and override the waves currently assigned race with the rest of the wave continuing to spawn using the one that was picked when that mission first started.

Code: [Select]
  - type: STR_ALIEN_PROBE_MISSION
    RaceWeights:
      0:
          STR_AQUATOID: 50
          STR_GILLMAN: 50
    waves:
      - ufo: STR_SURVEY_SHIP
        count: 1
        trajectory: P0
        timer: 9000
      - ufo: STR_ESCORT
        count: 1
        trajectory: P2
        timer: 7800
        RaceWeights:
          0:
              STR_AQUATOID: 25
              STR_GILLMAN: 20
              STR_LOBSTERMAN: 20
              STR_TASOTH: 35
      - ufo: STR_CRUISER
        count: 2
        trajectory: P4
        timer: 9000
      - ufo: STR_LOBSTER_CRUISER_OF_DOOM
        count: 2
        trajectory: P4
        timer: 9000
        RaceWeights:
          0:
              STR_LOBSTER: 100



« Last Edit: January 27, 2023, 10:24:32 pm by The Martian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11662
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: UFOs in the same wave with different races?
« Reply #1 on: January 27, 2023, 05:12:43 pm »
Well, you can force the race in deployment... if you're okay with having separate UFOs for different races.

I haven't tested it on a UFO, though.

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: UFOs in the same wave with different races?
« Reply #2 on: January 27, 2023, 07:58:46 pm »
If I use alienDeployments: randomRace: will the Hyper-wave Decoder / Transmission Resolver in the Geoscape still correctly display the race that will be fought in the Battlescape?

Edit:
I just tested it.

This method does work! However the Hyper-wave Decoder / Transmission Resolver will become unreliable as it displays the original wave's alien race pick instead of the randomRace: that is replacing them.

I can work with this, thank you very much for the help.
« Last Edit: January 27, 2023, 08:54:15 pm by The Martian »