15. Nov 2025, 22:04 Hallo Gast.
Willkommen Gast. Bitte einloggen oder registrieren. Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge. Hierbei werden gemäß Datenschutzerklärung Benutzername und Passwort verschlüsselt für die gewählte Dauer in einem Cookie abgelegt.


Select Boards:
 
Language:
 


Autor Thema: map.ini problem cant use powers  (Gelesen 277 mal)

EdSup

  • Wanderer des Alten Waldes
  • *
  • Beiträge: 62
map.ini problem cant use powers
« am: Heute um 13:03 »
Hi,

i added the following code to a map.ini to get a new spellbook.

Problem is: I can open the spellbook, i can purchase the powers in spellbook BUT they dont show on the left side after purchasing. So i am not able to use them. Why is it not working, anyone knows and can give me a solution?

CommandSet MenSpellBookCommandSet_O verride
   1 = Command_SpellBookElvenGi fts
   2 = Command_SpellBookHeal
   3 = Command_SpellBookRallyin gCall
   
   4 = Command_SpellBookElvenWo od
   5 = Command_SpellBookArrowVo lleyGood
   6 = Command_SpellBookEagleAl lies
   7 = Command_SpellBookCloudBr eak
   8 = Command_SpellBookEntAlli es

   9 = Command_SpellBookArmyoft heDead
End

CommandSet MenSpellStoreCommandSet_ Override
   1 = Command_PurchaseSpellElv enGifts
   2 = Command_PurchaseSpellHea l
   3 = Command_PurchaseSpellRal lyingCallMP
   
   4 = Command_PurchaseSpellElv enWood
   5 = Command_PurchaseSpellArr owVolleyGood

   6 = Command_PurchaseSpellEag leAllies
   7 = Command_PurchaseSpellClo udBreak
   8 = Command_PurchaseSpellEnt Allies

   9 = Command_PurchaseSpellArm yoftheDead
End

