Hello I am sorry to bother you but I am developing a Minor civ selector mod and I have a problem If I join my minor aliance i get access to the units and techs which i have defined for building and i use: <effect civ="Caribs" type="Data" amount="1.00" subtype="UpgradeSubCivAlliance" relativity="Assign">
<target type="Player">
</target>
</effect>
to assign the status of aliance to get build limit and access to units but when I do <effect civ="Caribs" type="Data" amount="-1.00" subtype="UpgradeSubCivAlliance" relativity="Assign">
<target type="Player">
</target>
</effect> in my leave aliance tech to simulate leaving the aliance the unit is still trainable at Default AOE 3 embasy I suspect that the command only works as intended when there are actuall native settlements of caribs on the map because it checks the native settlements present and subtracts the number therefore disabling the ability to train units but when there is nothing to compare them to they are still trainable because the game cant handle it. Is there some workaround for that that would force the same behaviour as when trading post gets destroyed here is my code
<tech name="DEAmericanAlliesIncaCaribsTemple" type="Normal">
<dbid>95000</dbid>
<displaynameid>200069</displaynameid>
<researchpoints>5.0000</researchpoints>
<status>UNOBTAINABLE</status>
<icon>resources\images\icons\techs\inca\american_allies_caribs.png</icon>
<rollovertextid>200066</rollovertextid>
<flag>YPInfiniteTech</flag>
<effects>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">NatBlowgunWarrior</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">Canoe</target>
</effect>
<effect type="TechStatus" status="obtainable">LeaveCaribs</effect>
<effect type="TechStatus" status="obtainable">WarriorSocietyCaribs</effect>
<effect type="TechStatus" status="obtainable">ChampionCaribs</effect>
<effect type="TechStatus" status="obtainable">NatGarifunaDrums</effect>
<effect type="TechStatus" status="obtainable">NatCeremonialFeast</effect>
<effect type="TechStatus" status="obtainable">NatKasiriBeer</effect>
<effect type="TechStatus" status="obtainable">NatBlowgunnerAmbush</effect>
<effect type="CommandAdd" tech="ChampionCaribs" page="1" column="14">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandAdd" tech="WarriorSocietyCaribs" page="1" column="14">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandAdd" tech="NatGarifunaDrums" page="1" column="16">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandAdd" tech="NatCeremonialFeast" page="1" column="14">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandAdd" tech="NatKasiriBeer" page="1" column="18">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandAdd" tech="NatBlowgunnerAmbush" page="1" column="15">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandAdd" tech="LeaveCaribs" page="1" column="17">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="Data" subtype="AddTrain" unittype="NatBlowgunWarrior" amount="1.00" relativity="Assign">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect civ="Caribs" type="Data" amount="1.00" subtype="UpgradeSubCivAlliance" relativity="Assign">
<target type="Player">
</target>
</effect>
</effects> </tech>
<tech name="LeaveCaribs" type="Normal">
<dbid>95001</dbid>
<displaynameid>64633</displaynameid>
<researchpoints>10.0000</researchpoints>
<status>UNOBTAINABLE</status>
<icon>resources\images\icons\techs\americans\team_lewis_clark_expedition.png</icon>
<rollovertextid>64632</rollovertextid>
<flag>YPInfiniteTech</flag>
<effects>
<effect type="Data" amount="-1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">Canoe</target>
</effect>
<effect type="CommandRemove" tech="LeaveCaribs">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandRemove" tech="WarriorSocietyCaribs">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandRemove" tech="ChampionCaribs">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandRemove" tech="NatGarifunaDrums">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandRemove" tech="NatCeremonialFeast">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandRemove" tech="NatKasiriBeer">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandRemove" tech="NatBlowgunnerAmbush">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect type="CommandRemove" proto="NatBlowgunWarrior">
<target type="ProtoUnit">CHCCMinorEmbasy</target>
</effect>
<effect civ="Caribs" type="Data" amount="-1.00" subtype="UpgradeSubCivAlliance" relativity="Absolute">
<target type="Player">
</target>
</effect>
<effect type="TechStatus" status="obtainable">DEAmericanAlliesIncaCaribsTemple</effect>
</effects></tech>
Have a great day
Edotenseilove