• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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