Long time XCom-er and weekend warrior modder of sorts. Been a quite user of the communities modding efforts for years, for that I give my thanks! Whilst time in front of the PC is rare due to work and family demands, I do keep up with the apk on my Android phone and enjoy the game still regularly.
Big fan of the shoes work with the diaries and the combined works making up the commendations mod, which brings me to this post. There are some additions I'm interested in adding and have taken my first steps adding a single commendation as a test run, complete with artwork utilizing correct pallete, description and ufopedia entry.
Managed to dissect exting works and some brief reading to get the award functional. The medal is awarded but not by intended criteria.
Commendation: Security Detail
Basic Description: Awarded to soldiers who have
- months service but not participated in missions.
Desire is to award based on 2 criteria ( totalMonths and totalMissions ).
Clearly I have the syntax or structure incorrect as it is being awarded to soldiers who participate in missions regardless of tenure ( ie XCom Service Medal, given for 1 months service)
For a lengthy prefaced questions(s), how do I assign both total months and total mission int (0) as criteria for the award to be given properly?
I did note the structure for killCriteria for existing awards ( genadier, prowler, erc) but my attempts to implement similar logic have failed. Is it possible to set 2 criteria that are not kill based? If so , can someone provide an example?
I intend to create several awards if my intial attempt bears fruit. The commendation idea that prompted my endeavor is based on the motion scanner. It is listed in the battle types (BT_Scanner) but I am.infsure how to go about tracking uses (if possible)to award a commendation based on it. Attempted to lol at medikit but could not figure it out how to structure it. Or if it requires additional rule set entries from soldier diaries in the source.
Finally I saw on one of the post's regional campaign awards, namely a screenshot for unique award given for North America campaign, however the existing code is only for a generic regional campaign ribbon, seems to be awarded for different regions but without looking into the soldiers diaries, it is indistinctive in the commendation/artwork. Was hoping to create unique artwork for specific regions, (perhaps this has been done, or was dropped due to issue?) And trying to get some ideas without spending precious time decifering the code.
I appreciate any input or direction, and hope to share my work if completed.
Thanks,