Jump to content


Photo

Need Help With Special Ability


Best Answer Miraak5, 28 July 2019 - 08:39 PM

well add this line TriggerFX = YourFx (u will want FX_SpellRallyingCall here) and InitiateSound = SpellRallyingCallMS

in the SpecialPowerModule block

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 King Arveleg

King Arveleg
  • Members
  • 69 posts
  • Location:Fornost
  • Projects:Arnor & Gondor & Rohan ,Kingdom of Arnor

Posted 28 July 2019 - 05:04 PM

Hi,

 

I added Dain's Stubborn Pride to Arvedui, and I want it to work by pressing the button without targeting. Now the ability is working as intended, but no FX or sound works when activated. 

 

So what I want is for the FX and Sound form Rallying Call Spell to work\come out of Arvedui when I press the button.

I have them in the code below but nothing happens in-game.

	;--------------------------------------------------------------------------------------------
	;//-------------------------For Arnor--------------------------------------
	;--------------------------------------------------------------------------------------------
	Behavior = UnpauseSpecialPowerUpgrade ModuleTag_StubbornPrideUnpause
		SpecialPowerTemplate		= SpecialAbilityDainStubbornPrideFA
		TriggeredBy					= Upgrade_ForArnor
	End

	Behavior = SpecialPowerModule ModuleTag_StubbornPrideSpecialPower
		SpecialPowerTemplate		= SpecialAbilityDainStubbornPrideFA
		UpdateModuleStartsAttack	= No
		StartsPaused				= Yes
	End	

	Behavior = AttributeModifierAuraUpdate ModuleTag_StubbornPrideUpdate
		StartsActive				= No
		BonusName					= DainStubbornPride
		TriggeredBy					= Upgrade_ForArnor
		RefreshDelay				= 2000
		Range						= 400
		ObjectFilter				= ANY +INFANTRY +CAVALRY -STRUCTURE -BASE_FOUNDATION -HERO -DOZER ALLIES
	    //TriggerFX					= FX_SpellRallyingCall
	End	
CommandButton Command_SpecialAbilityForArnor
    Command            = SPECIAL_POWER
    SpecialPower        = SpecialAbilityDainStubbornPrideFA
    TextLabel        = CONTROLBAR:ForArnor
    DescriptLabel        = CONTROLBAR:ToolTipForArnor
    ButtonBorderType    = ACTION
    ButtonImage        = HSKingDainStubbornPride
    InPalantir              = Yes
    AutoAbility                = No
End
//------------------------------------------------------------------------------
SpecialPower SpecialAbilityDainStubbornPrideFA
	Enum									  =	SPECIAL_GENERAL_TARGETLESS
	ReloadTime								  = SPELL_RECHARGE_TIME_TIER_1 ; in milliseconds
	//InitiateAtLocationSound     = SpellRallyingCallMS
End

 

Thanks in advance. :)


Edited by King Arveleg, 28 July 2019 - 06:40 PM.


#2 Miraak5

Miraak5

    title available

  • Members
  • 389 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  BIG coding, Map scripting and AI coding

Posted 28 July 2019 - 08:39 PM   Best Answer

well add this line TriggerFX = YourFx (u will want FX_SpellRallyingCall here) and InitiateSound = SpellRallyingCallMS

in the SpecialPowerModule block


He was the first...


#3 King Arveleg

King Arveleg
  • Members
  • 69 posts
  • Location:Fornost
  • Projects:Arnor & Gondor & Rohan ,Kingdom of Arnor

Posted 28 July 2019 - 09:52 PM

well add this line TriggerFX = YourFx (u will want FX_SpellRallyingCall here) and InitiateSound = SpellRallyingCallMS

in the SpecialPowerModule block

	;--------------------------------------------------------------------------------------------
	;//-------------------------For Arnor--------------------------------------
	;--------------------------------------------------------------------------------------------
	Behavior = UnpauseSpecialPowerUpgrade ModuleTag_StubbornPrideUnpause
		SpecialPowerTemplate		= SpecialAbilityDainStubbornPrideFA
		TriggeredBy					= Upgrade_ForArnor
	End

	Behavior = SpecialPowerModule ModuleTag_StubbornPrideSpecialPower
		SpecialPowerTemplate		= SpecialAbilityDainStubbornPrideFA
		UpdateModuleStartsAttack	= No
		StartsPaused				= Yes
		TriggerFX					= FX_SpellRallyingCall
		InitiateSound     = SpellRallyingCallMS
	End	

	Behavior = AttributeModifierAuraUpdate ModuleTag_StubbornPrideUpdate
		StartsActive				= No
		BonusName					= DainStubbornPride
		TriggeredBy					= Upgrade_ForArnor
		RefreshDelay				= 2000
		Range						= 400
		ObjectFilter				= ANY +INFANTRY +CAVALRY -STRUCTURE -BASE_FOUNDATION -HERO -DOZER ALLIES
		//TriggerFX					= FX_SpellRallyingCall
		//InitiateSound     = SpellRallyingCallMS
	End	

Now it works. Thanks a lot Dragonborn. :D






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users