Xebarsis
New Member
- Reaction score
- 7
I have an item in my game where if a player uses it, I want it to pick a random player and explode all his units. The problem I'm having with this is that I want it to pick a random player that's actually in the game, and make sure it doesn't pick yourself. Here's my trigger that isn't working:
I figured this would do it, but no units are dying at all no matter how many times I use the item. Earlier I placed text within the actions section to make sure that the item was working, and it is.
Code:
The Imploder
Events
Unit - A unit owned by Player 1 (Red) Uses an item
Unit - A unit owned by Player 2 (Blue) Uses an item
Unit - A unit owned by Player 3 (Teal) Uses an item
Unit - A unit owned by Player 4 (Purple) Uses an item
Unit - A unit owned by Player 5 (Yellow) Uses an item
Unit - A unit owned by Player 6 (Orange) Uses an item
Unit - A unit owned by Player 7 (Green) Uses an item
Unit - A unit owned by Player 8 (Pink) Uses an item
Unit - A unit owned by Player 9 (Gray) Uses an item
Unit - A unit owned by Player 10 (Light Blue) Uses an item
Unit - A unit owned by Player 11 (Dark Green) Uses an item
Unit - A unit owned by Player 12 (Brown) Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to The Imploder
Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Random player from (All enemies of (Owner of (Triggering unit))))) and do (Unit - Explode (Picked unit))
I figured this would do it, but no units are dying at all no matter how many times I use the item. Earlier I placed text within the actions section to make sure that the item was working, and it is.