or u can make a trigger - when a specific unit die (select the unit) do add an ammount of gold to (player 1)
u can do that for each unit if there are no much, or insted u can put when a unit controled by (player 2) die add an ammont of gold, and make each type of unit belong to a diferent player, if they are close to each other u can make them allies to avoid them killing each other