• 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.

Need an Exp Table

Status
Not open for further replies.
Level 8
Joined
Feb 20, 2020
Messages
220
Hello guys, how do i make an exp gain table like this in warcraft for when a neutral hostile hero is killed using warcraft constants or maybe some triggers?

5 level lower - 0%
4 level lower - 30%
3 level lower - 50%
2 level lower - 80%
1 level lower - 100%
the same level - 100%
1 level above - 100%
2 level above - 80%
3 level above - 50%
4 level above - 30%
5 level above - 0%
 
Last edited:
Level 15
Joined
Feb 7, 2020
Messages
398
The constants require some tinkering and napkin math to figure out exactly what you want (and if it's possible)

I would check this out: Gameplay Constants - Hero Experience

You would be concerned with how this works:

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

I was able to find out what I wanted in my own hero leveling experience by simply going through the math as I played around with values. It seems harder than it really is.

If that doesn't solve your issue, resort to triggers to award experience and bypass the hardcoded EXP equations.
 
Status
Not open for further replies.
Top