Jump to content


Photo

My BalanceMod


  • Please log in to reply
4 replies to this topic

#1 Yonaz

Yonaz
  • New Members
  • 2 posts

Posted 23 March 2006 - 02:21 PM

Hi all,

after the great help, i decided to register finally. :lol:

My little Mod is coming along nicely.. but i've got a few questions that i could not figure out myself yet.

The Arrow-Volley-Ability of the gondor rangers is a bit too strong for a level1-horde in my opinion. I want to change the unit-level from which on it is available to level 3. I already looked in (all the following in data\ini) commandbutton.ini, commandset.ini, object\goodfaction\units\men\gondorranger.ini, gamedata.ini, specialpower.ini.. actually it looks most promising in the object\goodfaction\hordes\men\menhordes.ini. I already had a quick read in some of the tutorials which have a look at behaviours, but i don't really see a direct link between the level of a unit and its special powers there. I was able to add auto-healing to some monsters.. but it seems a little different for the special powers.

Another thing that i want to change is the corsair. I want to make Heavy Armor available to them.. i think i'm able to do that, but just a quick question: are there any other Files i have to change than armor.ini (or maybe not if i use an existing armor-construct), object\evilfaction\units\mordor\mordorcorsairsofumbar.ini, object\evilfaction\hordes\mordor\mordorhordes.ini and add the appropriate commandbutton to make it work?

Thanks in advance
Jonas

#2 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 23 March 2006 - 02:36 PM

for the first thing you have to edit experiencelevels.ini
the heavy armor thing is fine
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#3 Yonaz

Yonaz
  • New Members
  • 2 posts

Posted 23 March 2006 - 03:43 PM

The experience.ini seems to be just for the hero-exp-levels.. it looks like there's just a generic horde-experience-structure. The dwarven guardians seem to manage their charge-ability with behaviours:
  ;;; NEW DWARVEN CHARGE ABILITY;;;
	Behavior = UnpauseSpecialPowerUpgrade ModuleTag_ChargeUnpause
		SpecialPowerTemplate	  = SpecialAbilityDwarvenCharge
		TriggeredBy				  = Upgrade_ObjectLevel2
	End
	
	Behavior = SpecialPowerModule ModuleTag_ChargeStarter					  
		SpecialPowerTemplate	  = SpecialAbilityDwarvenCharge
		UpdateModuleStartsAttack  = Yes
		StartsPaused			  = Yes
	End
However.. as i am not thaat confident with behaviours.. i couldn't get that to work with the ranger's longshot.. which i tried like this:
	Behavior = OCLSpecialPower ModuleTag_ArrowVolleyEvil
		SpecialPowerTemplate		= SpecialAbilityMenLongShot
		OCL				= OCL_LongShotAbility
		CreateLocation			= CREATE_AT_LOCATION
;UpdateModuleStartsAttack	= No; in the original file this was not commented
		UpdateModuleStartsAttack	  = Yes; NEW
		StartsPaused					= Yes; NEW
		
;// Need to set a model condition (unused by the horde anyway) in order to
;// freeze the horde for the duration of the spell
		SetModelCondition			= ModelConditionState:USER_1
		SetModelConditionTime		= 5.0
		DisableDuringAnimDuration	= Yes
	End

 ; I added this new behaviour (pretty similar to the dwarven one).. but i don't really
 ; know what 'UnpauseSpecialPowerUpgrade' does (i guess the ModuleTag is just the name, right?)
	Behavior = UnpauseSpecialPowerUpgrade ModuleTag_ArrowVolleyUnpause
		SpecialPowerTemplate	  = SpecialAbilityMenLongShot
		TriggeredBy		= Upgrade_ObjectLevel3
	End

EDIT: The problem is, that the ability starts paused.. but doesn't unpause at level 3

Edited by Yonaz, 23 March 2006 - 03:45 PM.


#4 Kelso

Kelso

    BFME Admin

  • Project Team
  • 1,467 posts
  • Projects:Rise of Rome, Rise of Rome 2
  •  AWD and T3A Team Chamber Leader
  • Division:BFME
  • Job:Designer: Rise of Rome 1 and 2

Posted 23 March 2006 - 07:32 PM

You have to make sure that you are granting Upgrade_ObjectLevel3 to the rangers when they reach level 3. This is done via experiencelevels.ini.
Posted Image
Posted Image

#5 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 23 March 2006 - 07:49 PM

yes, check out their experiencelevels.ini
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users