• 🏆 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!

Hero Level XP Requirements

Not open for further replies.
Level 5
Apr 1, 2010
I have already found out that you can set the required amount of XP for each level by going into Gameplay Constants and changing this:
Hero Required XP - Table
Simply add integers and you can set each level to whatever.
I need to know this:

When you level your hero, for example, lets say you need 400 XP.
You get 400 XP, and level, then the new requirement is 900 XP. Regularly in Warcraft 3, your experience will look like this when you get the new requirement:
400/900 XP
I want to set the current XP to 0, like in WoW, so you have to work your way from 0 to 900. So when I level I want the hero to look like this: 0/900 XP, not 400/900 XP. How can this be done? I believe using the trigger Hero - Set Experience will make them lose a level by setting to 0, which isn't the goal. +Rep to anyone who can help me figure this out.
View attachment Level Up.w3x

The maths are based on the default Warcraft III's XP gain.

  • Hero - Add (-1 x (((50 x ((Hero level of (Triggering unit)) - 1)) x ((Hero level of (Triggering unit)) - 1)) + (150 x ((Hero level of (Triggering unit)) - 1)))) experience to (Triggering unit), Hide level-up graphics
In the test-map, press Escape; it will level up the hero. You can try killing units, you will realize it works fine.

By the way, I will upload/release a map with useful RPG systems.
Not open for further replies.