• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Identify melee unit.

Status
Not open for further replies.
Level 14
Joined
Jul 12, 2011
Messages
1,368
Hello everyone.
Here's a question: What could be a condition which could triger an action(e.t.c.) that could identfy that the unit is attacked by only a melee unit?

To be more specific I make a passive spell that will work with 15% chance and only if the unit is attacked by a melee unit. Can anyone show me how this condition should be????
 
  • Melee Counter
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) is A melee attacker) Equal to True
      • (Random integer number between 1 and 100) Less than or equal to 15
    • Actions
      • -------- ACTIONS HERE --------
Boolean Comparison - Unit - Unit Classification Check
Integer Comparison - Math - Random Number
 
Status
Not open for further replies.
Back
Top