Jump to content


Photo

How to add a new hero power


  • Please log in to reply
10 replies to this topic

#1 man_of_gondor

man_of_gondor
  • Members
  • 219 posts
  • Location:Holland/The Netherlands
  • Projects:BFA - Beta Tester, helping people installing mods.

Posted 21 February 2010 - 05:10 PM

G'day

I have created a new hero for mordor and i put it on my mod. All worked fine but now i wanna add some powers to my hero. I really dont know how to do this. So, please tell which files i need to edit/remove/add. And tell how i can do this. If you know a tutorial or place to find my questions please reply. You can also pm me or mail me at man_of_gondor@hotmail.com if it is needed.

#2 Spartan184

Spartan184

    :)

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

Posted 22 February 2010 - 01:20 AM

Well what power do you want to add then maybe I can help.


 

safsignature.png

 


#3 man_of_gondor

man_of_gondor
  • Members
  • 219 posts
  • Location:Holland/The Netherlands
  • Projects:BFA - Beta Tester, helping people installing mods.

Posted 22 February 2010 - 07:47 AM

firstly i want a summon orc power. My hero is an orc captain and i want to give him the abilitys:

-summon orcs
-leadership
-a power where he gets more damage for a short time like lurtz

i hope you can help me

MoG

#4 kryso

kryso
  • Members
  • 33 posts

Posted 22 February 2010 - 01:58 PM

1: go to Commandset.ini find your hero and there you can copy from other hero leadership or any other power for example
CommandSet RohanLegolasCommandSet
	1	= Command_ToggleStance
	2	  = Command_LegolasHawkStrike
	3	  = Command_LegolasKnifeFightingMode
	4	  = Command_SpecialAbilityTrainArchers
	5	  = Command_SpecialAbilityArrowStorm
		6	   = Command_SpecialAbilityDainLeadership
	12 	= Command_CaptureBuilding
	13 	= Command_AttackMove
	14 	= Command_Stop
	16	  = Command_SetStanceBattle
	17	  = Command_SetStanceAggressive
	18	  = Command_SetStanceHoldGround
End

2: go to your hero.ini and under
LocomotorSet
		Locomotor = HeroHumanLocomotor
		Condition = SET_NORMAL 
		Speed	 = NORMAL_GOOD_HERO_SPEED
	End
just copy from other hero power and paste there for example
;--------------------------------------------------------------------------------------------
;//-------------------------Dain's Leadership--------------------------------------
;--------------------------------------------------------------------------------------------
	Behavior = UnpauseSpecialPowerUpgrade ModuleTag_DainLeadership
		SpecialPowerTemplate	= SpecialAbilityFakeLeadership
		TriggeredBy				= Upgrade_DainLeadership
	End
	
	Behavior = SpecialPowerModule ModuleTag_DainLeadershipUpdate   
		SpecialPowerTemplate		= SpecialAbilityFakeLeadership
		UpdateModuleStartsAttack	= No
		StartsPaused				= Yes
	End	

	Behavior = AttributeModifierAuraUpdate ModuleTag_Leadership
		StartsActive	= No;If no, requires upgrade to turn on.
		BonusName		= GenericHeroLeadership
		TriggeredBy		= Upgrade_DainLeadership
		RefreshDelay	= 2000
		Range			= 500
		AntiCategory	= BUFF
		ObjectFilter	= GENERIC_BUFF_RECIPIENT_OBJECT_FILTER
	End


3: go to experiencelevels.ini find your hero and you must do that for example
ExperienceLevel	LegolasLevel8
	TargetNames						=	RohanLegolas ElvenLegolas
	RequiredExperience				=	LEGOLAS_LVL8_EXP_NEEDED 
	ExperienceAward					=	LEGOLAS_LVL8_EXP_AWARD	
	AttributeModifiers				=	HeroLevelUpDamage7
	Rank							=	8
	Upgrades								  =	 Upgrade_DainLeadership
	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

Thats all

Edited by kryso, 22 February 2010 - 02:03 PM.


#5 Ridder Blauw

Ridder Blauw

    title available

  • Project Team
  • 1,277 posts
  • Location:The Netherlands (AKA:Holland)
  •  Do not force yourself into modding it's bad for your health.

Posted 22 February 2010 - 02:15 PM

You can check my tutorial, it might help. The summon balrog in my tut, the ocl only has to be changed to orcs. :sleep:

#6 man_of_gondor

man_of_gondor
  • Members
  • 219 posts
  • Location:Holland/The Netherlands
  • Projects:BFA - Beta Tester, helping people installing mods.

Posted 22 February 2010 - 03:09 PM

thank you guys, i will try and see if it works :sleep:

MoG

#7 Titan Cronus

Titan Cronus

    Do unto Others...

  • Members
  • 693 posts
  • Location:Ireland
  • Projects:The Battle of the Pelennor Fields Mod.

Posted 02 March 2010 - 07:48 PM

Hey there Man of Gondor, Just wondered if you managed to get your powers to work for your hero?

Battle of the Pelennor Fields

Made by 1 guy, has 13 Factions, 75+ Heroes, 150+ different units and 200+ Special abilities.

 

http://www.moddb.com...pelennor-fields


#8 man_of_gondor

man_of_gondor
  • Members
  • 219 posts
  • Location:Holland/The Netherlands
  • Projects:BFA - Beta Tester, helping people installing mods.

Posted 02 March 2010 - 08:12 PM

Yes i did, i sent you a pm with information

#9 Titan Cronus

Titan Cronus

    Do unto Others...

  • Members
  • 693 posts
  • Location:Ireland
  • Projects:The Battle of the Pelennor Fields Mod.

Posted 02 March 2010 - 10:11 PM

Cheers again for that MoG.

Edited by Titan Cronus, 02 March 2010 - 10:12 PM.

Battle of the Pelennor Fields

Made by 1 guy, has 13 Factions, 75+ Heroes, 150+ different units and 200+ Special abilities.

 

http://www.moddb.com...pelennor-fields


#10 Kalingbron

Kalingbron
  • Members
  • 17 posts

Posted 05 April 2010 - 10:08 PM

Firstly, sorry about reviving a long dead topic.

Secondly, where exactly is this Commandset.ini file?

And thirdly, I would assume this works for regular heroes as well? As in, if I wanted to give Prince Brand the leadership ability and bow/sword toggle, I could?

#11 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 06 April 2010 - 06:26 AM

commandset.ini file... is in ini.big ;)
You need to edit bigs my friend :)
Ridder Geel




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users