Unit/Monster XP

Is is possible to mod a unit / monsters base xp and then have it also rise as it levels?

3,059 views 7 replies
Reply #1 Top

Haven't tried it, I know there's UnitStat_Experience that can set how much you get from killing a certain mob. No idea what happens if you give out more of that unitstat through say a trait for the monster.

Anyway, experience scales naturally with the combatrating of the enemy.

Reply #2 Top

Hmmm the reason for this is the inability to raise the amount of xp a trained unit gets opposed to sov/champs, unless someone solved this and I missed it.

 

On a side note, is there a way to set a trained unit trait to only allow one or the other to be used so I can set up a rudimentary system for weight classes.  In other words minor classes for trained units not as good as henchmen but like a subclass.  Mages already exist, but I want to make it that the mage traits for magic have a -15 weight on them.  Scout has no weight bonuses,  Medium unit has +20 Weight, and heavy unit has +40 weight.  I know we can't use unit tags yet so I am still trying to make the AI use weights by making predefined sub-classes with specific weights then make predefined units for the AI to use.  I can get this to work with armor but damned if I can figure out how to get weapons to work.  Without unitstat tags to force a specific type of weapon to a sub class this is probably not going to work.

Reply #3 Top

There's this in elementaldefs.xml <ExpMultiplierOnDesignedUnits>0.5</ExpMultiplierOnDesignedUnits>

For your second paragraph, I can't think of a good way without resorting to using modeltypes which you'll regret.

Reply #4 Top

I looked at it and it looks like an extensive amount of work.  I might shelve this project for a while until we can get the unitstat tags for prereqs.

Reply #5 Top

On a different note is there a way to set up a system for monsters to get a trait based upon say beast, twisted, dragon and so on to have set increases in attack, defense, and resistances as they level?  Then add it to each so that it makes monsters stronger as they level instead of just adding hit point and accuracy?

Reply #6 Top

No automatic way to do it, you'll have to add the trait yourself but other than that there's nothing stopping you.

Reply #7 Top

Alright, I will tinker with that since it looks like armor and weapons are stuck for the time being.  I will polish what I have made but there is only so much that is possible right now.