Jump to content


Photo

Problems with Passive abilities


Best Answer malvack, 15 August 2020 - 08:13 PM

I meant the commandbutton that you use in your commandset, it should look like this:

CommandButton Command_BolgDreadVisage
	Command                 = SPECIAL_POWER
	SpecialPower            = SpecialAbilityFakeLeadership
	Options			= NONPRESSABLE NEED_UPGRADE
	NeededUpgrade		= Upgrade_ObjectLevel3
	TextLabel               = CONTROLBAR:DreadVisage
	ButtonImage             = HSNazgulDreadVisage
	RadiusCursorType        = TrainingRadiusCursor
	ButtonBorderType        = ACTION
	DescriptLabel           = CONTROLBAR:ToolTipWitchKingDreadVisage
	InPalantir		= Yes
End

And then, in your commandset.ini

CommandSet BolgCommandSet
	1 	= Command_ToggleStance
	2 	= Command_BolgDreadVisage
	12 	= Command_CaptureBuilding	
	13 	= Command_AttackMove
	14 	= Command_Stop
	16  = Command_SetStanceBattle
	17  = Command_SetStanceAggressive
	18  = Command_SetStanceHoldGround
End

EDIT: Make sure that the NeededUpgrade option in your commadbutton matches the upgrade you use to unpause the special ability in your hero ini. If you end up using another upgrade, like "Upgrade_BolgDreadVisage" both the commandbutton.ini and your hero ini should use that upgrade instead. 

 

The thing with SpecialAbilityFakeLeadership is that sometimes, most of the times in my xp, it does the technical work of coordinating the unpausing of an ability but it doesn't update the commandset, i.e., the button in the palantir remains greyed out despite you already getting the required upgrades. That's why you have to manually update the commandbutton, just to tell "hey, i got my ability ready"

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 Goldo

Goldo
  • Members
  • 57 posts

Posted 14 August 2020 - 11:05 PM

First of all hello. It's been more than 10 years since I posted here.

 

Now on to the problem at hand. I added a new hero, Bolg for the Goblins in a personal mini mod for RotWK.

Pretty simple stuff, he is basically a Goblin Morgomir. His powers are:

lvl1: leadership

lvl3: dread visage

lvl8: dark glory (modded to effect all goblin units)

lvl10: ruin

 

Everything seems to be working splendidly with one small exception: dread visage is not greyed out when he spawns from the fortress. It seems to be available even though he gets it at lvl 3. Can anyone give any insight on what is the problem? I can share code if you want, just tell me which ini is likely at fault. 



#2 malvack

malvack
  • Members
  • 36 posts

Posted 15 August 2020 - 02:14 AM

Welcome back!

If I remember correctly, usually the button for dread visage requires the NEED_UPGRADE option and the respective NeededUpgrade field

#3 Goldo

Goldo
  • Members
  • 57 posts

Posted 15 August 2020 - 09:56 AM

Thanks for the reply. This is the code in Bolg.ini. I also tried it with "TriggeredBy = Upgrade_BolgDreadVisage", which I included in upgrades.ini. The command button was still available from the start.

 

Where can I find "NeededUpgrade"? Is it an ini file of its own?

;;--------- DREAD VISAGE -----------------------------------------------------------------------------------
	Behavior = UnpauseSpecialPowerUpgrade ModuleTag_NecroDeathMaskStarter
		SpecialPowerTemplate = SpecialAbilityFakeLeadership
		TriggeredBy = Upgrade_ObjectLevel3		
	End

	Behavior = SpecialPowerModule ModuleTag_NecroDeathMaskUpdate
		SpecialPowerTemplate		= SpecialAbilityFakeLeadership
		UpdateModuleStartsAttack	= Yes
		StartsPaused = Yes
	End

	Behavior = AttributeModifierAuraUpdate ModuleTag_DeathMask
		StartsActive			= No ;If no, requires upgrade to turn on.
		BonusName			= DeathMaskModifier
		TriggeredBy			= Upgrade_ObjectLevel3
		RefreshDelay			= 2000
		Range				= ANGMAR_NECRO_DEATH_MASK_RANGE
		TargetEnemy			= Yes
;;,;;		AntiCategory			= LEADERSHIP BUFF ; This means cancel all previous leadership bonuses
		ObjectFilter			= GENERIC_BUFF_RECIPIENT_OBJECT_FILTER ;;,;; ANY +INFANTRY +CAVALRY -STRUCTURE -BASE_FOUNDATION -HERO -HORDE
	End

Edited by Goldo, 15 August 2020 - 09:59 AM.


#4 malvack

malvack
  • Members
  • 36 posts

Posted 15 August 2020 - 08:13 PM   Best Answer

I meant the commandbutton that you use in your commandset, it should look like this:

CommandButton Command_BolgDreadVisage
	Command                 = SPECIAL_POWER
	SpecialPower            = SpecialAbilityFakeLeadership
	Options			= NONPRESSABLE NEED_UPGRADE
	NeededUpgrade		= Upgrade_ObjectLevel3
	TextLabel               = CONTROLBAR:DreadVisage
	ButtonImage             = HSNazgulDreadVisage
	RadiusCursorType        = TrainingRadiusCursor
	ButtonBorderType        = ACTION
	DescriptLabel           = CONTROLBAR:ToolTipWitchKingDreadVisage
	InPalantir		= Yes
End

And then, in your commandset.ini

CommandSet BolgCommandSet
	1 	= Command_ToggleStance
	2 	= Command_BolgDreadVisage
	12 	= Command_CaptureBuilding	
	13 	= Command_AttackMove
	14 	= Command_Stop
	16  = Command_SetStanceBattle
	17  = Command_SetStanceAggressive
	18  = Command_SetStanceHoldGround
End

EDIT: Make sure that the NeededUpgrade option in your commadbutton matches the upgrade you use to unpause the special ability in your hero ini. If you end up using another upgrade, like "Upgrade_BolgDreadVisage" both the commandbutton.ini and your hero ini should use that upgrade instead. 

 

The thing with SpecialAbilityFakeLeadership is that sometimes, most of the times in my xp, it does the technical work of coordinating the unpausing of an ability but it doesn't update the commandset, i.e., the button in the palantir remains greyed out despite you already getting the required upgrades. That's why you have to manually update the commandbutton, just to tell "hey, i got my ability ready"


Edited by malvack, 15 August 2020 - 08:21 PM.


#5 Goldo

Goldo
  • Members
  • 57 posts

Posted 16 August 2020 - 12:12 AM

Thank you very much, it worked! It was the following piece of code that created the problem 

Options			= NONPRESSABLE NEED_UPGRADE

Now my only problem is that Bolg still uses the Morgomir quotes when performing Ruin and Dark Glory, even though I changed the voices in his ini (both the normal ones and the ones associated with the skills). Any idea what's to blame?


Edited by Goldo, 16 August 2020 - 12:12 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users