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

[Solved] After Hero Levelling have XP reset

Level 5
Joined
Aug 9, 2005
Messages
97
So I have no problem creating a trigger that disables XP gain by a Hero after they level up. However, every time they do, they always have some residual XP. For example to get to level 2 it's 200 XP, but after they level, they always have 220 or 240, I just want it to have 200.

I've tried this and variations of this, but they don't work:
  • Hero Experience
    • Events
      • Unit - Hero <gen> Gains a level
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Hero - Disable experience gain for (Leveling Hero).
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero experience of (Leveling Hero)) Greater than 200
        • Then - Actions
          • Hero - Set (Leveling Hero) experience to 200, Hide level-up graphics
        • Else - Actions
          • Do nothing
 
Back
Top