- Joined
- May 22, 2006
- Messages
- 14
I made a cool looking and effective unit selection trigger, but as my map grew, I realized that I needed a repick trigger. I tried several triggers but I think I'm in way over my head so I come to you guys.
So this is my class selection trigger (or 108 triggers to be exact...)
Events:
Unit - A unit owned by Player 1 (Red) Acquires an item
Conditions:
(Item-type of (Item being manipulated)) Equal to |cffffcc00Scout|r
Actions:
Item - Remove (Item being manipulated)
Unit - Explode (Triggering unit)
Unit - Create 1 Scout for (Owner of (Triggering unit)) at (Center of Red Spawn <gen>) facing 0.00 degrees
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Red Spawn <gen>) over 2.00 seconds
Special Effect - Create a special effect at (Center of Red Spawn <gen>) using Abilities\Spells\Human\ReviveHuman\ReviveHuman.mdl
--------------------------------------------------------------------
But as you might guess, this isnt as simple as a unit-enters-region and no matter what I've tried I can't seem to make it work. What I want is a trigger that waits 25 seconds after map start (I have a little intro), then the player types "-repick", all units that that player owns die, and another unit is spawned in the region next to the shop. Any help on this is welcome and thanks for solving my past questions
-Nine.
So this is my class selection trigger (or 108 triggers to be exact...)
Events:
Unit - A unit owned by Player 1 (Red) Acquires an item
Conditions:
(Item-type of (Item being manipulated)) Equal to |cffffcc00Scout|r
Actions:
Item - Remove (Item being manipulated)
Unit - Explode (Triggering unit)
Unit - Create 1 Scout for (Owner of (Triggering unit)) at (Center of Red Spawn <gen>) facing 0.00 degrees
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Red Spawn <gen>) over 2.00 seconds
Special Effect - Create a special effect at (Center of Red Spawn <gen>) using Abilities\Spells\Human\ReviveHuman\ReviveHuman.mdl
--------------------------------------------------------------------
But as you might guess, this isnt as simple as a unit-enters-region and no matter what I've tried I can't seem to make it work. What I want is a trigger that waits 25 seconds after map start (I have a little intro), then the player types "-repick", all units that that player owns die, and another unit is spawned in the region next to the shop. Any help on this is welcome and thanks for solving my past questions
-Nine.