- Joined
- Jul 12, 2010
- Messages
- 1,737
Hello everybody, I'm working on the UI of my map and my goal is to create a StatusBar that displays hp/mana/exp
so I far I successfully made it work like this:
After that I made a third bar to show the exp of the unit.
My problem is that I want to make the exp bar show the percentage(%) of the hero's exp, not integers.
The Picture above is how I want the bar to be, the 50% value was manually entered.
But I can't find any lines that can fetch that. For Health/Mana you just use:
Another Idea I had was to get current exp and exp needed for level up and do the math to find the % but that still doesn't work because:
Is the only hero exp line I could find..
For Health/Mana you have these:
But AGAIN nothing for Hero EXP...It might just be me because I'm barely beginning to understand coding but I even searched GUI for hero % exp triggers and found nothing...
So yeah eventually I got annoyed and gave up so I came here in hope that somebody knows something and can help with my problem >_>
+rep to anybody that can help
so I far I successfully made it work like this:
After that I made a third bar to show the exp of the unit.
My problem is that I want to make the exp bar show the percentage(%) of the hero's exp, not integers.
The Picture above is how I want the bar to be, the 50% value was manually entered.
But I can't find any lines that can fetch that. For Health/Mana you just use:
JASS:
GetUnitLifePercent
GetUnitManaPercent
JASS:
GetHeroXP
Is the only hero exp line I could find..
For Health/Mana you have these:
JASS:
BlzGetUnitMaxHP
BlzGetUnitMaxMana
So yeah eventually I got annoyed and gave up so I came here in hope that somebody knows something and can help with my problem >_>
+rep to anybody that can help
