1
OXCE Suggestions Y-script / [Suggestion/Y-Scripts?] Custom Ways to grant Commendations?
« on: April 02, 2023, 03:38:36 pm »
I started playing around with combat drugs a bit.
One thing I try to solve is to show in geoscape who has a drug addiction and who doesn't. A clear contender is a (temporary) commendation/soldierBonus.
My suggestion right now would be to add a tagCriteria to the commendations:
Then I could determine via scripting to increment/decrement that geoscapeSoldier tag's value and therefore make it visible to the player who is currently addicted and will suffer a stat loss at the beginning of the mission till either cold turkey is successful or another combat drug is consumed.
There are probably more elegant solutions than having to click multiple buttons in the soldier screen or recolor/selectUnitSprite which only work in battleScape. If you got completely different ideas, I am all ears.
One thing I try to solve is to show in geoscape who has a drug addiction and who doesn't. A clear contender is a (temporary) commendation/soldierBonus.
My suggestion right now would be to add a tagCriteria to the commendations:
Code: [Select]
commendations:
- type: STR_DRUG_ADDICTION
...
tagCriteria:
-
- [10, ["GEOSCAPE_SOLDIER_TAG_DRUG_ADDICTION"]]
Then I could determine via scripting to increment/decrement that geoscapeSoldier tag's value and therefore make it visible to the player who is currently addicted and will suffer a stat loss at the beginning of the mission till either cold turkey is successful or another combat drug is consumed.
There are probably more elegant solutions than having to click multiple buttons in the soldier screen or recolor/selectUnitSprite which only work in battleScape. If you got completely different ideas, I am all ears.