modding bandits

I like th ability to gain control of bandits but it pales in comparison to the tame beast ability. So how would you changes bandits so they can have their equipment be upgradeable? And what do you have to change on syndicate to make them "bandits".

Then we want to change the syndicate assasin to be like a henchman with inventory etc.

3,162 views 5 replies
Reply #1 Top

To have bandits that can upgrade their gear you need to set up their unittype so they have upgrade values such as found in CoreUnits.xml. Each unittype will need stuff like this

       <EquipmentUpgradeDef>
            <EquipmentSlot>Weapon</EquipmentSlot>
            <SelectionCriteria>MaximizeSum</SelectionCriteria>
            <ComparisonAttribute>UnitStat_Attack_Blunt</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Attack_Cutting</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Attack_Pierce</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Attack_Cold</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Attack_Fire</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Attack_Lightning</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Attack_Poison</ComparisonAttribute>
        </EquipmentUpgradeDef>
        <EquipmentUpgradeDef>
            <EquipmentSlot>Torso</EquipmentSlot>
            <EquipmentSlot>Surcoat</EquipmentSlot>
            <SelectionCriteria>MaximizeSum</SelectionCriteria>
            <ComparisonAttribute>UnitStat_Defense_Blunt</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Cutting</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Pierce</ComparisonAttribute>
        </EquipmentUpgradeDef>
        <EquipmentUpgradeDef>
            <EquipmentSlot>LowerBody</EquipmentSlot>
            <SelectionCriteria>MaximizeSum</SelectionCriteria>
            <ComparisonAttribute>UnitStat_Defense_Blunt</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Cutting</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Pierce</ComparisonAttribute>
        </EquipmentUpgradeDef>
        <EquipmentUpgradeDef>
            <EquipmentSlot>Boots</EquipmentSlot>
            <SelectionCriteria>MaximizeSum</SelectionCriteria>
            <ComparisonAttribute>UnitStat_Defense_Blunt</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Cutting</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Pierce</ComparisonAttribute>
        </EquipmentUpgradeDef>
        <EquipmentUpgradeDef>
            <EquipmentSlot>Head</EquipmentSlot>
            <SelectionCriteria>MaximizeSum</SelectionCriteria>
            <ComparisonAttribute>UnitStat_Defense_Blunt</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Cutting</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Pierce</ComparisonAttribute>
        </EquipmentUpgradeDef>
        <EquipmentUpgradeDef>
            <EquipmentSlot>Forearms</EquipmentSlot>
            <SelectionCriteria>MaximizeSum</SelectionCriteria>
            <ComparisonAttribute>UnitStat_Defense_Blunt</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Cutting</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Pierce</ComparisonAttribute>
        </EquipmentUpgradeDef>
        <EquipmentUpgradeDef>
            <EquipmentSlot>Defense</EquipmentSlot>
            <SelectionCriteria>MaximizeSum</SelectionCriteria>
            <ComparisonAttribute>UnitStat_Defense_Blunt</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Cutting</ComparisonAttribute>
            <ComparisonAttribute>UnitStat_Defense_Pierce</ComparisonAttribute>
        </EquipmentUpgradeDef>
End of quote

 

 

 

Any unittype that has this tag <CreatureType>Bandit</CreatureType> can be recruited with the special ability.

To change the assassin into a champion I think all you need to do is add this to its unittype <IsChampion>1</IsChampion>

Reply #2 Top


ty heavenfall, i was hoping it was as simple as that. (so very dependable, there must be two of you i think you never sleep)

 

hmm, have to figure out a way to limit the assassin's hired - maybe some influence to grab them - a mod to the spell probably.

edit : hehe troll bandits....

Reply #3 Top

This thread reminds me, have you looked up for what can you influence with Silver Tongue?

I remember trying that on Syndicate, and it works. I wonder if it would work on Dark Wizards...  }:)

Reply #4 Top

Hopefully it works on Jugs, never had enough influence by the time I had to kill them off to give it a test. :D

Reply #5 Top


at the moment im trying to mod some bows - i'm having trouble getting it to work, so far i see my problem being my xml file is being read as a txt file - so i just installed a free xml editor off the web to try and fix that :P

i'm going to make the crude bow and ignys shortbow available to the special archery faction ability.