• 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.

[General] Hero Experience Question

Status
Not open for further replies.
Level 4
Joined
Aug 12, 2014
Messages
48
By default, a hero requires 200 XP and if he kills enough units, he gains a level.
XP will show as, 0 / 200 > Kills enough units, gains a level > 200 / 500... and so on.

By default, the same hero then needs 500 XP and if he kills enough units, he gains another level.
XP will show as, 200 / 500 > Kills enough units, gains a level > 500 / 900... and so on.

For my map, I want the XP needed to reset to 0. So it looks like 0 / 200, 0 /500, 0 / 900. I found a trigger on hive that does this:

  • 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
The problem is, the first units you kill do not show up in the experience bar. The counter increases but the visual aspect does not. Not until you kill enough units for the previous amount of XP needed.

If you don't understand, you can see this in the attached map.

How can I fix this / alter this / use a different method / system / change game play constants, etc so that it works?
 

Attachments

  • Level Up.w3x
    17.5 KB · Views: 31
Status
Not open for further replies.
Top