Object MenSpellBook_Override

   AddModule ModuleTag_ElvenGifts_Ove rride
      Behavior = PlayerUpgradeSpecialPowe r   SpellBookElvenGifts_Modu leTag
         SpecialPowerTemplate      = SpellBookElvenGifts
         UpgradeName             = Upgrade_ElvenGift
         UpdateModuleStartsAttack   = No
         AffectAllies            = No ; Should not try to affect ally units
         AvailableAtStart         = No
         RequirementsFilterMPSkir mish = SPELL_BOOK_REQUIREMENTS_ FILTER
         RequirementsFilterStrate gic = SPELL_BOOK_REQUIREMENTS_ FILTER_STRATEGIC
      End
   End

   AddModule ModuleTag_Heal_Override
        Behavior = PlayerHealSpecialPower ModuleTag_Heal
         SpecialPowerTemplate  = SpellBookHeal
         HealAffects           = INFANTRY CAVALRY SHIP DOZER   ; Removed from 1.07   ; MONSTER MACHINE
         HealAmount           = 0.5   ; change from 1.07   ; 0.6 ;1.0   ; 0.5 = 50% of maximum health
         HealRadius           = SPELL_HEAL_RADIUS_UNIT_S CAN
         HealFX              = FX_SpellHealUnitHealBuff      ;FX_DefaultUnitHealBuff
         ; To replenish hordes a bit
         HealOCL               = OCL_HealSpellHordeReplen ishPing
         AvailableAtStart     = No
         RequirementsFilterMPSkir mish = SPELL_BOOK_REQUIREMENTS_ FILTER
         RequirementsFilterStrate gic = SPELL_BOOK_REQUIREMENTS_ FILTER_STRATEGIC
      End
   End

   AddModule ModuleTag_RallyingCall_O verride
      Behavior = SpecialPowerModule ModuleTag_RallyingCall
         SpecialPowerTemplate      = SpellBookRallyingCall
         AttributeModifier         = SpellBookRallyingCallMod ifier
         AttributeModifierRange      = 100
         AttributeModifierAffects   = ANY +HORDE +INFANTRY -HERO -IsengardFanatic -IsengardBerserkerHorde  -DwarvenZerker -DwarvenZerkerHorde -NoldorWarrior -NoldorWarriorHorde
         TriggerFX               = FX_SpellRallyingCall
         UpdateModuleStartsAttack   = No
         AvailableAtStart         = No
         RequirementsFilterMPSkir mish = SPELL_BOOK_REQUIREMENTS_ FILTER
         RequirementsFilterStrate gic = SPELL_BOOK_REQUIREMENTS_ FILTER_STRATEGIC
      End
   End

   AddModule ModuleTag_ElvenWood_Over ride
      Behavior           = ElvenWoodSpecialPower ModuleTag_ElvenWood
         SpecialPowerTemplate   = SpellBookElvenWood
         ElvenGroveObject      = ElvenGrove
         ElvenWoodRadius         = SPELLBOOK_TAINT_RADIUS
         ElvenWoodFX            = FX_ElvenWoodSpellFX
         ElvenWoodOCL         = OCL_ElvenWoodSeed
   ;      CreateLocation         = CREATE_AT_LOCATION
         AvailableAtStart      = No
         RequirementsFilterMPSkir mish = SPELL_BOOK_REQUIREMENTS_ FILTER
         RequirementsFilterStrate gic = SPELL_BOOK_REQUIREMENTS_ FILTER_STRATEGIC
      End
   End

   AddModule ModuleTag_ArrowVolleyGoo d_Override
      Behavior = OCLSpecialPower ModuleTag_ArrowVolleyGoo d
         SpecialPowerTemplate = SpellBookArrowVolleyGood
         OCL                  = OCL_SpellBookArrowVolley
         CreateLocation       = USE_SECONDARY_OBJECT_LOC ATION
         NearestSecondaryObjectFi lter = NONE SAME_PLAYER +CASTLE_KEEP
         AvailableAtStart    = No
         RequirementsFilterMPSkir mish = SPELL_BOOK_REQUIREMENTS_ FILTER
         RequirementsFilterStrate gic = SPELL_BOOK_REQUIREMENTS_ FILTER_STRATEGIC
      End
   End

   AddModule ModuleTag_SummonEagles_O verride
      Behavior = OCLSpecialPower ModuleTag_SummonEagles
         SpecialPowerTemplate = SpellBookEagleAllies
         OCL                  = OCL_SpawnEagles
         CreateLocation       = CREATE_ABOVE_LOCATION
         AvailableAtStart    = No
         RequirementsFilterMPSkir mish = SPELL_BOOK_REQUIREMENTS_ FILTER
         RequirementsFilterStrate gic = SPELL_BOOK_REQUIREMENTS_ FILTER_STRATEGIC
      End
   End

   AddModule ModuleTag_SummonEnts_Ove rride
      Behavior = OCLSpecialPower ModuleTag_SummonEnts
         SpecialPowerTemplate = SpellBookEntAllies
         OCL                  = OCL_SpawnEnts
         TriggerFX          = FX_SummonEntAllies
         CreateLocation       = CREATE_AT_LOCATION
         UpgradeName          = Upgrade_EntAllies
         AvailableAtStart    = No
         RequirementsFilterMPSkir mish = SPELL_BOOK_REQUIREMENTS_ FILTER
         RequirementsFilterStrate gic = SPELL_BOOK_REQUIREMENTS_ FILTER_STRATEGIC
      End
   End

   AddModule ModuleTag_CloudBreak_Ove rride
      Behavior = CloudBreakSpecialPower   ModuleTag_CloudBreak
         SpecialPowerTemplate         = SpellBookCloudBreak
         SunbeamObject            = CloudBreakSunbeam
         ObjectSpacing            = 300
         AttributeModifierAffects      = ANY +INFANTRY +CAVALRY +MONSTER -HERO ENEMIES
         ReEnableAntiCategory         = Yes ; cancel negative effects on good guys
         AttributeModifierWeather Based      = Yes         
         WeatherDuration            = SPELL_CLOUDBREAK_DURATIO N
         ChangeWeather            = SUNNY
         AvailableAtStart         = No
         RequirementsFilterMPSkir mish       = SPELL_BOOK_REQUIREMENTS_ FILTER
         RequirementsFilterStrate gic       = SPELL_BOOK_REQUIREMENTS_ FILTER_STRATEGIC
      End
   End

   AddModule ModuleTag_summonDead_Ove rride
      Behavior = OCLSpecialPower ModuleTag_SummonDead
         SpecialPowerTemplate       = SpellBookArmyoftheDead
         OCL                        = OCL_GondorArmyofTheDeadE gg
         TriggerFX         = FX_SummonAOD
         CreateLocation         = CREATE_AT_LOCATION
         AvailableAtStart      = No
         RequirementsFilterMPSkir mish    = SPELL_BOOK_REQUIREMENTS_ FILTER
         RequirementsFilterStrate gic    = SPELL_BOOK_REQUIREMENTS_ FILTER_STRATEGIC
      End
   End

   CommandSet = MenSpellBookCommandSet_O verride
   RadarPriority       = NOT_ON_RADAR
   KindOf              = SPELL_BOOK IMMOBILE IGNORES_SELECT_ALL INERT
End

ChildObject MenChildSpellBook_Overri de MenSpellBook_Override
   CommandSet = MenSpellBookCommandSet_O verride
End

;--------------------------------------------------
PlayerTemplate FactionMen
     PurchaseScienceCommandSe tMP    = MenSpellStoreCommandSet_ Override
     SpellBookMp          = MenSpellBook_Override
     BuildableHeroesMP         = CreateAHero
End

The_Necromancer0

  • Edain Team
  • Wächter der Veste
  • *****
  • Beiträge: 2.102
  • There is evil there that does not sleep
Re: map.ini problem cant use powers
« Antwort #1 am: Heute um 13:07 »
Your new object should inherit from the old spellbook

ChildObject MenSpellBook_Override MenSpellBook
Come chat Edain on Discord: https://discord.gg/CMhkeb8
Questions on the Mod? Visit the Official Wiki: http://edain.wikia.com/

EdSup

  • Wanderer des Alten Waldes
  • *
  • Beiträge: 62
Re: map.ini problem cant use powers
« Antwort #2 am: Heute um 13:29 »
Its crazy but this seems to be pretty broken. I got more problems now than before.

I can only purchase the powers 1,2,3 and 4 now. All others i cant even purchase if i have enough power points.

Furthermore if i purchase those 4 powers i can only use 1 and 4 for some reason, since those are the only ones that are shown on the left side.

What is wrong? Any ideas?

« Letzte Änderung: Heute um 13:58 von EdSup »