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

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