• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade 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.
Level 11
Joined
Nov 23, 2013
Messages
665
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
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
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+.
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
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.
Top