• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Experience Required

Status
Not open for further replies.
Level 11
Joined
Sep 14, 2009
Messages
284
How can I, by only using the values avaible in the "Gameplay Constants", create a formula that will require heroes the following experience:

Level 2: 50
Level 3: 150
Level 4: 300
Level 5: 500
Level 6: 750
Level 7: 1050
Level 8: 1400
...
And so on, up to level 30?

The experience required formula looks like this:
(Previous Value * Previous Value Factor) + (Level * Level Factor) + Constant Factor
 
Level 3
Joined
Jul 15, 2014
Messages
39
to get ur numbers the formula is:
(PREVIOUS_VALUE * 1) + (LEVEL * 50) - 50
So these numbers should work:
prev value fagtor=1
constant fagtor=50
levelfagtor=50

P. S. i matched the formula inside my brain, took me just several iterations, learn some mathematics dud
 
Level 27
Joined
Sep 26, 2009
Messages
2,473
Previous Value - leave as it is
Previous Value Factor - set it to 1
Level Factor - set to 50
Constant Factor - try to set that to -50

Formula: (Prev.Value * Prev.Value Factor) + (Lvl * Lvl Factor) + Constant Factor
Level 3: (50 * 1) + (3 * 50) + (-50) => 50 + 150 - 50 = 150
Level 4: (150 * 1) + (4 * 50) + (-50) => 150 + 200 - 50 = 300
Level 5: (300 * 1) + (5 * 50) + (-50) => 300 + 250 - 50 => 500
etc.



to get ur numbers the formula is (which i just matched with several iterations in my brain):
PREVIOUS_VALUE + (LEVEL - 1) * 50 = PREVIOUS_VALUE + LEVEL*50 - 50
So these numbers should work:
prev value fagtor=1
constant fagtor=50
levelfagtor=50
afaik you can't change the calculation. You add an arithmetic function to the Level field, but iirc that window only allows numbers, not arithmetic functions.
 
Level 3
Joined
Jul 15, 2014
Messages
39
afaik you can't change the calculation. You add an arithmetic function to the Level field, but iirc that window only allows numbers, not arithmetic functions.
damn, u already quoted me, but i didnt change any calculations there since the formulas i typed were equal to the existing one. And i gave right values for the existing formula there

oh no wait i forgot to include minus sign once, damit again
 
Status
Not open for further replies.
Top