Now my work is going
Ok now something is working...
But i can't recruit. I mean when i press on button it doens't do anything
My code:
PlayerTemplate FactionWild
Side = Wild
PlayableSide = Yes
Evil = Yes
StartMoney = 0
MaxLevelMP = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_DEFAULT PLAYER_PURCHASE_POINTS_GRANTED )
MaxLevelSP = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_EVIL PLAYER_PURCHASE_POINTS_GRANTED )
PreferredColor = R:84 G:114 B:71
StartingBuilding = WildFortress
StartingUnit1 = NONE
StartingUnit0 = NONE
IntrinsicSciences = SCIENCE_EVIL
IntrinsicSciencesMP = SCIENCE_WILD
SpellBook = EvilSpellBook
SpellBookMp = WildSpellBook
PurchaseScienceCommandSet = EvilSpellStoreCommandSet
PurchaseScienceCommandSetMP = WildSpellStoreCommandSet
InitialUpgrades = Upgrade_WildFaction Upgrade_GoblinDualEconomyChoice Upgrade_EvilDualEconomyChoice //Any upgrades this player template is born with.
// NOTE: It is very important that the create-a-hero be the first buildable hero, to ensure that the create-a-hero and the ring hero are always
// attached to the first two buttons in the command set.
BuildableHeroesMP = WildGoblinKing WildAzog WildShelob Drogoth MordorGothmog MordorMouthOfSauron KhamulFellBeast MorgomirFellBeast MordorWitchKingOnFellBeast NeutralGollum EvilMenBlackRider EvilMenBlackRider Alatar Pallando
BuildableRingHeroesMP = NONE
End
CommandSet AllExpansionPadCommandSet
1 = Command_GenericReviveSlot1
2 = Command_GenericReviveSlot2
3 = Command_GenericReviveSlot3
4 = Command_GenericReviveSlot4
5 = Command_GenericReviveSlot5
6 = Command_GenericReviveSlot6
7 = Command_GenericReviveSlot7
8 = Command_GenericReviveSlot8
9 = Command_GenericReviveSlot9
10 = Command_GenericReviveSlot10
11 = Command_GenericReviveSlot11
12 = Command_GenericReviveSlot12
13 = Command_GenericReviveSlot13
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
Object MenArrowTowerExpansion
BuildCost = 1300
BuildTime = 1.0
End
Object DwarvenEreborTowerTowerExpansion
BuildCost = 1200
BuildTime = 1.0
End
Object IsengardFortressExpansionPadCorner
CommandSet = AllExpansionPadCommandSet
End
Object IsengardFortressExpansionPadSide
CommandSet = AllExpansionPadCommandSet
End
Object ElvenFortressExpansionPadCorner
CommandSet = AllExpansionPadCommandSet
End
Object ElvenortressExpansionPadSide
CommandSet = AllExpansionPadCommandSet
End
Object DwarvenFortressExpansionPadCorner
CommandSet = AllExpansionPadCommandSet
End
Object DwarvenFortressExpansionPadSide
CommandSet = AllExpansionPadCommandSet
End
Object MenFortressExpansionPadCorner
CommandSet = AllExpansionPadCommandSet
End
Object MenFortressExpansionPadSide
CommandSet = AllExpansionPadCommandSet
End
Object WildFortressExpansionPadCorner
CommandSet = AllExpansionPadCommandSet
End
Object WildFortressExpansionPadSide
CommandSet = AllExpansionPadCommandSet
End
Object MordorFortressExpansionPadCorner
CommandSet = AllExpansionPadCommandSet
End
Object MordorFortressExpansionPadSide
CommandSet = AllExpansionPadCommandSet
End
I had an error.
IDK seems that he didn't get GenericReviveSlot14..
And my Tower let me see only 12 Revive slot (but when i recruit an hero the other appears)
Here my code:
PlayerTemplate FactionMen
Side = Men
PlayableSide = Yes
Evil = No
StartMoney = 0
MaxLevelMP = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_DEFAULT PLAYER_PURCHASE_POINTS_GRANTED )
MaxLevelSP = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_GOOD PLAYER_PURCHASE_POINTS_GRANTED )
PreferredColor = R:43 G:150 B:179
StartingBuilding = MenFortress
StartingUnit1 = NONE
StartingUnit0 = NONE
StartingUnitTacticalWOTR = MenPorter ;// This unit is placed in tactical mode when playing WOTR. Add multiple lines for multiple units.
StartingUnitTacticalWOTR = MenPorter
IntrinsicSciences = SCIENCE_GOOD
IntrinsicSciencesMP = SCIENCE_MEN
SpellBook = GoodSpellBook
SpellBookMp = MenSpellBook
PurchaseScienceCommandSet = GoodSpellStoreCommandSet
PurchaseScienceCommandSetMP = MenSpellStoreCommandSet
DisplayName = INI:FactionMen
DefaultPlayerAIType = MenSkirmishAI
BeaconName = MultiplayerBeacon
LightPointsUpSound = GondorLightPointsUp
ObjectiveAddedSound = Gui_MissionObjectiveNew
ObjectiveCompletedSound = Gui_MissionObjectiveCompleted
InitialUpgrades = Upgrade_MenFaction ; Any upgrades this player template is born with.
// NOTE: It is very important that the create-a-hero be the first buildable hero, to ensure that the create-a-hero and the ring hero are always
// attached to the first two buttons in the command set.
BuildableHeroesMP = RohanEowyn RohanEomer GondorBoromir RohanTheoden GondorFaramir GondorAragornMP GondorGandalf ElvenHaldir ElvenGlorfindel ElvenArwen ElvenLegolas ElvenThranduil ElvenElrond DwarvenCaptainofDale DwarvenGloin DwarvenGimli DwarvenDain ArnorArgeleb ArnorArveleg ArnorArvedui ArnorCaptain
BuildableRingHeroesMP = NONE
SpellStoreCurrentPowerLabel = APT:SpellStoreCurrentEvenstarPower
SpellStoreMaximumPowerLabel = APT:SpellStoreMaximumEvenstarPower
ResourceModifierObjectFilter = RESOURCE_MODIFIER_OBJECT_FILTER
ResourceModifierValues = 100 100 100 100 90 85 80 75 71 68 66
MultiSelectionPortrait = UPGondor_Army
LoadScreenMusic = Shell2MusicForLoadScreen
End
CommandSet AllExpansionPadCommandSet
InitialVisible = 20
1 = Command_GenericReviveSlot1
2 = Command_GenericReviveSlot2
3 = Command_GenericReviveSlot3
4 = Command_GenericReviveSlot4
5 = Command_GenericReviveSlot5
6 = Command_GenericReviveSlot6
7 = Command_GenericReviveSlot7
8 = Command_GenericReviveSlot8
9 = Command_GenericReviveSlot9
10 = Command_GenericReviveSlot10
11 = Command_GenericReviveSlot11
12 = Command_GenericReviveSlot12
13 = Command_GenericReviveSlot13
14 = Command_GenericReviveSlot14
15 = Command_GenericReviveSlot15
End
Object IsengardBattleTower
CommandSet = AllExpansionPadCommandSet
End
Weather
HardwareFogColor = R:220 G:226 B:235
HardwareFogEnable = Yes
HardwareFogStart = 550
HardwareFogEnd = 2000
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_GenericReviveSlot3
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_GenericReviveSlot4
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_GenericReviveSlot5
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_GenericReviveSlot6
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_GenericReviveSlot7
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_GenericReviveSlot8
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_GenericReviveSlot9
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_GenericReviveSlot10
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_GenericReviveSlot11
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_GenericReviveSlot12
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
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_GenericReviveSlot14
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_GenericReviveSlot15
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