• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Catch an ability level up

Status
Not open for further replies.
Perhaps you could use a periodic events that checks the current ability level, using a integer condition?

  • Conditions
    • (Level of <Some Ability> for (<Some Hero>)) Equal to X
 
With the event Dane posted, there is the event response Learned Hero Skill. And when the event fires the skill has already been leveled up, so if it was being learned the first time its level will be 1, and it's being leveled up the first time (second click) it will be level 2+.
 
An alternative approach is to make your system recreate the state when levelling up rather than tracking deltas. This means that when you level from level 1 to level 2 you destroy the level 1 state and then create a level 2 state instead. This is useful as you can apply the logic directly if the ability level gets set, eg by trigger, instead of having to iterate through all levels up to the appropriate one.
 
Status
Not open for further replies.
Back
Top