Possible to change color/look of Iron Golem?


I created a new faction, and made Iron Golems trainable by this faction, becuas e Iwanted some big monstery-ish units.  I then changed some of the attributes and name of the "Iron Golem" to be faction specific.   I was wondering - is there a way to change the color/look of the "Iron Golem" for this specific faction by altering the "coreunits" description (or any other way)? - I am AT BEST a mediocre modder with limited skills!

6,849 views 1 replies
Reply #1 Top

Yes, you can change the color. About the look - not easily except the size of the unit.

Please take a look at this example, I did the similar thing and created a new race, faction and units (the newly created Iron Golem should be in the units file for the new faction). color and size definitions:

<Color_Metal>70,80,100,255</Color_Metal>

<TacticalModelScale>1.3</TacticalModelScale>

 

Code: xml
  1.   
  2.    &lt;UnitType InternalName="Unit_IronServant"&gt;
  3.         &lt;DisplayName&gt;Iron Servant&lt;/DisplayName&gt;
  4.         &lt;Description&gt;Crafted by talented Blueskin machinists, Iron Servants are the first line of defense in Blueskin cities.&lt;/Description&gt;
  5.         &lt;CreatureType&gt;Construct&lt;/CreatureType&gt;
  6.         &lt;CanBeDesigned&gt;1&lt;/CanBeDesigned&gt;
  7.         &lt;AdditionalTrainingTurns&gt;100&lt;/AdditionalTrainingTurns&gt;
  8.         &lt;IsSovereign&gt;0&lt;/IsSovereign&gt;
  9.         &lt;IsStartingUnitType&gt;1&lt;/IsStartingUnitType&gt;
  10.         &lt;AllowGrouping&gt;0&lt;/AllowGrouping&gt;
  11.         &lt;LevelMilestone InternalName="L1"&gt;
  12.             &lt;Level&gt;1&lt;/Level&gt;
  13.             &lt;UnitStat_ChanceToAvoidProne&gt;100&lt;/UnitStat_ChanceToAvoidProne&gt;
  14.             &lt;UnitStat_Defense_Blunt&gt;8&lt;/UnitStat_Defense_Blunt&gt;
  15.             &lt;UnitStat_Defense_Cutting&gt;15&lt;/UnitStat_Defense_Cutting&gt;
  16.             &lt;UnitStat_Defense_Pierce&gt;15&lt;/UnitStat_Defense_Pierce&gt;
  17.             &lt;UnitStat_HitPoints&gt;40&lt;/UnitStat_HitPoints&gt;
  18.             &lt;UnitStat_WeightCapacity&gt;200&lt;/UnitStat_WeightCapacity&gt;
  19.         &lt;/LevelMilestone&gt;
  20.         &lt;SelectedAbilityBonusOption&gt;ImmuneToPoison&lt;/SelectedAbilityBonusOption&gt;
  21.         &lt;SelectedAbilityBonusOption&gt;ImmuneToCriticals&lt;/SelectedAbilityBonusOption&gt;
  22.         &lt;SelectedAbilityBonusOption&gt;VulnerableToLightning&lt;/SelectedAbilityBonusOption&gt;
  23.         &lt;EquipmentUpgradeDef&gt;
  24.             &lt;EquipmentSlot&gt;Weapon&lt;/EquipmentSlot&gt;
  25.             &lt;SelectionCriteria&gt;MaximizeSum&lt;/SelectionCriteria&gt;
  26.             &lt;ComparisonAttribute&gt;UnitStat_Attack_Blunt&lt;/ComparisonAttribute&gt;
  27.             &lt;ComparisonAttribute&gt;UnitStat_Attack_Cutting&lt;/ComparisonAttribute&gt;
  28.             &lt;ComparisonAttribute&gt;UnitStat_Attack_Pierce&lt;/ComparisonAttribute&gt;
  29.             &lt;ComparisonAttribute&gt;UnitStat_Attack_Cold&lt;/ComparisonAttribute&gt;
  30.             &lt;ComparisonAttribute&gt;UnitStat_Attack_Fire&lt;/ComparisonAttribute&gt;
  31.             &lt;ComparisonAttribute&gt;UnitStat_Attack_Lightning&lt;/ComparisonAttribute&gt;
  32.             &lt;ComparisonAttribute&gt;UnitStat_Attack_Poison&lt;/ComparisonAttribute&gt;
  33.         &lt;/EquipmentUpgradeDef&gt;
  34.         &lt;EquipmentUpgradeDef&gt;
  35.             &lt;EquipmentSlot&gt;Defense&lt;/EquipmentSlot&gt;
  36.             &lt;SelectionCriteria&gt;MaximizeSum&lt;/SelectionCriteria&gt;
  37.             &lt;ComparisonAttribute&gt;UnitStat_Defense_Blunt&lt;/ComparisonAttribute&gt;
  38.             &lt;ComparisonAttribute&gt;UnitStat_Defense_Cutting&lt;/ComparisonAttribute&gt;
  39.             &lt;ComparisonAttribute&gt;UnitStat_Defense_Pierce&lt;/ComparisonAttribute&gt;
  40.         &lt;/EquipmentUpgradeDef&gt;
  41.         &lt;Prereq&gt;
  42.             &lt;Type&gt;Race&lt;/Type&gt;
  43.             &lt;Attribute&gt;Race_Type_Blueskins&lt;/Attribute&gt;
  44.         &lt;/Prereq&gt;
  45.         &lt;Prereq&gt;
  46.             &lt;Type&gt;Tech&lt;/Type&gt;
  47.             &lt;Attribute&gt;Machine_Lords&lt;/Attribute&gt;
  48.         &lt;/Prereq&gt;
  49.         &lt;ProductionRequirement&gt;
  50.             &lt;Type&gt;Resource&lt;/Type&gt;
  51.             &lt;Attribute&gt;Mana&lt;/Attribute&gt;
  52.             &lt;Value&gt;15&lt;/Value&gt;
  53.         &lt;/ProductionRequirement&gt;
  54.         &lt;ProductionRequirement&gt;
  55.             &lt;Type&gt;Resource&lt;/Type&gt;
  56.             &lt;Attribute&gt;Metal&lt;/Attribute&gt;
  57.             &lt;Value&gt;25&lt;/Value&gt;
  58.         &lt;/ProductionRequirement&gt;
  59.         &lt;Backstory&gt;Powered by mana, forged of iron. Strong and silent.&lt;/Backstory&gt;
  60.         &lt;AnimationPack&gt;IronGolemAnimationPack&lt;/AnimationPack&gt;
  61.         &lt;BattleAnimationBehavior&gt;Stationary&lt;/BattleAnimationBehavior&gt;
  62.         &lt;ClothMapScale&gt;1.6&lt;/ClothMapScale&gt;
  63.         &lt;ClothPoseIndex&gt;1&lt;/ClothPoseIndex&gt;
  64.         <span style="color: #000000;">&lt;Color_Metal&gt;70,80,100,255&lt;/Color_Metal&gt;</span><br style="color: #888888;" />        &lt;CutSceneDataPack&gt;IronGolemUnitCutscenePack&lt;/CutSceneDataPack&gt;
  65.         &lt;EquipmentScale&gt;2&lt;/EquipmentScale&gt;
  66.         &lt;EyeTexture&gt;gfx/eyes/male_brown_eye.png&lt;/EyeTexture&gt;
  67.         &lt;InfoCardBackground&gt;BG49_FallenCastle&lt;/InfoCardBackground&gt;
  68.         &lt;ModelPath&gt;gfx/hkb/Units/K_IronGolem_Mesh_01.hkb&lt;/ModelPath&gt;
  69.         &lt;ModelScale&gt;0.7&lt;/ModelScale&gt;
  70.         &lt;MovingSFX&gt;TEMP_KnightMarching1&lt;/MovingSFX&gt;
  71.         &lt;OnAttackParticleName&gt;Golem_Attack&lt;/OnAttackParticleName&gt;
  72.         &lt;OnHitParticleName&gt;Golem_Hit&lt;/OnHitParticleName&gt;
  73.         &lt;SkeletonPath&gt;Gfx\HKB\Units\K_IronGolem_Skeleton_01.hkb&lt;/SkeletonPath&gt;
  74.         &lt;SoundPack&gt;SoundPack_Golem1&lt;/SoundPack&gt;
  75.       <span style="color: #888888;">  <span style="color: #000000;">&lt;TacticalModelScale&gt;1.3&lt;/TacticalModelScale&gt;</span></span>
  76.         &lt;Texture_Skin&gt;IronGolem.png&lt;/Texture_Skin&gt;
  77.         &lt;UnitModelType&gt;IronGolem&lt;/UnitModelType&gt;
  78.     &lt;/UnitType&gt;
  79.  
  80.