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

Need Trigger: If hero has specific ability.

Status
Not open for further replies.
Level 6
Joined
Jun 11, 2007
Messages
75
For my latest map project, I need to make a trigger that is activated if the triggering hero/unit has a certain spell.

For Example:

Unit-Unit enters region

Condition-Triggering unit know/has "name of ability" (This is the thing i can't find, but i need).

Actions- Do something...

I can't seem to locate this Condition in GUI, but i'm sure it exists in the WE. So can anyone try to create a trigger with this working, or give me the JASS line for it.
 
Level 9
Joined
Oct 11, 2009
Messages
477
DeftheLynn's recommendation is the best solution, because it will check the level of the ability, if it is zero, then the trigger will check the ability as null and also it will not execute the actions.
 
Status
Not open for further replies.
Top