Author Topic: [question] GeoscapeSoldier.getCommendation and GeoscapeSoldier.getTransformation  (Read 1324 times)

Offline Kozinsky

  • Colonel
  • ****
  • Posts: 128
  • Sorry for my bEd English
    • View Profile
Is there any way to understand with scripts if a player's soldier has a certain commendation of a certain level?
Similarly for transformations: how can a script understand if a soldier has a certain transformation?

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3346
    • View Profile
ok, for now this not available but I think should be added. I put in on my TODO.

[ps]

For now you could probably workaraund it by solders bonuses as some are exposed to scripts.

Offline Kozinsky

  • Colonel
  • ****
  • Posts: 128
  • Sorry for my bEd English
    • View Profile
For now you could probably workaraund it by solders bonuses as some are exposed to scripts.

I don't really understand, could you give me a simple example of what you meant?

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3346
    • View Profile
commendation and transformations can grant "solders bonuses" that affect battleunits, and this bonuses are exposed to scripts.
You can add hook `applySoldierBonuses` on specific bonus to propagate info about commendation or transformation.

Offline Kozinsky

  • Colonel
  • ****
  • Posts: 128
  • Sorry for my bEd English
    • View Profile
commendation and transformations can grant "solders bonuses" that affect battleunits, and this bonuses are exposed to scripts.
You can add hook `applySoldierBonuses` on specific bonus to propagate info about commendation or transformation.

This sounds like just what I need! Thank you so much! :)