Jump to content


Photo

How to make unit give experience when it is killed?


  • Please log in to reply
1 reply to this topic

#1 numan

numan
  • Members
  • 82 posts

Posted 14 November 2017 - 09:23 PM

For exp rohirrims do not provide experience when they are died. How can I fix it?



#2 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 170 posts
  • Location:Sweden
  •  Mapper

Posted 16 January 2018 - 02:04 PM

I don't know if the files look the same in bfme1, but as for bfme2 you'd go into data\ini\experiencelevels.ini where you will find 

#define GOOD_CAVALRY RohanRohirrim RohanRohirrimHorde RohanRohirrimArcher RohanRohirrimArcherHorde RohanRohirrimArcherHordeWedgeFormation GondorCavalry GondorCavalryBanner GondorKnightHorde

and if you scroll down to GoodHorse you will find...

ExperienceLevel	GoodHorseLevel1
	TargetNames     =	GOOD_CAVALRY	;// defined at top of file
	ExperienceAward        =	EXPERIENCE_AWARD_GOOD_HORSE_1	
END

(plus more lines which aren't relevant). So what you can do is either add Rohirrim to the top where GOOD_CAVALRY is defined... or if you don't have that, make a new entry for rohanrohirrim and put RohanRohirrim (if that's the name for it in the bfme1 files) in the TargetNames. If we're talking about the Rohirrim you summon from Spellbook powers I'm not sure how it'd work as those don't have any experience levels... but you could try add in RohanRohirrim_Summoned or whatever the unit is called.

 

When you have done this you can also change the amount of experience they give in gamedata.ini if you wish.


Edited by Jokuc, 16 January 2018 - 02:07 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users