It's probably based on this value:
- type: STR_SECTOID_SOLDIER
race: STR_SECTOID #<--
rank: STR_LIVE_SOLDIER
That is what I believe as well. I was not able to properly convey my meaning with
[units:] [race:] as I'm still learning the terminology:
For example it sounds like an Aquatoid Soldier & Aquatoid Medic both with their [units:] [race:] variable set to race: STR_AQUATOID would both yield +1 towards this commendation's STR_AQUATOID set when killed.
I still can't figure out how to access each of the individual tracked alien
race: values stored by
totalKillsByRace: to award the player different bonuses for Tasoth, Aquatoid, Lobsterman, etc kills. Does this variable not provide this ability?
I've continued experimenting with commendations and have yet to meet with success.
Here are my two most recent attempts. Both produce different error messages and fail to load.
(#1)The first uses
killsWithCriteriaCareer: to award medal tiers for its commendation at 1, 2, 3, 4 & 5 total aquatoid race kills over that soldiers entire career.
# [=] Kills By Race (Aquatoid) [=]
- type: STR_COMMENDATION_AQUATOID_RACE_KILLS
description: STR_COMMENDATIONS_TEST
sprite: 1
criteria:
killsWithCriteriaCareer: [1, 2, 3, 4, 5, 5, 5, 5, 5, 5]
killCriteria:
-
1: ["STR_AQUATOID_SOLDIER", "FACTION_HOSTILE", "STATUS_DEAD"]
-
1: ["STR_AQUATOID_SQUAD_LEADER", "FACTION_HOSTILE", "STATUS_DEAD"]
-
1: ["STR_AQUATOID_TECHNICIAN", "FACTION_HOSTILE", "STATUS_DEAD"]
-
1: ["STR_AQUATOID_MEDIC", "FACTION_HOSTILE", "STATUS_DEAD"]
-
1: ["STR_AQUATOID_NAVIGATOR", "FACTION_HOSTILE", "STATUS_DEAD"]
-
1: ["STR_AQUATOID_COMMANDER", "FACTION_HOSTILE", "STATUS_DEAD"]
This produces this error message when trying to launch OpenXcom:
"
wrong node type, expected a list at line 51" which is the line with this code on it:
(#2)The second attempt is based on code I saw inside
Solarius Scorch's '
The X-Com Files' mod for entries using the
killsWithCriteriaCareer: variable.
I do not understand why but these use "
-[1, ":
killCriteria:
-
- [1, ["OBJECT", "OBJECT", "OBJECT"]
instead of how it is described in the
UFOpaedia - Ruleset Reference "
1: ":
killCriteria:
-
1: ["OBJECT", "OBJECT", "OBJECT"]
# [=] Kills By Race (Aquatoid) [=]
- type: STR_COMMENDATION_AQUATOID_RACE_KILLS
description: STR_COMMENDATIONS_TEST
sprite: 1
criteria:
killsWithCriteriaCareer: [1, 2, 3, 4, 5, 5, 5, 5, 5, 5]
killCriteria:
-
- [1, ["STR_AQUATOID_SOLDIER", "FACTION_HOSTILE", "STATUS_DEAD"]
-
- [1, ["STR_AQUATOID_SQUAD_LEADER", "FACTION_HOSTILE", "STATUS_DEAD"]
-
- [1, ["STR_AQUATOID_TECHNICIAN", "FACTION_HOSTILE", "STATUS_DEAD"]
-
- [1, ["STR_AQUATOID_MEDIC", "FACTION_HOSTILE", "STATUS_DEAD"]
-
- [1, ["STR_AQUATOID_NAVIGATOR", "FACTION_HOSTILE", "STATUS_DEAD"]
-
- [1, ["STR_AQUATOID_COMMANDER", "FACTION_HOSTILE", "STATUS_DEAD"]
This produces this error message when trying to launch OpenXcom:
"
error at line 85, column 7: illegal block entry" which is the line with this code on it:
For convenience I've attached two example
.rul files with the above commendations code in them to this post.