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

Illusion and items bonuses

Status
Not open for further replies.
Level 10
Joined
Mar 17, 2012
Messages
582
Hi there! I have a trigger that makes my "Dwarven Hamer" to bash an enemy on each attack.
  • Bash
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) has an item of type Dwarven Hammer) Equal to True
    • Actions
      • Set Basher_Owner = (Attacking unit)
      • Set Basher_Target = (Attacked unit)
      • Set Basher_Owner_Point = (Position of Basher_Owner)
      • Set Basher_Target_Point = (Position of Basher_Target)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to 20
          • (Distance between Basher_Owner_Point and Basher_Target_Point) Less than or equal to 175.00
        • Then - Actions
          • Unit - Create 1 Regular Dummy for (Owner of Basher_Owner) at Basher_Target_Point facing Default building facing degrees
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Unit - Add Bash basher to (Last created unit)
          • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt Basher_Target
        • Else - Actions
      • Custom script: call RemoveLocation (udg_Basher_Owner_Point)
      • Custom script: call RemoveLocation (udg_Basher_Target_Point)
But I also have the Mirror Image spell that creates 3 illusions... When they attack - they also bash an enemy, but I don't want they to do that.
How to make my illusions don't use that item? ITE checking? But what about default warcraft spells in items like Feedback or different orbs?
 
Status
Not open for further replies.
Top