Jump to content


Photo

Disabling Hero Skills


  • Please log in to reply
8 replies to this topic

#1 Nahlea

Nahlea
  • New Members
  • 7 posts

Posted 27 July 2009 - 08:54 PM

Hi,

At the moment I have a balrog with 10 level and he starts of with level 1, but he gains all of his skills right away.

I told the experiencelevels.ini that the balrog gains a new skill, after he gains a certain level, however the skills are already enabled right from level 1.

So in short, i want the Balrog to earn his specials powers (skill) as he level up.

Does anyone know how to achieve this?

Thanks in advance,
Nahlea

#2 Spartan184

Spartan184

    :)

  • Project Team
  • 1,592 posts
  • Location:Moon
  • Projects:Random Modding Projects
  •  Coder, Map.ini Coder, Mapper, and Beta Tester

Posted 27 July 2009 - 10:37 PM

You have to make upgrades in the upgrade.ini for his powers(skills).


 

safsignature.png

 


#3 Nahlea

Nahlea
  • New Members
  • 7 posts

Posted 28 July 2009 - 01:57 PM

You have to make upgrades in the upgrade.ini for his powers(skills).


I have made the upgrade, but the result is the same, which means all the powers of the balrog are avaible from the start.

#4 Spartan184

Spartan184

    :)

  • Project Team
  • 1,592 posts
  • Location:Moon
  • Projects:Random Modding Projects
  •  Coder, Map.ini Coder, Mapper, and Beta Tester

Posted 28 July 2009 - 03:44 PM

Then add it to the Experience Levels.


 

safsignature.png

 


#5 Nahlea

Nahlea
  • New Members
  • 7 posts

Posted 28 July 2009 - 05:17 PM

Then add it to the Experience Levels.


