#1
Need help with triggering
I want to have a trigger which picks 1 random enemy unit in an area of 512 from caster and then let my caster cast a spell on it, but can I just pick a random or does it have to be enemy only?~Flaming
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)