- Joined
- Feb 3, 2009
- Messages
- 3,291
Hello,how would I go about making all heroes need 500 exp to level up in all levels?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I would trigger it, if I were you, because you can't link the formula of the maximum XP with the formula of the hero's kill in Gameplay Constants.
from http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=68382Experience 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.
Experience required = "Previous value" * "Previous value factor" + "Level" * "Level factor" + "Constant factor"
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
