aliens

Author Topic: [Solved] Can't use events to spawn new soldiers.  (Read 1689 times)

Offline MontyDrake

  • Sergeant
  • **
  • Posts: 18
    • View Profile
[Solved] Can't use events to spawn new soldiers.
« on: November 05, 2021, 07:45:54 pm »
I've been working on a mod that changes the way the player manages recruits, and I'm in need to get new soldiers regularly.

My intention was using eventScripts in OXCE. The event pop's up, but somehow I'm not getting any new soldiers.

Code: [Select]
eventScripts:
  - type: STR_SCRIPTEVENT_RECRUIT
    eventWeights:
      0:
        STR_EVENT_RECRUIT: 100
    firstMonth: 0
    lastMonth: -1
    executionOdds: 100
    minDifficulty: 0
    maxDifficulty: 4
   
events:
  - name: STR_EVENT_RECRUIT
    description: STR_EVENT_RECRUIT_DESC
    background: BACK13.SCR
    spawnedPersons: 3                     
    spawnedPersonType: STR_SOLDIER

I'm using OXCE 7.1.4
Is there anything I'm missing?
« Last Edit: February 12, 2023, 12:01:31 pm by Meridian »

Offline Buscher

  • Colonel
  • ****
  • Posts: 168
    • View Profile
Re: Can't use events to spawn new soldiers.
« Reply #1 on: November 05, 2021, 08:17:19 pm »
It looks okay. When the event pops up, did you wait the 24 hours?

Offline MontyDrake

  • Sergeant
  • **
  • Posts: 18
    • View Profile
Re: Can't use events to spawn new soldiers. [SOLVED]
« Reply #2 on: November 05, 2021, 09:11:20 pm »
Oh! I didn't know it took 24 hours. I thought they just automatically spawned. My bad, really really sorry.