Did that as well and still no good result :(
I might be doing something wrong (without a doubt:P)

Let me show you what i got so far:

Individual file for the balrog (not pasting code to prevent wall of text)

Comandbutton.ini
CommandButton Command_SpecialAbilityIgnite
  Command				 	= SPECIAL_POWER 
  SpecialPower				= SpecialAbilityHeroMode
;  Options				 	= 
  TextLabel			   	= CONTROLBAR:SpecialAbilityIgnite
  ButtonImage			 	= HSBalrogIgnite
  ButtonBorderType			= ACTION 
  DescriptLabel		   	= CONTROLBAR:ToolTipSpecialAbilityIgnite	 	
  InPalantir			= Yes
End

CommandButton Command_SpecialAbilityFireWhip
  Command				 	= FIRE_WEAPON 
  WeaponSlot				  = SECONDARY
  Options				 	= NEED_TARGET_ENEMY_OBJECT
  TextLabel			   	= CONTROLBAR:SpecialAbilityFireWhip
  ButtonImage			 	= HSBalrogFireWhip
  ButtonBorderType			= ACTION 
  DescriptLabel		   	= CONTROLBAR:ToolTipSpecialAbilityFireWhip
  CursorName				  = EvilAbilityObj
  InvalidCursorName	   	= GenericInvalid
;  UnitSpecificSound	   	= 
  InPalantir			  = Yes
End

CommandButton Command_SpecialAbilityBalrogBreath
  Command				 = SPECIAL_POWER 
  SpecialPower			= SpecialAbilityBalrogBreath
  Options				 = NEED_TARGET_POS CONTEXTMODE_COMMAND
  TextLabel			   = CONTROLBAR:SpecialAbilityBalrogBreath
  ButtonImage			 = HSBalrogBreathFire
  ButtonBorderType		= ACTION 
  RadiusCursorType		= FireBreathRadiusCursor   
  DescriptLabel		   = CONTROLBAR:ToolTipSpecialAbilityBalrogBreath
;  UnitSpecificSound	   	= 
  InPalantir			= Yes
End

CommandButton Command_SpecialAbilityBalrogWings
  Command				 	= SPECIAL_POWER 
  SpecialPower				= SpecialAbilityBalrogWings
  Options				 	= NEED_TARGET_POS CONTEXTMODE_COMMAND
  TextLabel			   	= CONTROLBAR:SpecialAbilityBalrogWings
  ButtonImage			 	= HSBalrogWings
  ButtonBorderType			= ACTION 
  CursorName			= EvilAbilityObj  
  InvalidCursorName		  = GenericInvalid
  DescriptLabel		   	= CONTROLBAR:ToolTipSpecialAbilityBalrogWings
;  UnitSpecificSound	   	= 
  InPalantir			= Yes
End

Comandset.ini
CommandSet BalrogMPCommandSet
	1	  = Command_ToggleStance
	2	  = Command_SpecialAbilityBalrogWings
	3	  = Command_SpecialAbilityIgnite
	4	  = Command_SpecialAbilityFireWhip
	5	  = Command_SpecialAbilityBalrogScream
	6	  = Command_SpecialAbilityBalrogBreath
	13 	= Command_AttackMove
	14 	= Command_Stop
	16	  = Command_SetStanceBattle
	17	  = Command_SetStanceAggressive
	18	  = Command_SetStanceHoldGround
End

Upgrade.ini
Upgrade Upgrade_BalrogWings
	Type			= OBJECT
End

Upgrade Upgrade_SpecialAbilityIgnite
	Type			= OBJECT
End

Upgrade Upgrade_FireWhip
	Type			= OBJECT
End

Upgrade Upgrade_BalrogScream
	Type			= OBJECT
End

Upgrade Upgrade_BalrogBreath
	Type			= OBJECT
End

Experiencelevel.ini
ExperienceLevel	BalrogMPLevel1
	TargetNames						=	BalrogMP
	RequiredExperience				=	1	
	ExperienceAward					=	BALROG_MP_LVL1_EXP_AWARD
	Rank							=	1
	Upgrades						=	Upgrade_BalrogWings
	SelectionDecal
		Texture						=	decal_hero_good	
		Style						=	SHADOW_ALPHA_DECAL
		OpacityMin					=	50%	
		OpacityMax					=	100%
		MinRadius					=	40;16
		MaxRadius					=	200;16
		MaxSelectedUnits			=	40;1
	End	
End	

ExperienceLevel	BalrogMP2
	TargetNames						=	BalrogMP
	RequiredExperience				=	BALROG_MP_LVL2_EXP_NEEDED 
	ExperienceAward					=	BALROG_MP_LVL2_EXP_AWARD
	AttributeModifiers				=	HeroLevelUpDamage1
	Rank							=	2
	Upgrades						=	Upgrade_SpecialAbilityIgniteMP
	LevelUpFx						=	FX:GandalfLevelUp1FX
;LevelUpOCL						=	OCL_GandalfLevelUp1OCL
	SelectionDecal
		Texture						=	decal_hero_good	
		Style						=	SHADOW_ALPHA_DECAL
		OpacityMin					=	50%	
		OpacityMax					=	100%
		MinRadius					=	40;16
		MaxRadius					=	200;16
		MaxSelectedUnits			=	40;1
	End	
END	

ExperienceLevel	BalrogMPLevel3
	TargetNames						=	BalrogMP
	RequiredExperience				=	BALROG_MP_LVL3_EXP_NEEDED 
	ExperienceAward					=	BALROG_MP_LVL3_EXP_AWARD	
	AttributeModifiers				=	HeroLevelUpDamage2
	Rank							=	3
	Upgrades						=	
	LevelUpFx						=	FX:GandalfLevelUp1FX
;LevelUpOCL						=	OCL_GandalfLevelUp1OCL
	SelectionDecal
		Texture						=	decal_hero_good	
		Style						=	SHADOW_ALPHA_DECAL
		OpacityMin					=	50%	
		OpacityMax					=	100%
		MinRadius					=	40;16
		MaxRadius					=	200;16
		MaxSelectedUnits			=	40;1
	End	
END	

ExperienceLevel	BalrogMPLevel4
	TargetNames						=	BalrogMP
	RequiredExperience				=	BALROG_MP_LVL4_EXP_NEEDED 
	ExperienceAward					=	BALROG_MP_LVL4_EXP_AWARD	
	AttributeModifiers				=	HeroLevelUpDamage3
	Rank							=	4
	Upgrades						=	
	LevelUpFx						=	FX:GandalfLevelUp1FX
;LevelUpOCL						=	OCL_GandalfLevelUp1OCL
	SelectionDecal
		Texture						=	decal_hero_good	
		Style						=	SHADOW_ALPHA_DECAL
		OpacityMin					=	50%	
		OpacityMax					=	100%
		MinRadius					=	40;16
		MaxRadius					=	200;16
		MaxSelectedUnits			=	40;1
	End	
END

etc (not pasting everything to keep thing compact)

Edit:
Atm i am going to try an add a new behavior with "TriggeredBy = Upgrade_<skill name>"

Edited by Nahlea, 28 July 2009 - 05:26 PM.


#6 Spartan184

Spartan184

    :)

  • Project Team
  • 1,592 posts
  • Location:Moon
  • Projects:Random Modding Projects
  •  Coder, Map.ini Coder, Mapper, and Beta Tester

Posted 28 July 2009 - 05:41 PM

That your problem you have to add that to the powers behaviors. Sorry :umad: that i didn't mention that i thought you would have done that already.


 

safsignature.png

 


#7 Nahlea

Nahlea
  • New Members
  • 7 posts

Posted 28 July 2009 - 06:48 PM

That your problem you have to add that to the powers behaviors. Sorry :umad: that i didn't mention that i thought you would have done that already.


You shouldn't be sorry for things you didn't knew :p

I am glad you tried to help me, which is a sign of character, so thanks anyway.

#8 Spartan184

Spartan184

    :)

  • Project Team
  • 1,592 posts
  • Location:Moon
  • Projects:Random Modding Projects
  •  Coder, Map.ini Coder, Mapper, and Beta Tester

Posted 28 July 2009 - 07:25 PM

Your Welcomed. :umad:


 

safsignature.png

 


#9 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 30 July 2009 - 02:32 AM

CODE
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_b1
SpecialPowerTemplate = SpecialAbilityBalrogBreath
TriggeredBy = Upgrade_MouthOfSauronDissent
End

Behavior = SpecialPowerModule ModuleTag_b2
SpecialPowerTemplate = SpecialAbilityBalrogBreath
StartsPaused = Yes
UpdateModuleStartsAttack = Yes
InitiateSound = BalrogSpecialPowerRoar
End


You need to change stuff in the balrog's ini file to PAUSE / UNPAUSE the power
My mod has a working Balrog who starts at level 1 with powers blocked as necc.
see my sig below

Check other heroes ini file for the way they pause / unpause a special power and just duplicate the codes




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users