aliens

Author Topic: a question about retaliation races  (Read 5075 times)

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
a question about retaliation races
« on: November 23, 2017, 12:42:00 pm »
This is my retaliation script
  - type: STR_ALIEN_RETALIATION
    spawnUfo: STR_BATTLESHIP # Spawned for the final retaliation run
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 20

the problem is i created a race which i don´t want then to retaliate
so i did in races:
  - id: STR_ASSAULTCHAOS
    retaliation: false 

Still when i take down their craft and they still retaliate with that race, i guess because of the ""# In the case of a shootdown, race comes from the UFO that triggered the mission."" part still is there a way to ignore it?

i´m i missing something?

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: a question about retaliation races
« Reply #1 on: November 23, 2017, 03:27:43 pm »
(I could be wrong about this as I've only read the UFOpaedia Ruleset Reference on the subject and not actually worked with this type of code yet, so please take my suggestion with a grain of salt.)

With the raceWeights: list I believe the number after each STR_ALIENRACE: variables is the percentage of chance for that race to be assigned as the crew of the craft for the retaliation mission.

So instead of setting it to false try setting it to 0 which should in theory serve the same function as a false value.
« Last Edit: November 23, 2017, 04:12:08 pm by The Martian »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: a question about retaliation races
« Reply #2 on: November 23, 2017, 04:27:08 pm »
on the MISSION you want to set retaliationOdds to zero.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: a question about retaliation races
« Reply #3 on: November 23, 2017, 04:32:30 pm »
on the MISSION you want to set retaliationOdds to zero.

You mean on the alienMissions entry right?

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: a question about retaliation races
« Reply #4 on: November 23, 2017, 08:09:01 pm »
yes

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: a question about retaliation races
« Reply #5 on: November 23, 2017, 08:45:35 pm »

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: a question about retaliation races
« Reply #6 on: November 24, 2017, 03:23:14 am »
thks for the answer i will see to it