As seen below we have a ManaFromKills UnitStat. Is it possible to add a new UnitStat that gives another resource from kills instead of Mana? I don't understand how modding UnitStats works since they don't appear to contain active code of any type. If it is not possible can you get a resources from kills or victories another way?
<UnitStatType InternalName="UnitStat_ManaFromKills">
<DisplayName>Mana From Kills</DisplayName>
<DisplayNameShort>MFK</DisplayNameShort>
<Description>Amount of mana this unit melee recovers when killing an enemy unit.</Description>
<Icon>Piercing_Stat_Icon.png</Icon>
<Hidden>1</Hidden>
<DefaultValue>0.0</DefaultValue>
<UnitStatGrouping>CombatStat</UnitStatGrouping>
</UnitStatType>
I also have tried modding the Heroic trait xml to give research instead of prestige, but it leads to the CorePlayerAbilities file which once again does not appear to have active code.
If anyone has any ideas on how to help I would be very appreciative.