• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Same exp at all levels

Status
Not open for further replies.
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.
from http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=68382

What should concern you is the quoted formula:
Experience required = "Previous value" * "Previous value factor" + "Level" * "Level factor" + "Constant factor"
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
It isn't for me.

PharaoH: That tutorial says that the "0" can't be at the end of the "Creep Reduction Table", but i don't want my hero lvl 5 to get 1 experience from creeps lvl 1. I want:

Hero lvl 1: Creep lvl 1: 100% /2: 60% /3: 20% /4: 0%
Hero lvl 2: Creep lvl 2: 100% /3: 60% /4: 20% /5: 0%
Etc...

If a hero kills any unit with higher lvl, he can't get more than 100%. exp, but gets less exp from (hero lvl) = (creep lvl)+1.

How can I do this? Making hughe table with values for each level?

EDIT: Maybe this, though exp wouldn't be distributed amongs all players, but only to the killer, though it would be easy to give exp to "All unit in unit group (Units in group (Units in Region Centered at point of (Killing Unit) 700 Width, 700 Height) but can be cheated easily (High level unit killing high level monster with some noobs around, though some complicated math can be added to prevent).
  • Experience
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of (Dying unit)) Equal to ((Level of (Killing unit)) - 1)
        • Then - Actions
          • Hero - Add ((Level of (Dying unit)) x 10) experience to (Killing unit), Show level-up graphics
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of (Dying unit)) Equal to ((Level of (Killing unit)) - 2)
            • Then - Actions
              • Hero - Add ((Level of (Dying unit)) x 6) experience to (Killing unit), Show level-up graphics
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of (Dying unit)) Equal to ((Level of (Killing unit)) - 3)
                • Then - Actions
                  • Hero - Add ((Level of (Dying unit)) x 3) experience to (Killing unit), Show level-up graphics
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of (Dying unit)) Equal to ((Level of (Killing unit)) - 4)
                    • Then - Actions
                      • Hero - Add ((Level of (Dying unit)) x 0) experience to (Killing unit), Show level-up graphics
                    • Else - Actions
Of course, hero constant exp table would have to be set accordingly...

A lvl 1 hero that needs 500 exp to level up, would have to kill 50 lvl 1 creeps.
A lvl 2 hero that needs 1000 exp to level up would have to kill 50 level 2 creeps or (around) 90 Lvl 1 creeps.
A lvl 3... etc...
 
Last edited:
Status
Not open for further replies.
Top