• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Need help with triggering

Status
Not open for further replies.
Depends on what the unit group is that your picking the random unit from. If you use pick all units within a certain area, it can be enemy, allied, your own, neutral, etc. Anything you want it to be. On the other hand, you can use pick all units owned by player in a certain area, pick all units of type in a certain area, pick all units of type owned by player in a certain area, etc. It doesn't even need to be in an area. You can pick every single one of the units matching a condition in the whole map if you wanted.
 
Code:
Untitled Trigger 001
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to <Dummy_Ability>
    Actions
        Unit - Create 1 <Dummy_Unit> for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
        Unit - Order (Last created unit) to Human Sorceress - Polymorph (Random unit from (Units in (Region centered at (Position of (Triggering unit)) with size (1024.00, 1024.00)) matching ((Matching unit) Not equal to (Triggering unit))))
        Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
 
Status
Not open for further replies.
Back
Top