OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Support => Topic started by: MontyDrake on November 05, 2021, 07:45:54 pm

Title: [Solved] Can't use events to spawn new soldiers.
Post by: MontyDrake 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?
Title: Re: Can't use events to spawn new soldiers.
Post by: Buscher on November 05, 2021, 08:17:19 pm
It looks okay. When the event pops up, did you wait the 24 hours?
Title: Re: Can't use events to spawn new soldiers. [SOLVED]
Post by: MontyDrake 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.