(Question)How do you use these variables?
[In the
units: section]
race:
rank:[In the
alienDeployments: section]
alienRank:
So far I've been creating aliens in the
units: section then assigning those units to a race in the
alienRaces: section and fighting them via "New Battle" from the main menu screen.
To correctly integrate them into a real campaign I would like to know what to do with
race: and
rank: in the
units: section.
I've just been giving these two variables temporary values like:
race: STR_ALIENNAME
rank: STR_LIVE_TERRORIST
The
UFOpaedia Ruleset Reference Nightly lists what the variable is, but unfortunately it doesn't elaborate on how to use them:
race String ID of the unit race (for alien units).
rank String ID of the unit rank (for alien units).
The
alienRaces: section of code appears to already assign each rank of alien to a deployment slot and the
id: section controls the race, I think.
alienRaces:
- id: STR_AQUATOID
members:
- STR_AQUATOID_COMMANDER
- STR_AQUATOID_NAVIGATOR
- STR_AQUATOID_MEDIC
- STR_AQUATOID_TECHNICIAN
- STR_AQUATOID_SQUAD_LEADER
- STR_AQUATOID_SOLDIER
- STR_CALCINITE_TERRORIST
- STR_CALCINITE_TERRORIST
- id: STR_AQUATOID_UNDERWATER
members:
- STR_AQUATOID_COMMANDER
- STR_AQUATOID_NAVIGATOR
- STR_AQUATOID_MEDIC
- STR_AQUATOID_TECHNICIAN
- STR_AQUATOID_SQUAD_LEADER
- STR_AQUATOID_SOLDIER
- STR_HALLUCINOID_TERRORIST
- STR_HALLUCINOID_TERRORIST
I can tell there is more going on as
alienDeployments: also appears to use the
alienRank: variable to select units for deployment in some way.
UFOpaedia Ruleset Reference Nightly:
alienRank Rank associated with this deployment data, as defined by the order of the race in question
I've noticed that in the
units: section the
rank: names have
_LIVE_ instead of the alien race's name from the
alienRaces: members: list.
rank: STR_LIVE_SOLDIER
rank: STR_LIVE_SQUAD_LEADER
rank: STR_LIVE_TECHNICIAN
rank: STR_LIVE_TERRORIST
Is this related to the live alien item when a unit is captured?
I can see that in
OXCE the
liveAlien: variable on the unit controls the recovered live alien and from what I've read in the UFOpaedia OpenXcom's default method for determining the live alien is to use an item with the same name as the alien unit.
So I'm guessing that this is unrelated with a recovered item and instead performs a different action?