Gameplay Constants - Hero Experience

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
In menu: Advanced / Gameplay constants are a bunch of "Hero XP" entries.
They are used to find out how much experience you get from killing stuff.
And how long it takes to level up.

Nothing excitingly complicated, but it's always good to have some reference around, just in case.


Getting experience from killing enemy Heroes

Hero XP Gained - Hero, Constant factor: 100
Hero XP Gained - Hero, Level factor: 0
Hero XP Gained - Hero, Previous value factor: 1
Hero XP Gained - Hero, Table: 100, 120, 160, 220, 300

If you kill a level 1 Hero, you get 100 experience.
That's the first value in the table.
If you kill a level 2 Hero, you get 120 experience.
The second value in the table.
Until, finally, a level 5 Hero gives 300 experience.

After that, the game runs out of table and uses the other values to continue:

Experience gained = "Previous value" * "Previous value factor" + "Level" * "Level factor" + "Constant factor"

So, killing a level 6 Hero gives:
300 (previous value) * 1 (previous value factor) + 6 (level) * 0 (level factor) + 100 (constant factor)
= 300 * 1 + 6 * 0 + 100
= 300 + 0 + 100
= 400

A level 7 Hero gives
400 * 1 + 7 * 0 + 100
= 400 + 0 + 100
= 500

A level 8 Hero gives 500 * 1 + 8 * 0 + 100 = 600

And so on.


Getting experience from killing enemy units

Hero XP Gained - Normal, Constant factor: 5
Hero XP Gained - Normal, Level factor: 5
Hero XP Gained - Normal, Previous value factor: 1
Hero XP Gained - Normal, Table: 25

Looks familiar, and also works exactly the same.

A level 1 unit gives 25 experience.
That's the first value in the table.

As before, once the game runs out of table, it uses the other values to fill in the blanks:

Experience gained = "Previous value" * "Previous value factor" + "Level" * "Level factor" + "Constant factor"

Experience from killing a level 2 unit:
25 (previous value) * 1 (previous value factor) + 2 (level) * 5 (level factor) + 5 (constant factor)
= 25 * 1 + 2 * 5 + 5
= 25 + 10 + 5
= 40

A level 3 unit gives:
40 * 1 + 3 * 5 + 5
= 40 + 15 + 5
= 60

A level 4 unit gives 60 * 1 + 4 * 5 + 5 = 85

And so on.


Getting experience from killing Creeps

Hero XP Gained - Creep reduction table: 80, 70, 60, 50, 0

If the unit you killed was a Creep, you won't get the full experience from it.
Seems normal, what kind of experience do you expect a level 42 Hero to get from killing a Gnoll by looking at it?

Creep experience depends on the level of the Creep.
And uses the "normal" table and values from above.
After that, the reduction table is applied.
And means:

A level 1 Creep gives 25 experience (as per above).
From those 25, a level 1 Hero will get 80%.
If your Hero is level 2, he'll get 70% of 25.
If your Hero is level 3, he'll get 60% of 25.
If...

The last value in the table is used for all levels after that.

That's also why Creeps don't give experience anymore once you reach level 5.
The table says "0"...

Changing the last value to, for example, 40... and your Hero levels happily every after.
Alternatively, replace the entire table with 100 as only value.
Or 80.
Either way, don't have 0 as last value.


Experience needed to get a new level

Hero XP Required, Constant factor: 0
Hero XP Required, Level factor: 100
Hero XP Required, Previous value factor: 1
Hero XP Required, Table: 200

This set of values determines when your Heroes gain new levels.

As usual, it all starts with the table.
Your Hero gains a level at 200 experience.

After that, the usual formula applies:

Experience required = "Previous value" * "Previous value factor" + "Level" * "Level factor" + "Constant factor"

So, to reach level 3:
200 (previous value) * 1 (previous value factor) + 3 (level) * 100 (level factor) + 0 (constant)
= 200 * 1 + 3 * 100 + 0
= 200 + 300 + 0
= 500

To reach level 4, your Hero needs:
500 * 1 + 4 * 100 + 0
= 500 + 400 + 0
= 900

Level 5: 900 * 1 + 5 * 100 + 0 = 1400

And so on.


Messing around with these values may require a bit of experimentation.
But, at least, you should know how they work.


On a related note, nearby is also an entry called "Hero Maximum Level".
It does what it says, your Hero will never get any higher than that.


Yours,
AceHart
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
YES! Finally! I was hoping you would post this. :p

Now there is a clear tutorial to direct people to when they have this sort of question. (Not to mention a good reference for me when I need to change this stuff. :p )

Though, it should probably go in the tutorial section, no?
 
Reaction score
456
When you've been playing around with world editor, you will know these things. Nevertheless, I haven't ever learned this :p

Thanks Ace :)
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
I forsee that half of the threads in WEH would have a link to this very thread.

I hold this position to sell Ads, start with a 100$ bid.

Anyway, thanks for making this AceHart, hopefully it would cut some unneeded threads. ;)

Edit:
> Though, it should probably go in the tutorial section, no?

As Tom Jones (I think) said once - the fact that you are an Moderator / Admin doesn't mean your resources needn't to be approved by other Moderator / Admin.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> As Tom Jones (I think) said once - the fact that you are an Moderator / Admin doesn't mean your resources needn't to be approved by other Moderator / Admin.

Pft. With AceHart, need we really ask? :p

Fine, I'll move it. No reason it shouldn't be approved.
If there's anything that could be added to improve it, it would be an explanation of all the other Gameplay Constants fields as well.
 

Sim

Forum Administrator
Staff member
Reaction score
534
> If there's anything that could be added to improve it, it would be an explanation of all the other Gameplay Constants fields as well.

Which has technically already been done, but could use an edit ;)
 

Sim

Forum Administrator
Staff member
Reaction score
534
Indeed.

Nice one Ace ;) I fear that part wasn't explained in the other Gameplay Constants tutorial.
 

thewrongvine

The Evolved Panda Commandant
Reaction score
506
Wow, finally I get this right. I was always changing Hero - EXP Gained and thought that was requirement, lol.

Thanks a lot! :thup: +rep
 
T

Trikk

Guest
Great tutorial, explained everything I needed to know about the leveling system in WC3.
 

Vertify

New Member
Reaction score
0
Thank you!

Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! :D
Solved my problems lol.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top