Hey folks, I'm working on a health rebalance mod. One thing I'd like to do is add specialists that generate +2 health, to create buildings that can scale health output through the game. Only problem: health isn't a yield so the Specialists table has no column for it.
I've added a new column to the Specialists table in SQL, and I know I have to write an Lua script so the DLL can recognize it, but I'm pretty much stumped there. My guess is that there is an integer somewhere that tracks local city health, and I can write a script to add to it when a specialist slot is taken, and subtract when it's removed. But I don't know what these events would be called or what the value I'm modifying is.
Does anyone have a better idea of what an Lua script to add/subtract local city health would look like? Maybe from a similar civ5 happiness script, since I'm assuming the implementation is pretty much the same in BE?
I've added a new column to the Specialists table in SQL, and I know I have to write an Lua script so the DLL can recognize it, but I'm pretty much stumped there. My guess is that there is an integer somewhere that tracks local city health, and I can write a script to add to it when a specialist slot is taken, and subtract when it's removed. But I don't know what these events would be called or what the value I'm modifying is.
Does anyone have a better idea of what an Lua script to add/subtract local city health would look like? Maybe from a similar civ5 happiness script, since I'm assuming the implementation is pretty much the same in BE?