HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

EXP Table

04-03-2007, 07:46 AM#1
Tide-Arc Ephemera
Ok, so here's what I want...

I'd like to know how heroes gain experience from units, and if it isn't too much, a small table to go with it. Say a hero would gain 8 exp for each level a unit has, it'd be nice if you had a small extrapolation like this...

"
Every level on a unit gives 8 experience points, so going from level 1 onward, it would be 8, 16, 24, 32, 40 etc.
"

Thanks for your help in future.
04-03-2007, 11:36 PM#2
wussupallies
Well, you set the experience any unit gives in the object editor, and the you can check the game constants to see the experience gained table and find the % of the it is getting by level.
04-04-2007, 06:05 AM#3
Tide-Arc Ephemera
That's... real... helpful...
04-04-2007, 06:12 AM#4
st33m
From http://wc3campaigns.net/showthread.p...ght=compendium

(Which I said I'd make it all pretty but never did)

Quote:
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
-----Brett Wood
04-04-2007, 06:31 AM#5
Tide-Arc Ephemera
Aahh thanks, that took me a while to figure, but I managed in the end...

Um...

+Rep