Hi, I've played quite some time at Civ V and I really like the mods people are making. I'm quite familiar to programming languages so it isn't a problem.
I'd like to know the best method to double unhapiness from occupied cities for a particuliar civilization. I thought about adding a building to the city when occupied but I think it requires lua scripting. I've found this particular event that might be useful:
http://modiki.civfanatics.com/index.php/GameEvents.CityCaptureComplete_(Civ5_API)
Now, how do I use this event in a lua script? Am I just copying the function definition in a lua script in my mod and adding the building from there?
Thanks for reading my message.
I'd like to know the best method to double unhapiness from occupied cities for a particuliar civilization. I thought about adding a building to the city when occupied but I think it requires lua scripting. I've found this particular event that might be useful:
http://modiki.civfanatics.com/index.php/GameEvents.CityCaptureComplete_(Civ5_API)
Now, how do I use this event in a lua script? Am I just copying the function definition in a lua script in my mod and adding the building from there?
Thanks for reading my message.