• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Gameple Constants XP Required Math {formulas}

Status
Not open for further replies.
Level 17
Joined
Jun 12, 2007
Messages
1,261
I have this formula in my head, and I want the Heroes Required XP to be based on it.
However I have no idea how the Gameplay Constants works.
If somebody could tell me where to put what value to make this formula work in the game as required xp?

Formula: 200 x 1.5^level = required xp
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
You know that's a really weird formula, right?
1.5^level is just... not usual. (are you sure it isn't "1.5 x level")?

At level 10, he would need 11.533 xp, right?

Anyhow:
  • Hero XP Required - Constant Factor Adds this amount per level (e.g. +5 XP Req./level)
  • Hero XP Required - Level Factor Information below
  • Hero XP Required - Previous Value Factor Adds the previous value x this value to the XP Req.
  • Hero XP Required - Table Set up your own XP Table

Information Level Factor

I don't really get it myself at the moment, but this is what I've found out:

It adds ((3 x Level Factor) + (Level Factor x Level - 2) to the required XP


Level Factor = 10

Level 1: 200 XP Required (standard)
Level 2: 230 XP required (200 + (3 x Level Factor) + (Level Factor x 0)
Level 3: 270 XP Required (230 + (3 x Level Factor) + (Level Factor x 1)
Level 4: 320 XP Required (270 + (3 x Level Factor) + (Level Factor x 2)


Well, I don't know where the 3 comes from, maybe there's a better formula, but this fits with all values I've tested (1, 2, 5, 10, 50)
Clearly, you need to use the XP Table, there isn't a way to set "level" as an exponent

Good luck anyway, I hope your max level is reasonable ;)
 
Last edited:
Level 11
Joined
Feb 22, 2006
Messages
752
The general formula for the required xp is:

XP REQUIRED = (t+c)*f^(n-2)+(3*l+c)*f^(n-3)+(4*l+c)*f^(n-4)+...+(n*l+c)*f^0

t = table
f = previous level factor
l = level factor
c = constant factor
n = next level (n>=3)

Or if you want it in a summation formula:

(t+c)*f^(n-2) + SUM from k=3 to k=n: (k*l+c)*f^(n-k); n>=3

How to translate that into a geometric sequence...I have no idea.
 
Level 5
Joined
Apr 21, 2006
Messages
82
Experience required = "Previous value" * "Previous value factor" + "Level" * "Level factor" + "Constant factor"
that's the formula what it uses in Gameplay Constants.
I've used Excel where i put the XP required and then create other excel table where is how much exp i get from creeps and count from there, only need to change the 4 numbers and see how the numbers fit in there =P
 
Status
Not open for further replies.
Top