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

Detect how many abilities?

Status
Not open for further replies.
Level 11
Joined
Dec 5, 2009
Messages
846
How can i detect how many abilities a hero has learned?

I want to do something like this but with abilities instead..

  • For each (Integer A) from 1 to 6, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Item carried by (Picked unit) in slot (Integer A)) is owned) Equal to True
        • Then - Actions
          • Set SaveCount = (SaveCount + 1)
          • Set TempItem = (Item carried by (Picked unit) in slot (Integer A))
          • Item - Set the custom value of TempItem to (Player number of (Triggering player))
          • Custom script: set udg_Save[udg_SaveCount] = SaveLoad_Item2Integer( udg_TempItem )
        • Else - Actions
Nevermind about that Custom Script and the SaveCount Check the other things out.

So how to do like this with abilities? :)
 
Status
Not open for further replies.
Top