[Python Help] Running a Function Before Combat


Civ-loving Hobbit
Dec 6, 2005
I'm working on a formations mod that applies promotions based on who occupies the area surrounding each unit, but I've run into a snag.

I know how to run functions when a unit moves, but I also want to run the same function on the defender before combat begins so the defender's promotions aren't messed up when combat begins. Running the function on every unit every time you move is a possibility, but in the interests of speed, I'd rather keep it between the attacker and the defender if possible.

Is there any way to do this without tweaking the SDK?
I cant think of any way to do it without using the SDK.
Top Bottom