Dreamzilla
Chieftain
- Joined
- Mar 25, 2018
- Messages
- 6
Hi!
Disclaimer: Before you start calling me a noob. I am entirely new to modding, and also not all that familair with coding and so on. I know how to read XML and SQL though. Anyway, I am a noob.
Now here is the thing. The fact that Unique Improvements (UI) get removed upon city capture bothers me big time. So I decided to try some modding. I have to say not enirely unsuccessful, but now I get at a break point and so I am crying out for help!
I have been fiddling about with Australia. I found out that UIs are defiend by a civ Trait so I removed TraitType in the following line:
This worked, the imrpovement is not removed anymore. How ever, I want that only Australia is able to build the outback station. Then I found:
I figured if I give Australia a unique builder, I would solve the issue. So I inserted
And of course I added this unique unit to australia. Guess what? It worked!!!
The only downside is that my unique builder can not build other improvements than the outback station.
I figured, what if I could group all unique builders in one group called UNIT_BUILDER and then attach to the group the traits involving building normal improvements, and to each individual builder I would attach the unique improvement.
Would this work?
If yes, how?
If no, what else could I do?
Thank you!!!
Disclaimer: Before you start calling me a noob. I am entirely new to modding, and also not all that familair with coding and so on. I know how to read XML and SQL though. Anyway, I am a noob.

Now here is the thing. The fact that Unique Improvements (UI) get removed upon city capture bothers me big time. So I decided to try some modding. I have to say not enirely unsuccessful, but now I get at a break point and so I am crying out for help!
I have been fiddling about with Australia. I found out that UIs are defiend by a civ Trait so I removed TraitType in the following line:
Code:
<Row ImprovementType="IMPROVEMENT_OUTBACK_STATION" Name="LOC_IMPROVEMENT_OUTBACK_STATION_NAME" Description="LOC_IMPROVEMENT_OUTBACK_STATION_DESCRIPTION" Icon="ICON_IMPROVEMENT_OUTBACK_STATION" PlunderType="PLUNDER_HEAL" PlunderAmount="100" Buildable="True" PrereqCivic="CIVIC_GUILDS" Housing="1" TilesRequired="2" TraitType="TRAIT_CIVILIZATION_IMPROVEMENT_OUTBACK_STATION"/>
This worked, the imrpovement is not removed anymore. How ever, I want that only Australia is able to build the outback station. Then I found:
Code:
<Improvement_ValidBuildUnits>
<!--Unique Improvements -->
<Row ImprovementType="IMPROVEMENT_OUTBACK_STATION" UnitType="UNIT_BUILDER"/>
</Improvement_ValidBuildUnits>
I figured if I give Australia a unique builder, I would solve the issue. So I inserted
Code:
UnitType="UNIT_BUILDER_AUSTRALIA"
And of course I added this unique unit to australia. Guess what? It worked!!!
The only downside is that my unique builder can not build other improvements than the outback station.
I figured, what if I could group all unique builders in one group called UNIT_BUILDER and then attach to the group the traits involving building normal improvements, and to each individual builder I would attach the unique improvement.
Would this work?
If yes, how?
If no, what else could I do?
Thank you!!!