Jump to content


Photo

Add Spell Book power to Building

add spell book power to build

  • Please log in to reply
4 replies to this topic

#1 mrk1995

mrk1995
  • Members
  • 38 posts
  • Location:Budapest
  • Projects:LotR BFME III private Lan mod, World of Warcraft mod
  •  Scourge of the Kaldorei

Posted 10 June 2015 - 11:21 PM

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.


#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 11 June 2015 - 07:17 AM

Change the SPECIAL_SPELL_BOOK_DARKNESS to the Targetless spell enum variation. (It's in the specialpowers.ini somewhere, don't have access to it at the moment)


Ridder Geel

#3 mrk1995

mrk1995
  • Members
  • 38 posts
  • Location:Budapest
  • Projects:LotR BFME III private Lan mod, World of Warcraft mod
  •  Scourge of the Kaldorei

Posted 11 June 2015 - 11:53 AM

now im use this enum SPECIAL_GENERAL_TARGETLESS but this not solved my problem :/



#4 Suchar

Suchar

    Suchy

  • Members
  • 100 posts
  • Location:Poland
  • Projects:PRO MOD
  •  Lonely coder

Posted 13 June 2015 - 07:39 PM

 

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

 

Change the "SpecialPowerTemplate = SpellBookDarkness" to "SpecialPowerTemplate = Darkness"



#5 mrk1995

mrk1995
  • Members
  • 38 posts
  • Location:Budapest
  • Projects:LotR BFME III private Lan mod, World of Warcraft mod
  •  Scourge of the Kaldorei

Posted 15 June 2015 - 09:15 PM

Suchar  thanx man now it's work :)) biglike




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users