Experience for Creeps and Enemies

  • Thread starter Thread starter Garrett
  • Start date Start date
G

Garrett

Guest
Does anyone know how the Experience gained from Creeps, Heroes, and normal enemy units works? Theres some table of integers in the gameplay constants, but I'm not sure exactly how it works?
 
The four fields being examined are:

Hero XP Gained - Hero, Constant Factor
Hero, Level Factor
Hero, Previous Value Factor
Hero, Table

and from the mouths of the gods (or blizzard as some call them):

Experience Tables 101
---------------------

The overall purpose of these four fields is to define a value of experience for every possible level. The "Table" field does this by simply specifying exactly that, an experience value for each level.

For example:

Hero XP Gained - Hero, Table = 100,120,160,220,300

which means that a hero will receive 100 XP for killing a level 1 hero, 120 XP for killing a level 2 hero, and so forth.

Now then, explicitly setting a value for every single hero level can be tedious and wasteful if you have a lot of hero levels (say, 500). So, the three formula fields are used to calculate all values beyond those in the existing table field.

This formula computes the experience value "f(x)", for level "x", based on the level and previous experience value, as well as a constant:

f(x) = C + L*x + P*f(x-1)

where

C = Constant Factor field
L = Level Factor field
P = Previous Value field

Continuing our example using the Hero XP Gained - Hero fields (C = 100, L = 0, P = 1), the experience gained from killing a level 6 hero would be:

100 + 0*6 + 1*300 = 400

Note that the 300 is the experience for level 5, which comes from the table. For level 7, we get:

100 + 0*7 + 1*400 = 500

and so on. This particular equation is quite simple, it just adds 100 more for every level.

Now we can look at the Hero XP Gained - Normal fields, where

Table = 25 (only one entry!)
C = 5
L = 5
P = 1

and compute

f(1) = 25 (from table)
f(2) = 5 + 5*2 + 1*25 = 40
f(3) = 5 + 5*3 + 1*40 = 60
f(4) = 5 + 5*4 + 1*60 = 85
f(5) = 5 + 5*5 + 1*85 = 115

and so on.


And if I can add to this, the 'creep reduction table' is a universal value on top of whatever XP the hero gets. So for example, if the hero is at level 1, AFTER you calculate the XP from a creep using the above calculations, you then multiply that by 0.80 to get the total experience gained. This is because the first value in the creep reduction table is 80. So as you can see, by the time the hero gets to level 5, he can no longer earn any XP from creeps, because the level 5 value is zero.

And of course, the above example uses the default numbers for the creep reduction table, you are of course free to modify them as you please :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.
  • U Uberplayer:
    Thanks for everything!
  • XXXconanXXX XXXconanXXX:
    And we JUST got a new warcraft 3 campaign after 20 years! Bummer lol. Thanks for building and maintaining such an awesome community over the years TheHelper! Forums like these are definitely a relic of their time, and in its heyday it really was the place to be in its niche. Hopefully the discord community stays active!
  • WildTurkey WildTurkey:
    All the best helper
  • WildTurkey WildTurkey:
    Thanks for what you have done for me and my family
  • WildTurkey WildTurkey:
    I wish you all the best and am saddened to say goodbye
  • The Helper The Helper:
    That is fantastic WildTurkey I am so happy to hear that! Bless you and your family!
  • The Helper The Helper:
    and i dont think I am going to close the site it is just likely to change drastically but I am working on something for the interim still fleshing it out. Most of the forums are going to be gone though and the NUON site and Warcraft sites will probably to to different hosts. I might keep the news forum though :)
    +1
  • The Helper The Helper:
    So I paired down the forums to what is going to be in the interim
  • The Helper The Helper:
    I might also just go for one news forum and make it Headline News only all that sub forum stuff was busy work on my part i think :)
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    I know right
    +1
  • Varine Varine:
    It's been great guys, I appreciate you having kept it up for so long! I feel like this has been a big part of my growing up in life, and I do very much appreciate everything that this forum has been able to give to me. So thank you.
    +2
  • Varine Varine:
    If there's bits still around I am willing to bet I will be, but I honestly wouldn't be too upset if some of my teenager posts were to no longer be around. I was a little fucking problem back then
    +1
  • Varine Varine:
    I'm going on a backpacking trip pretty soon. I've been trying to do it for a few years now and it just couldn't happen. I'll be by myself, and I think it'll be really good for me. My pack is already too heavy so I can't bring alcohol, and that might be a benefit to me. Like had that probation and couldn't drink, but it's a bit different when you can't do something voluntarily versus threat of literal imprisonment
    +1
  • Varine Varine:
    The trail is 40 miles altogether, but I'm planning on cutting cross country a bit because I want to camp on top of this mountain. I'm bringing a little telescope, if there's still a place for it I'll post some pictures when I get back!
    +2
  • jonas jonas:
    honestly there's nothing on that trip that would become better by drinking
  • jonas jonas:
    looking forward to those pictures
  • The Helper The Helper:
    Happy Thursday people! I think I have come up with a new direction for the site. One that will never fizzle out because a game is not popular anymore. I think I am going to try to make TheHelper.net a place that helps people with real stuff as much as it did with game technical support back in the day. Stay tuned...
    +3
  • The Helper The Helper:
    Happy Tuesday!
    +1
  • The Helper The Helper:
    Happy Thursday! Hope everyone has a Fantastic Day!
    +2
  • The Helper The Helper:
    Happy Thursday everyone. I hope everyone has a blessed day!

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top