Jump to content


Photo

Ring Heore


  • Please log in to reply
2 replies to this topic

#1 The_Devil

The_Devil
  • Members
  • 26 posts

Posted 15 July 2011 - 07:03 PM

Is it possible to change Ring Heroe and if so how do i do change so i get isildur instead of galadriel for Men

Edited by The_Devil, 15 July 2011 - 11:31 PM.


#2 TokyoBlade

TokyoBlade

    My Custom Title

  • Members
  • 87 posts

Posted 16 July 2011 - 07:20 AM

You can change ring heroes in the playertemplate.ini file. Look for:

BuildableRingHeroesMP		= ElvenGaladriel_RingHero

You just have to replace "ElvenGaladriel_RingHero" with another hero.

Have you done any coding for Isildur?

Well, let's take another hero as an example - let's say we wanted to make Aragorn a ring hero who starts at level 10 with all his abilities as soon as you spawn him.

First you would have to add this to aragorn.ini (anywhere will do - just put it at the bottom after everything else):

ChildObject GondorAragorn_RingHero GondorAragorn

Behavior = RemoveUpgradeUpgrade ModuleTag_RemoveRing
		TriggeredBy					= Upgrade_MenFaction
		UpgradeToRemove				= Upgrade_RingHero Upgrade_FortressRingHero
		RemoveFromAllPlayerObjects	= Yes
		SuppressEvaEventForRemoval	= Yes 
End

Behavior = CreateObjectDie ModuleTag_DropTheRing
		CreationList = OCL_TheOneRing
	End

Behavior = ExperienceLevelCreate ModuleTag_LevelBonus
		LevelToGrant	= 10
		MPOnly			= No
	End
End

Then in experiencelevels.ini, add this somewhere:

ExperienceLevel GondorAragorn_RingHeroLevel1
TargetNames					= GondorAragorn_RingHero
	RequiredExperience			= 1
	ExperienceAward				= 500
	ExperienceAwardOwnGuysDie	= 0
	Rank						= 10
	Upgrades					= Upgrade_ObjectLevel1 Upgrade_AragornOathbreakers Upgrade_AragornBladeMaster Upgrade_AragornLeadership Upgrade_AragornElendil
        SelectionDecal
		Texture					= decal_hero_good
		Style					= SHADOW_ALPHA_DECAL
		OpacityMin				= 50%
		OpacityMax				= 100%
		MinRadius				= 40
		MaxRadius				= 200
		MaxSelectedUnits		= 40
	End
End

Then you just need to change "ElvenGaladriel_RingHero" to "GondorAragorn_RingHero" in the men faction and that should do the job (don't forget to remove the other Aragorn from BuildableHeroesMP, unless you want 2 Aragorns walking around :p).

Just use this as a guide for when you do your Isildur coding.

If you have any more questions feel free to ask ^_^

Edited by TokyoBlade, 16 July 2011 - 11:12 AM.


#3 The_Devil

The_Devil
  • Members
  • 26 posts

Posted 16 July 2011 - 12:48 PM

ok thx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users