I discussed this topic in the past in this thread:
https://openxcom.org/forum/index.php/topic,5304.0.html. Now I am returning to tackle it again, this time in OXCE. As I learned from the other thread, I can use OXCE scripting to alter the set of aliens which enter your base during the final assault. I can already make the attacking ship type vary but I'd like to learn how to make the aliens match the ship.
I am a veteran openxcom modder, but I am completely new to OXCE. Can someone walk me through this step by step?
Here's what I have from regular openxcom:
alienMissions:
- type: STR_ALIEN_RETALIATION
raceWeights:
0:
STR_SECTOID: 16
STR_SNAKEMAN: 16
STR_ETHEREAL: 16
STR_MUTON: 16
STR_FLOATER: 16
STR_MIXED_OPERATIONS: 10
STR_MIXED_TERROR: 10
- type: STR_ALIEN_RETALIATION_2
points: 0
objective: 4
spawnUfo: STR_TERROR_SHIP
raceWeights:
0:
STR_SECTOID: 16
STR_SNAKEMAN: 16
STR_ETHEREAL: 16
STR_MUTON: 16
STR_FLOATER: 16
STR_MIXED_OPERATIONS: 10
STR_MIXED_TERROR: 10
waves:
- ufo: STR_SMALL_SCOUT
count: 1
trajectory: P8
timer: 3000
- ufo: STR_MEDIUM_SCOUT
count: 2
trajectory: P8
timer: 3000
- ufo: STR_LARGE_SCOUT
count: 3
trajectory: P8
timer: 3000
- ufo: STR_TERROR_SHIP
count: 2
trajectory: P8
timer: 3000
missionScripts:
- type: researchRetaliation
missionWeights:
0:
STR_ALIEN_RETALIATION: 10
STR_ALIEN_RETALIATION_2: 90
- type: beginnerRetaliation
missionWeights:
0:
STR_ALIEN_RETALIATION_2: 100
- type: experiencedRetaliation
missionWeights:
0:
STR_ALIEN_RETALIATION: 10
STR_ALIEN_RETALIATION_2: 90
- type: veteranRetaliation
missionWeights:
0:
STR_ALIEN_RETALIATION: 20
STR_ALIEN_RETALIATION_2: 80
- type: geniusRetaliation
missionWeights:
0:
STR_ALIEN_RETALIATION: 30
STR_ALIEN_RETALIATION_2: 70
- type: superhumanRetaliation
missionWeights:
0:
STR_ALIEN_RETALIATION: 40
STR_ALIEN_RETALIATION_2: 60
I've been told the missionScripts change wouldn't affect the ship type used in retaliations in response to you shooting alien craft down, so I'm not sure what difficultyRetaliation is for. But whether the chances are 20/80 or 50/50, I know I have successfully gotten terror ships to sometimes (often) attack the base. I couldn't create a separate deployment set for the terror ship, but its crew is very similar to battleship crew so it doesn't really matter.
But I want to add more ship types to the list. If possible I would like to affect their likelihood of spawning from any trigger including (most importantly) shooting down alien craft. But the main thing I want to do is create new deployments based on the craft coming in.