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 DwarvenFortressExpansionPadSideCommandSet (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
Edited by Xan Mako, 02 May 2016 - 01:17 PM.