Disable selling certain building

twodie

Chieftain
Joined
Jul 26, 2014
Messages
5
Old Title:tile improvement tech tree tweak

Where to find Tile Improvements required Tech research?
Like moving Road improvement to granary research. Looked all over xml files, nothing..
 
Other Questions would be:

Can I prevent from selling buildings?
Added building that would be given to city on foundation of it that has maintenance cost of 2$ (trying to remanage gameplay for more expansion of cities)

Adding properties that doesnt exist on buildings entries like : Gold .. Doesnt give Gold when building constructed. <Update> seems doesnt work.. <row> thing either..
 
Can I prevent from selling buildings?

I believe so, but don't remember how off the top of my head

Adding properties that doesnt exist on buildings entries like : Gold .. Doesnt give Gold when building constructed. <Update> seems doesnt work.. <row> thing either..

So, are you trying to have a building have a gold output (similar to the way the market and bank do)? It's a separate table. The code would be:

Code:
<Building_YieldChanges>
    <Row>
        <BuildingType>BUILDING_YOURBUILDING</BuildingType>
        <YieldType>YIELD_GOLD</YieldType>
        <Yield>3</Yield>
    </Row>
</Building_YieldChanges>

This would result in the building BUILDING_YOURBUILDING having a yield of 3 Gold per turn
 
So yeah, left to get answer is it possible to disable building to be sold and how!?
 
GoldMaintenance=0 stops the building being sold
HurryCostModifier=-1 stops the building being bought
 
How to remove resources from being generated on map?

Answer: Much Lua editing :s
 
Top Bottom