Civ Trait Tile Happiness?

CivSettler

Chieftain
Joined
Sep 19, 2013
Messages
7
Is it possible for a specific civilization to receive happiness from working specific resources, through lua?

If so, how one would do that? I am new to lua so I would appreciate coding assistance (an entire code for it would also be very much appreciated). Thanks!
 
It should be possible by checking if the city is working a plot with the resource on and if so give it a building which increase happiness. The code will have to be run every turn. While it could run on PlayerDoTurn by that time your golden age points have already increased for this turn, so it would always end up being a turn behind. I'm not sure what would be a better choice, or if there is any, I'm not too familiar with what lua hooks exist.
 
Back
Top Bottom