OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Support => Topic started by: Solarius Scorch on May 13, 2024, 11:12:11 am
-
I would like to create a commendation which combines STR_MEDAL_ORIGINAL8_NAME (which AFAIK is hardcoded) with some extra criteria (specified with missionMarkerFilter). The resulting commendation would be given to soldiers who were members of the original team and also participated in some particular mission.
Is it possible to make such a commendation? If yes, what would be the syntax?
-
It would probably have to be a transformation with two commendation requirements.
-
It would probably have to be a transformation with two commendation requirements.
Thanks Delian, it makes sense. However, wouldn't work well for my case, since it has to be automatic to not look stupid.
If that's not possible, then I'll drop the feature, it's not essential.
-
Theoreticaly, you can have levels and soldier bonuses on such commendations with something like
commendations:
- type: STR_MEDAL_ORIGINAL8_NAME #original team
description: STR_MEDAL_ORIGINAL8_UFOPEDIA
soldierBonusTypes: [STR_MEDAL_ORIGINAL8_NAME, STR_MEDAL_OG8_SUPER_MEGA_MAN]
sprite: 4
missionMarkerFilter: ["THAT_ONE_MISSION_MARKER_NAME"]
criteria:
# v-- first level not achievable by normal means, but already awarded to manufacture/event created or starter soldier
totalMissions: [100500, 1, 1, 1, 1, 1, 1, 1, 1, 1]
# ^-- instant level 10 commendation
but OXC prevents this for Original 8, probably unintentionally.
-
Bit off-topic but i suppose mentioning this option won´t hurt (in case you have not yet considered it).
Based on my understanding of your description (needs to be one of the original "eight" & participate in *a* particular mission), there might be a possibility to do this using soldier types.
The idea would come down to:
* Upon start only allow soldier generation from a soldier type you cannot obtain in some other way (Starting base: `randomSoldiers` using a mapping that only contains this type [1])
* For the particular mission only allow soldier participation from this specific type (Battle starting condition: 'allowedSoldierTypes')
* Let the commendation depend on that specific mission (missionMarkerFilter)
[1] With mapping i mean the following construct
randomSoldiers:
STR_FOUNDING_FATHERS: 8