Jump to content


RadagasttheBlue

Member Since 04 Sep 2006
Offline Last Active Apr 20 2016 04:52 AM

Posts I've Made

In Topic: Adding extra bonuses to Spellbook Cloudbreak super power

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
End

In Topic: Adding extra bonuses to Spellbook Cloudbreak super power

07 April 2016 - 12:21 AM

Kwen, I am not very good at this, so I would need some more guidance on how to do your suggestion.  I've been following the pdf of Meneldil's and I do not understand the OCL at all.


In Topic: Adding extra bonuses to Spellbook Cloudbreak super power

07 April 2016 - 12:11 AM

So I tried Echo's idea, and as far as i could tell, it didn't work.  Here is the code I implemented.  Pretty sure it didn't work, because nobody seemed to move faster and none of the generic fx leaderships turned on for the infantry units or heroes. 

; Gives ally troops bonus
        Behavior = AttributeModifierAuraUpdate ModuleTag_Leadership
            StartsActive    = Yes ;If no, requires upgrade to turn on.
            BonusName        = CloudbreakGoodBonus
            RefreshDelay    = 30000
            Range            = 9999.0
            ObjectFilter    = ANY +INFANTRY +HERO -CAVALRY -MONSTER -MACHINE -STRUCTURE -BASE_FOUNDATION
        End
ModifierList CloudbreakGoodBonus
    Category = LEADERSHIP
    Modifier = SPEED 150%
    ;Modifier = ARMOR 50%        ; Additive.  Sum of these are subtracted from all entries in Armor.ini
    Modifier = DAMAGE_MULT 150%        ; Multiplicitive.  Damage multiplied by this, will compound in multiple bonuses
    Modifier = EXPERIENCE 200%    ; Multiplicitive.  All exp gained mult by this
    Duration = 15000                ; Matches RefreshRate of giving module
    FX    = FX_GenericLeadershipLvl1
    FX2 = FX_GenericLeadershipLvl2
    FX3 = FX_GenericLeadershipLvl3
    MultiLevelFX = Yes
End

In Topic: Adding extra bonuses to Spellbook Cloudbreak super power

06 April 2016 - 05:10 PM

Thank you for the idea.  I will try it and get back to you.


In Topic: Adding extra bonuses to Spellbook Cloudbreak super power

06 April 2016 - 05:06 AM

Hi, sorry for the late reply.  Yes, I want it to do both.  I want it to stun enemies, infantry, monsters, and at the same time give my infantry and heroes bonuses like the eye of Sauron does.