LeeS
Imperator
Not a problem with <FreeBuildingThisCity> as I've made a wonder give a Public School when the wonder was placed in the tech tree far earlier than the tech for the Public School. I believe the empire-wide <FreeBuilding> will not have a problem either but I haven't specifically engineered a test for that condition.1. I'm not sure how the game will handle giving a free building requiring a more advanced tech than is currently known....
Nope. Not without some lua that's looking at whether the player has discovered tech so-and-so and then "manually" thru lua adding the buildings.So in other words i cant make techs give free buildings?
You can give the same civ pretty much an unlimited number of UU's or UB's, though it does tend to make the civilopedia page kind of crowded.I was thinking that a simple solution might be to give Carthage a special lighthouse (that doesnt allow you to build the normal lighthouse), which then gets the harbour bonuses once you research the appropriate tech. Would that work? But im not sure how to restrict a certain building to a civ except to make it as their UB...and im not sure if you can give a civ two UUs and a UB...
With the harbor bonuses you are talking about the only things you can tie in to a later technology are direct yield enhancements and tourism enhancements. You cannot directly through the pre-supplied XML make the internal city-connection-to-the-capital effect wait for the discovery of a later tech, for example.
You should also get into the habit of showing the table-names within which such an update is to be encapsulated. You should do this for two reasons:As for the update code, would this work?
Code:<Update> <Where Type="UNIT_DESTROYER"/> <Set Combat="60"/> </Update>
Basically changing the combat strength to 60. Or do i have to do something else?
- To get into the proper required habit when writing XML lines
- So that we can know when you are asking for advice whether you are trying to stick the XML lines into the wrong XML table.
Code:
<GameData>
<Units>
<Update>
<Where Type="UNIT_DESTROYER"/>
<Set Combat="60"/>
</Update>
</Units>
</GameData>