Is it possible to make a resource appear near a newly-settled city?

LUA - sure. But I wouldn't even try to approach this in XML. If it is possible (and perhaps it is, I am just too lazy and insufficiently inventive to slam my head at that wall) in XML, it is certain to be particularly cumbersome. The problem is, resources are not placed on the map using XML. The map generation is done through LUA before the game begins. Once the game is set, there are very few options for changing core terrain aspects using XML. However, in Lua, there are plenty of useful WorldBuilder and other related functions.
 
EFFECT_GRANT_FREE_RESOURCE_IN_CITY could be used in similar way as civ5 Indonesian' UA but, as Gleb said, placing resource on the map requires LUA.

Maybe unique district that grants resource (REQUIREMENT_CITY_HAS_DISTRICT for granting purposes) with certain (and complicated) placement requirement to simulate your X% as a chance of having possible placement spot?
It would use the spot the same way the improvement would use otherwise with only difference being constructed by city (1/3 builder cost presumably) and being unable to swap betwen cities.
 
Last edited:
Back
Top Bottom