AW Arcaeca
Deus Vult
A while ago I posted a thread asking whether or not it's possible to make a unit ability revolving around that unit killing an enemy unit. The problem therein is that GameEvents.UnitKilledInCombat only passes the parameters of the killer player, killee player, and killee unit - no killer unit. 'cuz logic, I guess.
And the answer I got was that it's possible with one part of whoward's extensive DLL mod collection.
Now anyone who knows much about my modding habits should know of my distaste for DLL mods, for two reasons, although I don't feel like typing out what they are right now. So basically here's what I'm asking:
How does one detect when a unit kills an enemy unit, without using DLL if possible?
And if DLL is required, can anyone enlighten me on which DLL mod I should be using?
I looked through Machiavelli's mod snippets and there does not seem to be any such event hook I can use. And unfortunately there don't seem to be any lua functions that can directly return the value of either the killed unit or the killer unit. So I'm a bit stuck.
I'm hoping someone else might be able to shed some light on this conundrum!
TIA,
AW

Now anyone who knows much about my modding habits should know of my distaste for DLL mods, for two reasons, although I don't feel like typing out what they are right now. So basically here's what I'm asking:
How does one detect when a unit kills an enemy unit, without using DLL if possible?
And if DLL is required, can anyone enlighten me on which DLL mod I should be using?
I looked through Machiavelli's mod snippets and there does not seem to be any such event hook I can use. And unfortunately there don't seem to be any lua functions that can directly return the value of either the killed unit or the killer unit. So I'm a bit stuck.

TIA,
AW