Author Topic: Original 8 commendation combined with another  (Read 1011 times)

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Original 8 commendation combined with another
« 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?

Offline Delian

  • Colonel
  • ****
  • Posts: 492
    • View Profile
Re: Original 8 commendation combined with another
« Reply #1 on: May 13, 2024, 11:55:24 am »
It would probably have to be a transformation with two commendation requirements.

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Original 8 commendation combined with another
« Reply #2 on: May 13, 2024, 02:58:01 pm »
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.

Offline zRrr

  • Sergeant
  • **
  • Posts: 31
    • View Profile
Re: Original 8 commendation combined with another
« Reply #3 on: May 13, 2024, 07:06:12 pm »
Theoreticaly, you can have levels and soldier bonuses on such commendations with something like

Code: [Select]
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.

Offline R1dO

  • Colonel
  • ****
  • Posts: 442
    • View Profile
Re: Original 8 commendation combined with another
« Reply #4 on: May 13, 2024, 08:10:14 pm »
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
Code: [Select]
randomSoldiers:
  STR_FOUNDING_FATHERS: 8