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

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