Best Answer RadagasttheBlue, 15 April 2016 - 10:01 PM
So after some tinkering and getting nowhere, I decided that it was best to just change the behavior of ModuleTag_CloudBreak_MP in the system.ini file. I changed it by commenting out the anti-leadership part and just making it a regular leadership that effects infantry, hero and allies.
I then created a new attributemodifier in the attributemodifier.ini file. The reason for this is that inside system.ini there are two CloudBreak's, One is for Single Player, and the other is for Multiplayer. Since I normally play skirmish, and wanted to test this in skirmish without touching the single player CloudBreak, I created the attributemodifier by copying the old SpellBookCloudBreak attributemodifier and pasting it with a new named called SpellBookCloudBreakMP inside the attributemodifier.ini file. The ModuleTag_CloudBreak_MP that is inside system.ini calls this new attributemodifier.
As far as I can tell, it seems to work. All of my troops definitely move faster for the duration. So I assume the extra armor and damage count as well. It also does not give enemies the leadership as well, which is something I was worried about happening.
My reasoning for removing the stun effect from Cloudbreak power is that both Cloudbreak and Boromir's Horn of Gondor just stun enemies, with CloudBreak having a greater range. I did not like this and wanted CloudBreak to do something more like CloudofDarkness. If I want the range of the stun effect back I can always just adjust the range of Boromir's Horn of Gondor.
Here is the code:
system.ini
Behavior = CloudBreakSpecialPower ModuleTag_CloudBreak_MP SpecialPowerTemplate = SpellBookCloudBreak_MP SunbeamObject = CloudBreakSunbeam ObjectSpacing = 300 AttributeModifier = SpellBookCloudBreakMP AttributeModifierAffects = ANY +INFANTRY +HERO -CAVALRY ALLIES AttributeModifierRange = 999999 ; ReEnableAntiCategory = Yes ; cancel negative effects on good guys ; AntiCategory = LEADERSHIP ; AntiFX = FX_AntiLeadership ; FX for anti category AttributeModifierWeatherBased = Yes TargetAllSides = Yes AvailableAtStart = No End
attributemodifier.ini
ModifierList SpellBookCloudBreakMP Category = LEADERSHIP Modifier = SPEED 150% Modifier = DAMAGE_MULT 150% Modifier = ARMOR 50% Duration = 15000 FX = FX_InfiniteGenericLeadershipLvl1 FX2 = FX_InfiniteGenericLeadershipLvl2 FX3 = FX_InfiniteGenericLeadershipLvl3 EndFX = FX_StopGenericLeadershipLvl1 EndFX2 = FX_StopGenericLeadershipLvl2 EndFX3 = FX_StopGenericLeadershipLvl3 MultiLevelFX = Yes EndGo to the full post