I'm having a problem with mission scripting. I've checked it several times and asked Dioxine to check it out too, but neither of us found a bug and so I am out of options, so please help.
In my current WIP, you fight off pro-alien organizations. The general idea is that you get a mission type "cult activity" from the beginning of the game. Once you get some research into it, you get a new type of mission called "cult hideout", which also has a chance to spawn alongside cult activity. Everything works fine up to this point. But then you complete another research that is supposed to terminate cult activity and start another mission called "cult base", and this doesn't seem to work: I'm still getting cult activity missions and I haven't received a single base.
Now this is a bit complex, since there are several independent cult organizations which count separately for this, and it's all repeated 8 times to randomize when they come up during the month, so I'll just post the data for one cult and just once. The cult is called Black Lotus and here's the mission script:
missionScripts:
- type: CultActivityBlackLotus
firstMonth: 0
executionOdds: 8
missionWeights:
0:
STR_CULT_INVESTIGATION_BLACK_LOTUS: 100
regionWeights:
0:
REGION_BLACK_LOTUS: 100
useTable: false
researchTriggers:
STR_BLACK_LOTUS_OPERATIONS: false
startDelay: 1200
- type: CultHideoutBlackLotus
firstMonth: 0
executionOdds: 6
missionWeights:
0:
STR_CULT_HIDEOUT_BLACK_LOTUS: 100
regionWeights:
0:
REGION_BLACK_LOTUS: 100
useTable: false
researchTriggers:
STR_BLACK_LOTUS_NETWORK: true
startDelay: 800
- type: CultBaseBlackLotus
firstMonth: 0
executionOdds: 4
missionWeights:
0:
STR_CULT_BASE_BLACK_LOTUS: 100
regionWeights:
0:
REGION_BLACK_LOTUS: 100
useTable: false
researchTriggers:
STR_BLACK_LOTUS_OPERATIONS: true
startDelay: 1200
As you can see, the key research projects are STR_BLACK_LOTUS_NETWORK which enables CultHideoutBlackLotus and STR_BLACK_LOTUS_OPERATIONS, which enables CultBaseBlackLotus and disables CultActivityBlackLotus. The first one works, the other doesn't.
Please help, since I have no idea if I'm doing it wrong or what.