Kailric
Jack of All Trades
This ModComp will make it possible for you to select which Professions you don't want your units to be able to take. I have made it as Mod Friendly as possible. Only three files where moded in the SDK and the source code is included. I named the mod the "Viscos Mod" after the forum member who inspired me to write this up.
For example if you don't want Free Colonist units to be Dragoons or Soldiers then Mod the ViscosMod_CIV4UnitInfos.XML as follows:
[/COLOR]
You can toggle bIsNotAllowed to 1 or 0 for true or false. True means the Profession will not be allowed. In the default ViscosMod_CIV4UnitInfos.XML the above code for the Free Colonist is set to false and only is there for an example for you to follow. So by default nothing is changed by this mod from the Vanilla game. You have to edit the ViscosMod_CIV4UnitInfos.XML to add any changes you would like to make. The changes in the SDK are all marked with "///TK Viscos Mod" tag.
Q&A
- Each unit in the ViscosMod_CIV4UnitInfos.XML does not have to have any XML code added if you want them to work as normal. But if you want to prevent a unit from doing certain professions the above code needs to then be added and the professions that you want to disallowed added as well.
Download Below:
http://forums.civfanatics.com/downloads.php?do=file&id=13368
Any questions on this please feel free to ask.
For example if you don't want Free Colonist units to be Dragoons or Soldiers then Mod the ViscosMod_CIV4UnitInfos.XML as follows:
Code:
<LeaderPromotion>NONE</LeaderPromotion>
<iLeaderExperience>0</iLeaderExperience>
[COLOR="Blue"]<ProfessionsNotAllowed>
<ProfessionNotAllowed>
<VoidProfessionType>PROFESSION_DRAGOON</VoidProfessionType>
<bIsNotAllowed>1</bIsNotAllowed>
</ProfessionNotAllowed>
<ProfessionNotAllowed>
<VoidProfessionType>PROFESSION_SOLDIER</VoidProfessionType>
<bIsNotAllowed>1</bIsNotAllowed>
</ProfessionNotAllowed>
</ProfessionsNotAllowed>
You can toggle bIsNotAllowed to 1 or 0 for true or false. True means the Profession will not be allowed. In the default ViscosMod_CIV4UnitInfos.XML the above code for the Free Colonist is set to false and only is there for an example for you to follow. So by default nothing is changed by this mod from the Vanilla game. You have to edit the ViscosMod_CIV4UnitInfos.XML to add any changes you would like to make. The changes in the SDK are all marked with "///TK Viscos Mod" tag.
Q&A
- Each unit in the ViscosMod_CIV4UnitInfos.XML does not have to have any XML code added if you want them to work as normal. But if you want to prevent a unit from doing certain professions the above code needs to then be added and the professions that you want to disallowed added as well.
Download Below:
http://forums.civfanatics.com/downloads.php?do=file&id=13368
Any questions on this please feel free to ask.