Here is all you have to do:
In your Hobbit's code:
;Fake specialpower to tell the button when to show up Behavior = UnpauseSpecialPowerUpgrade ModuleTag_TheodenLeadership SpecialPowerTemplate = SpecialAbilityFakeLeadership TriggeredBy = Upgrade_<your_upgrade> End Behavior = SpecialPowerModule ModuleTag_TheodenLeadershipUpdate SpecialPowerTemplate = SpecialAbilityFakeLeadership UpdateModuleStartsAttack = No StartsPaused = Yes End ;Upgrading the armorset (this could be an attributemodifier behavior too) Behavior = ArmorUpgrade ModuleTagMithrilCoat TriggeredBy = Upgrade_<your_upgrade> ArmorSetFlag = PLAYER_UPGRADE End
(Don't forget to add the upgrade to upgrades.ini and to build a new armorset block with PLAYER_UPGRADE tag)
CommandButton Command_MithrilCoat Command = SPECIAL_POWER SpecialPower = SpecialAbilityFakeLeadership Options = NONPRESSABLE TextLabel = CONTROLBAR:MithrilCoat ButtonImage = HSFrodoMithrilCoat RadiusCursorType = TRAINING ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:ToolTipMithrilCoat InPalantir = Yes End
And add Command_MithrilCoat to your hobbit's commandset.
For info, the leadership bonuses and other passive abilities are always represented by that type of cheat. It's all fake
Edited by Grim, 09 June 2005 - 10:16 PM.