SetHappiness

From Civilization Modding Wiki
Revision as of 10:04, 14 February 2012 by Killmeplease (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Up: Lua Game Objects/Player


From conversation on the civfanatics forum:

It's not even that it resets the next turn, it's actually resetting at the END of your turn, when the game does one final recalculation for all of the yields and such. So SetHappiness actually does nothing; while the UI will show a higher value for this turn, the value is reset BEFORE Happiness is used to increment Golden Ages or check for the effects of negative Happiness.


Recommendations on how to mod happiness are also given in that thread.