lilgamefreek
Warlord
- Joined
- Oct 30, 2014
- Messages
- 229
I need help finding a way to get combat information. In particular, the information I need is, in order of priority:
1.) The UnitType of the attacking unit.
2.) Whether the attack was a kill.
3.) The owner of the defending unit.
4.) Whether the attack resulted in a capture (Germany vs. barbarian style, not civilian worker's only).
Current leads I've pursued have been:
1.) CanSaveUnit and UnitKilledInCombat don't give me enough information on the attacker, though I may not have thought of something.
2.) EndCombatSim is not triggering, possibly because I have quick combat enabled. I need something not based in UI.
3.) I don't want to try monitoring the alert messages and parsing each one that comes through. This would also only work for the active player and not AI.
I've been racking my brain for a while on this and have been playing with alternatives as well. I figured I'd try and reach out for help before I completely give up however.
1.) The UnitType of the attacking unit.
2.) Whether the attack was a kill.
3.) The owner of the defending unit.
4.) Whether the attack resulted in a capture (Germany vs. barbarian style, not civilian worker's only).
Current leads I've pursued have been:
1.) CanSaveUnit and UnitKilledInCombat don't give me enough information on the attacker, though I may not have thought of something.
2.) EndCombatSim is not triggering, possibly because I have quick combat enabled. I need something not based in UI.
3.) I don't want to try monitoring the alert messages and parsing each one that comes through. This would also only work for the active player and not AI.
I've been racking my brain for a while on this and have been playing with alternatives as well. I figured I'd try and reach out for help before I completely give up however.