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

Random Group Neutral Creeps Reviving

Status
Not open for further replies.
Level 30
Joined
Jan 31, 2010
Messages
3,552
Hi there. For a project I am currently working on, I need a trigger that I tried to create, but failed. The deal with the trigger is:

Every minute, all neutral hostile units on map will revive, ONLY if there is no hero unit nearby them (850 range). But, I want groups. Examples are:
3 x Gnoll Assassins.
2 x Nerubian Warriors, 1 x Nerubian Queen.
2 x Ogre Magi, 1 x Ogre Warlord.

These are examples, just to see how it works. Please, post a test map.
Contributing in here will result in reputation, and special thanks in credits if you helped me.

Status: Incomplete.

 
Level 11
Joined
Jun 20, 2009
Messages
880
Make a region to each creep camp. Then make trigger which checks is there neutral creeps
in that region.

If there isn't, start an timer (Respawn time).

When timer expires, check is there heroes in region. If not, spawn creeps.
If yes, start the timer again
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
Just a question..imagine a situation: Hero attacks creep camp,leaves it's region and kills,for example,half of creeps from that camp (and still fights them). Then time comes for creeps to revive,should the ones who died (half of creeps) revive on their spot or should it only happen when all creeps from particular camp die?
Also,should it be GUI or JASS?
 
Status
Not open for further replies.
Top