I cut and pasted your code in and got a text box (didn't check that all tribes had money spent). Do you happen to have multiple lines like this? Code: function unitKilledEvents.unitKilledInCombat(loser,winner) do That is, do you define multiple unitKilledEvents.unitKilledInCombat functions? There should only be 1, and all your unit killed events should be in it. (You also don't need the do/end for the function, but it doesn't hurt anything.) If this isn't the problem, please post your events file, and I'll have a look at it.