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

Identify melee unit.

Status
Not open for further replies.
Level 14
Joined
Jul 12, 2011
Messages
1,370
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????
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • 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.
Top