HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how does the xp system work?

10-09-2004, 09:50 AM#1
DarkFanatic
i'd like to know how the amount of xp for killing a unit is determined, since there is no object editor value for it. how is it calculated? i saw some calculations in the game constants, which could be it, but i didn't get them.
and do heroes get less xp for killing low lv creeps? e.g. lv1 hero kills a lv 1 creep = 100% xp, lv 3 hero = 30%, lv 5 hero = 0% ?
otherwise i would do it with triggers :)
10-10-2004, 03:26 AM#2
BuRnInSpartan
it's called the object editor
10-10-2004, 05:01 AM#3
Panto
BuRnInSpartan, your post was unhelpful and inappropriate.

DarkFanatic, I unfortunately can't help you, because I don't know the specific equation (although I believe it's available out there somewhere), but I can give you some pointers.

As far as whether a higher-level hero gains less exp from lower level units, I do not believe that is the case. A level 1 unit provides a set amount of experience, but it takes *more* experiences to get from level 2 to level 3 than it does to get from level 1 to level 2. So, the higher level that your hero is, the more level 1 creeps he'd need to kill to level up more.

However, there is another consideration. In gameplay constants, there is a field which allows you to adjust how much % experience a hero gains from *creep-controlled* units. If you find that field, you'll notice that by default, the amount of experience from creeping decreases the higher the level of the hero is, and after level 5 a hero will gain no exp from creeps. You can alter this field to change it to whatever you want, including giving a hero max exp at all levels (just insert a single 100 into the field), or none (insert a 0).

There are other considerations. For example, buildings don't give exp, and summoned units give less than if they weren't summoned. Without finding the exact calculation, it might not be possible to accurately predict how much exp a hero will gain from an encounter without setting it up and trying it out.
10-10-2004, 12:32 PM#4
BuRnInSpartan
it's not my fault he doesn't bother looking in the object editor
10-10-2004, 01:53 PM#5
th15
Burnin, you're still not helping. If Panto contradicts what you say, you'd damned well had better go double check your info before posting.

Dark: I know that the formula has been posted somewhere here before, I took it down somewhere but can't find it. I can tell you what I know off-hand.

"Hero exp required- table" states an explicit exp value required to hit a certain level. The first integer you enter into this field is the exp required for lvl 2, the next integer you add is the value required for lvl 3 and so one. These numbers are not modified by any other hero exp required values. So, you could always manually enter numbers for all the levels your heroes can achieve, but that's not very feasible with more than a few levels.

As for "creep reduction table" this value modifies how much exp a hero gets from creep kills at the corresponding level. What this means is that at level 1, heroes get 80% of creep exp. At lvl 2, heroes get 70% of creep exp. At level 5, heroes get no exp from killing creeps (this is what makes hitting lvl 6 in a melee game such an achievement).
10-10-2004, 01:57 PM#6
BuRnInSpartan
i'm sorry my brother doesn't know our polocies on the forums please forgive him and allow me to give him some teachings
10-11-2004, 11:20 AM#7
DarkFanatic
@burninspartan: no offense taken, but i couldn't find any value in the object editor that sets how much xp a unit gives, if there is, please tell me the name of it.

i knew about the creep reduction table, but i didn't realize that it doesn't just cut off the xp from creeps at lv 5, but instead gives less and less. that might work, but what i'm looking for is (since creeps respawn on my map) that a hero won't be able to hit for example lv 5 by killing lv 1 creeps, but he still needs to get xp from high level creeps.
10-11-2004, 02:31 PM#8
th15
You could increase the amount of exp required per level and the amount of exp gained per creep level drastically.

i.e. if a lvl 1 creep gave 100 exp (never use a value smaller than 100 for EXP, EXP calculations are done as integer calculation so any fractions are lost) and a lvl 1 hero required 500 exp to hit lvl 2 but 3000 exp to hit lvl 3 and lvl 2 creeps gave 500 exp, killing lvl 1 creeps quickly becomes pointless.
10-11-2004, 03:12 PM#9
Guest
I've forgotten how it goes, but trying to remember - it goes something like this.

Lv 1 creeps give the default amount of xp gained, the higher the levels, the more xp (I was sure the rest of the levels are percentage increases from level 1)

What you saw in the game constants where the value was decreasing, that means how much xp you gain after killing creeps and leveling up throught the use of them.
For example
Case one - Say your a level 1 hero, killing a level 1 creep awards you say... 100 xp. By default, I think to get to level 2 it requires 500xp, so you kill 5 creeps and make it to level 2. Now at level 2, you need say 800xp, and you feed yourself on level 1 creeps, but this time, they only award you 75% (75/100xp) of normal, so in other words, you need to kill about 10 level 1 creeps to make it to level 3.
Case two - Say your a level one hero again. This time, you get to level two by killing enemy units, then to get to level 3 you need 800xp again. THIS time, if you go kill level 1 creeps, you only need to get 8 of them since they still provide 100% (100/100xp ; they provide this because your first level was not through the use of creeping).

Im sure you would of noticed that in the constants, you eventually reach 0. That means, after that many levels (how many strings there are in the constants for that section) you eventually stop gaining xp from killing creeps.


Correct me if I am wrong, I'm trying to work off old memory here. I hope that answers SOME of your questions. (I'm sure I'm missing something...)

EDIT: ahhh @$%&#%^*...... Ok I just read your post now.. Well hope this works for anyone who doesn't understand it. (Again, correct me if you want).
01-15-2005, 06:09 PM#10
BuRnInSpartan
whoever gave me the negative rep was really not paying attention at all.... first of all my posts do serve a purpose and second of all i'm teaching my brother who isn't very mature about how to properly work on the forums