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

[Trigger] all enemys die spawn item question

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
How do i make a trigger so that when ALL enemys in a room die, an item is spawned. Atm i can only really get iot to work for one specific enemy.
 
Level 5
Joined
Jul 11, 2007
Messages
152
If you mean enemys as in units then that's not too complicated:

Unit - A unit dies
Pick all units in [region] and do action
If all units of type - Units owned by player 12 brown equal to not alive
Then Create 1 item at center of region
Else Do Nothing

This is assuming all the enemies are owned by player 12 or else you can add on the other enemies too.

I don't have WE on this computer and if you mean something else I can help you there too.
 
Status
Not open for further replies.
Top