Hi guys. I'm new on coding and i have some trouble on this thing. I wanna add at least 20 heroes on structure.
The structure is DwarvenFortressExpansion PadSideCommandSet (the expansion near the fortress where you build some stuff):
CommandSet DwarvenFortressExpansionPadCornerCommandSet
1 = Command_ConstructDwarvenCatapultExpansion
2 = Command_ConstructDwarvenEreborTowerTowerExpansion
3 = Command_ConstructDwarvenHallExpansion
4 = Command_ConstructDwarvenWallHubExpansion
End
So i think i have to:
CommandSet DwarvenFortressExpansionPadCornerCommandSet
InitialVisible = 20
1 = Command_GenericReviveSlot1
2 = Command_GenericReviveSlot2
...
20 = Command_GenericReviveSlot20
End
PlayerTemplate FactionDwarves
BuildableHeroesMP = CreateAHero DwarvenCaptainofDale DwarvenGloin DwarvenGimli DwarvenDain RohanFrodo RohanEowyn RohanEomer GondorBoromir
BuildableRingHeroesMP = ElvenGaladriel_RingHero
End
CommandButton Command_GenericReviveSlot1
Command = REVIVE
Options = HIDE_WHILE_DISABLED CANCELABLE ;Hides button while disabled.
TextLabel = CONTROLBAR:GenericReviveHero
;ButtonImage = ***Filled in automatically! No need to specify a button image.
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipGenericReviveHero
InPalantir = No
Radial = Yes
End
CommandButton Command_GenericReviveSlot2
Command = REVIVE
Options = HIDE_WHILE_DISABLED CANCELABLE ;Hides button while disabled.
TextLabel = CONTROLBAR:GenericReviveHero
;ButtonImage = ***Filled in automatically! No need to specify a button image.
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipGenericReviveHero
InPalantir = No
Radial = Yes
End
...
CommandButton Command_GenericReviveSlot13 ;and then i copied unitl 20th
Command = REVIVE
Options = HIDE_WHILE_DISABLED CANCELABLE ;Hides button while disabled.
TextLabel = CONTROLBAR:GenericReviveHero
;ButtonImage = ***Filled in automatically! No need to specify a button image.
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipGenericReviveHero
InPalantir = No
Radial = Yes
End
CommandButton Command_RingHeroReviveSlot
Command = REVIVE
Options = HIDE_WHILE_DISABLED CANCELABLE NEED_UPGRADE ;Hides button while disabled.
NeededUpgrade = Upgrade_RingHero Upgrade_FortressRingHero
TextLabel = CONTROLBAR:GenericReviveHero
;ButtonImage = ***Filled in automatically! No need to specify a button image.
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipGenericReviveHero
InPalantir = No
Radial = Yes
End
CommandButton Command_CreateAHeroReviveSlot
Command = REVIVE
Options = HIDE_WHILE_DISABLED CANCELABLE NEED_UPGRADE ;Hides button while disabled.
NeededUpgrade = Upgrade_AllowBuildCreateAHero
TextLabel = CONTROLBAR:GenericReviveHero
;ButtonImage = ***Filled in automatically! No need to specify a button image.
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipGenericReviveHero
InPalantir = No
Radial = Yes
End
But it doens't work. So i tried a simply code to change only fortresspad as this to see how ini works
CommandSet DwarvenFortressExpansionPadSideCommandSet
1 = Command_ConstructDwarvenWallHubExpansion
2 = Command_ConstructDwarvenWallHubExpansion
3 = Command_ConstructDwarvenWallHubExpansion
4 = Command_ConstructDwarvenWallHubExpansion
End
But when i start game Pad of Dwraf's fortress and single pad object still remain as this
CommandSet DwarvenFortressExpansionPadSideCommandSet
1 = Command_ConstructDwarvenCatapultExpansion
2 = Command_ConstructDwarvenEreborTowerTowerExpansion
3 = Command_ConstructDwarvenHallExpansion
4 = Command_ConstructDwarvenWallHubExpansion
End
Any ideas?