Looking for a guide to Invisible buildings.

Countbuffalo

Chieftain
Joined
Aug 16, 2013
Messages
94
As the title says, I'm looking for a guide on how to make invisible buildings, I have got a mod that uses them, but it's all gibberish to me, any guides out there that help clarify the process of making an invisible building that gives me extra resources from a certain tile type?
 
Where might I find out how to make a bonus dependent on the tile type? Or at least are there any mods that do this so that I can study the Lua?
 
If you mean extra yields from terrains or features, see the Building_TerrainYieldChanges and Building_FeatureYieldChanges tables. They are used for some existing buildings, like University, Longhouse, Bazaar and Petra.
 
Yes, thank you, I eventually found those when I realised I could just look at the university XML in the Civ V folders. However, here's the bit I'm dreading, I need to make it so the buildings spawns in any city for only that player. I'm guessing that involves Lua, but I don't know where to go with that.
 
You can make a building with FreeStartEra set to ERA_ANCIENT, then it will be present in all cities. If you make an unique version of it for a specific civ, then that civ will get these bonuses in its cities (I'm not 100% sure if it works with captured cities, so you need to test it).
 
If you want a free building for a civ in each of its cities (where that building is allowed to be built), then just use the "FreeBuilding" column in the Traits table. See Dido's trait (Phoenician Heritage) from G&K for reference, which gives Carthage free harbors.
 
If you want a free building for a civ in each of its cities (where that building is allowed to be built), then just use the "FreeBuilding" column in the Traits table. See Dido's trait (Phoenician Heritage) from G&K for reference, which gives Carthage free harbors.

You're right, it's an easier method than the one I described, I forgot about that.
 
Back
Top Bottom