Author Topic: [DONE] Spawn multiple objects/soldiers/craft after research.  (Read 2829 times)

Offline JPlayer 101

  • Squaddie
  • *
  • Posts: 8
    • View Profile
[DONE] Spawn multiple objects/soldiers/craft after research.
« on: December 19, 2019, 09:35:07 pm »
There are way to spawn single object after research (spawnedItem), however is it possible to add an option, wich allows to spawn multiple items, soldiers or even crafts after research, like mentioned above spawnedItem, that will use not single object ID, but list of objects as arguments.
For example:
  - name: STR_RESEARCH_NAME
    spawnedItemList:
    - ItemName1
    - ItemName2: N
    - SoldierType: N
    - CraftName
« Last Edit: December 19, 2019, 10:20:32 pm by JPlayer 101 »

Offline Bobit

  • Colonel
  • ****
  • Posts: 186
    • View Profile
Re: Spawn multiple objects/soldiers/craft after research.
« Reply #1 on: January 31, 2020, 02:32:11 am »
It looks like you can just mention the item multiple times. If not, just have the research give an item that can be used to manufacture all those items.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Spawn multiple objects/soldiers/craft after research.
« Reply #2 on: October 13, 2020, 07:00:58 pm »
Geoscape events can now spawn multiple items, soldiers, engineers and scientists... craft not.

And these events can be triggered by research.

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: Spawn multiple objects/soldiers/craft after research.
« Reply #3 on: October 14, 2020, 01:24:22 pm »
But the player will have to wait for a month-end to make the script trigger to create the event, which does not always fit the lore part.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Spawn multiple objects/soldiers/craft after research.
« Reply #4 on: October 14, 2020, 04:50:11 pm »
Finished research can now spawn geoscape events directly.

Code: [Select]
events:
  - name: STR_HACK_1
    description: STR_HACK_1_DESCRIPTION
    funds: -10000000
    timer: 60
    timerRandom: 600

research:
  - name: STR_LASER_WEAPONS
    cost: 50
    points: 10
    spawnedEvent: STR_HACK_1