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

Verify if unit has certain Ability

Status
Not open for further replies.
Use integer comparison, and from filter choose: (Level of ABILITY X for (Target of ability bing cast)) Greater than 0.

However, you want to prevent caster for using ability this way use:
  • init
    • Events
      • Unit - A Unit Begins casting the spell
    • Conditions
      • (Ability being cast) Equal to Storm Bolt
    • Actions
      • If (All ocnditions are true) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of ABILITY X for (Target of ability bing cast)) Less or equal to 0
        • Then - Actions
          • Unit - Pause (Triggering unit)
          • Unit - Order (Triggering unit) to Stop
          • Unit - Unpause (Triggering unit)
          • Set tempforce = (PlayerGroup(Triggering player))
          • Game - Display to tempforce message: <your message>
          • Custom script: call DestroyForce(udg_tempforce)
        • Else - Actions
 
Status
Not open for further replies.
Top