Hello Guys! I'm tried adding the Darkness spell to my new mordor building but when im pressing the spell icon don't happen anything! i don't know why(im renamed the spell cuz i'm duplicate the original darkness files)
Specialpower.ini
;------------------------------------------------------------------------------
SpecialPower Darkness
Enum = SPECIAL_SPELL_BOOK_DARKNESS
ReloadTime = SPELL_RECHARGE_TIME_TIER_3 ;600000 in milliseconds
InitiateAtLocationSound = SpellDarkness
Flags = RESPECT_RECHARGE_TIME_DISCOUNT
End
NewBuilding.ini
;-------------Darkness-----------------------
Behavior = DarknessSpecialPower ModuleTag_Darkness
SpecialPowerTemplate = SpellBookDarkness
AttributeModifier = SpellBookDarkness
AttributeModifierAffects = ANY +INFANTRY +CAVALRY +MONSTER -HERO -HORDE ALLIES
AttributeModifierWeatherBased = Yes
WeatherDuration = SPELL_DARKNESS_DURATION
AvailableAtStart = Yes
End
CommandButton.ini
CommandButton Command_Darkness
Command = SPECIAL_POWER
SpecialPower = Darkness
ButtonImage = HSWitchKingLeadership
TextLabel = CONTROLBAR:Darkness
DescriptLabel = CONTROLBAR:TooltipDarkness
Radial = Yes
InPalantir = Yes
ButtonBorderType = ACTION
End
i don't know whats the problem, button is appear in the game when im clicking to the building but when i'm clicking to Darkness button not happen anything... (sorry my grammar im hungarian)
Edited by mrk1995, 10 June 2015 - 11:52 PM.