• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Get required EXP to reach next hero level.

Status
Not open for further replies.
I am in need of this information so I can tell the player how far he is to reach the next level.

There is a function:
  • Game - Display to (All players) the text: (String((Hero experience of (Triggering unit))))
This will only give me the current EXP of the unit. While I need that as well, I can't seem to figure out how to get the required EXP.

Thoughts?
 
Maybe...

Set integer = GetHeroExperience
Increase HeroLevel by 1 (hide graphics)
Set integer2 = GetHeroExperience - integer
Set HeroLevel = HeroLevel - 1 (hide graphics)

integer2 should be the exp you need to your next level.

Way too much work.
The method Ceday posted is really simple so I'm going with that. It works fine.
 
Status
Not open for further replies.
Back
Top