Pazyryk
Deity
- Joined
- Jun 13, 2008
- Messages
- 3,584
This actually works:
Drop this building into a city via Lua and then all that civ's cities will have it forever after, even if the initial city is lost sometime later. You can use the NeverCapture flag to restrict it to one civilization. Seems like a useful way to add a building effect to every city in a civ without having to worry about any specific city being lost.
However, I do wonder what the dll is doing here. Am I creating some crazy iteration overhead where the dll has to check every city again for every city that has this building?
Code:
UPDATE Buildings SET FreeBuilding='BUILDINGCLASS_X' WHERE Type='BUILDING_X;
Drop this building into a city via Lua and then all that civ's cities will have it forever after, even if the initial city is lost sometime later. You can use the NeverCapture flag to restrict it to one civilization. Seems like a useful way to add a building effect to every city in a civ without having to worry about any specific city being lost.
However, I do wonder what the dll is doing here. Am I creating some crazy iteration overhead where the dll has to check every city again for every city that has this building?