@redrum said in Is there a simple mechanism?:
@Hepps Not that I'm aware of though I wouldn't be surprised if @Cernel found some way to accomplish that though.
As the official hacker of TripleA , I can confirm that what @Hepps want to do here is not possible, not even in a not simple way.
However, if you are fine with not "registering" the units that retreat or if you have them retreating on the same territory (there is a property for that), and as long as we are talking of units in land territories only, a fairly easy way is that, at end turn, you have all units producing their own "veteran" counterparts. Then, you have two sets of triggers, each one equal in total to the number of land territories on the map, multiplied by the number of players having this rule, one removing all non-veteran units in all land territories where you made battles, the other removing all veteran units in all land territories where you didn't.
As long as the terminal is not bad, and you put those triggers after the end turn phase producing the veteran units, the user will just see some units repositioning/appearing/disappearing for a fraction of a second.
But do you really want to do this thing? I don't think that, if I have 100 infantries attacking 1 territory with 1 defending infantry, I should end up with 100 veteran infantries...
I get that this is just actually meant to allow some of those units only to get an upgrade, and I don't know what you're actually aiming at, but I'd just test for a battle in there (you would need only half the triggers as in the above case) and trigger in something that allows placement of what you want. You can take a look at Blue vs. Gray (one of the best games of TripleA, but sadly having a few bugs and other issues), that is already doing it. Still, I'm not a big fan of a Blue vs. Gray kind of thing, because this goes to the other extreme, and means that 100 infantries winning over 50 infantries gets you the same upgrading as 2 infantries winning over 1.
Beside what I said here, I'm quite sure there is nothing more you can do, aside from messing with the engine.