Noob modder new to lua; help please?

AfricanManBeast

Chieftain
Joined
Oct 8, 2016
Messages
7
Sorry, I'm really new when it comes to modding and I'm working on a Civilization that has a unique unit that I want to grant production equivalent to a percentage of the combat strength of a unit in each city for each unit it kills.

I figured out you had to do something with the GameEvents.UnitPreKill lua code (forget what I said scrap it completely) or something like that, but I have no idea how to go about editing it, and actually implementing it in the game.

How do I do something like that? Any help would be greatly appreciated.

Note: Only 1 unit (my uu) would have the ability to convert percentage of any unit's combat power to production in each city
 
Top Bottom