aliens

Author Topic: Make an alien mission start at a later month?  (Read 2216 times)

Offline robin

  • Commander
  • *****
  • Posts: 1115
  • ULTIMATE ROOKIE
    • View Profile
Make an alien mission start at a later month?
« on: August 03, 2014, 02:33:01 am »
Like this:

  - type: STR_SOME_NEW_MISSION
    points: 0
    raceWeights:
      0:
          STR_ALIENRACE: 0
      1:
          STR_ALIENRACE: 0
      3:
          STR_ALIENRACE: 100
      5:
          STR_ALIENRACE: 100
      7:
          STR_ALIENRACE: 100

..or like this:

  - type: STR_SOME_NEW_MISSION
    points: 0
    raceWeights:
      3:
          STR_ALIENRACE: 100
      5:
          STR_ALIENRACE: 100
      7:
          STR_ALIENRACE: 100

..?

Thanks.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Make an alien mission start at a later month?
« Reply #1 on: August 03, 2014, 05:38:38 am »
the only way i thought off (but no time for test :( ) is this:
adding a small ufo befor the normal wave make this ufo appear only a (very) short amount of time
then add a huge wait time between the next wave like 3 months (in seconds?)

so you can be assured that this mission main ufos only appear after X time BUT if this mission is selected in the early months there will be less ufo to shut down during that time

also if the list of possible mission gets smaller until mission reset and the last mission generated is such a "waiting"-mission you will have a huge (time X) waiting period where nothing is happening until mission reset


Offline Aldorn

  • Commander
  • *****
  • Posts: 731
    • View Profile
Re: Make an alien mission start at a later month?
« Reply #2 on: August 03, 2014, 12:49:32 pm »
I wondered same question and add one

Or like this ?
Code: [Select]
  - type: STR_SOME_NEW_MISSION
    points: 0
    raceWeights:
      12:
          STR_ALIENRACE: 100

Offline Hobbes

  • Commander
  • *****
  • Posts: 2055
  • Infiltration subroutine in progress
    • View Profile
Re: Make an alien mission start at a later month?
« Reply #3 on: August 03, 2014, 02:12:11 pm »
Like this:

  - type: STR_SOME_NEW_MISSION
    points: 0
    raceWeights:
      0:
          STR_ALIENRACE: 0
      1:
          STR_ALIENRACE: 0
      3:
          STR_ALIENRACE: 100
      5:
          STR_ALIENRACE: 100
      7:
          STR_ALIENRACE: 100

..or like this:

  - type: STR_SOME_NEW_MISSION
    points: 0
    raceWeights:
      3:
          STR_ALIENRACE: 100
      5:
          STR_ALIENRACE: 100
      7:
          STR_ALIENRACE: 100

..?

Thanks.

I'd say it works either way, but it would be better to use the second one since you don't have unnecessary lines of code.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Make an alien mission start at a later month?
« Reply #4 on: August 03, 2014, 02:21:32 pm »
you will get a crash with such "solutions"
see the rulfile
it has 50 test missions (copies of harvester mission) +unbeatable cannon/interceptor+cheap hyuperwave/basecosts to check for missiontype
with
Code: [Select]
    raceWeights:
      0:
          STR_SECTOID: 0
          STR_MUTON: 0
          STR_FLOATER: 0
      12:
          STR_SECTOID: 30
          STR_MUTON: 30
          STR_FLOATER: 40

as soon as the february sometimes march you get a crash
if you put a race value >0 in the 0 sections the crash disappears
Edit: its the same result if you remove the "0:"section
« Last Edit: August 03, 2014, 02:37:25 pm by Falko »