I want to make wonder that require mine in city borders. I do check in lua using CityCanConstruct GameEvent and it works, but... I would like to create something like:
Such an effect is currently aquired, when you lack policies or do not have improvement on resource using "Building_LocalResourceOrs" function.
How can I program such an effect using lua code? Or maybe I missed sql table?
I also noticed that similar problem now exists if you are allowed to build Stone Works (or other required building), but do not have one. You should be informed (with grayed wonder), that if you built such building then you will be able to create a wonder in that city. Now you need to rmemeber all those things.
- if in the city cannot be built any mine, DON'T SHOW WONDER,
- if city has resource that can have mine on it, but there's no mine currently in the borders, SHOW WONDER, BUT BLOCK IT, like in the picture "terracota_grayed",
- if city has mine in borders, SHOW WONDER, AND ALLOW TO BUILD, like in the picture "terracota_full".
Such an effect is currently aquired, when you lack policies or do not have improvement on resource using "Building_LocalResourceOrs" function.
How can I program such an effect using lua code? Or maybe I missed sql table?
I also noticed that similar problem now exists if you are allowed to build Stone Works (or other required building), but do not have one. You should be informed (with grayed wonder), that if you built such building then you will be able to create a wonder in that city. Now you need to rmemeber all those things.