Warcraft III resources & community, 2003–2006 · archived

Creeps respawnings

4 posts
#1

Creeps respawnings

Hi

Ok, I am making a rpg map and creeps that are killed should respawn after 2 minutes at the same position as the dead ones stood from the start. These creeps are in groups of 2-5 units per group and they shall not respawn untill the last one of them is dead.

My idea to this was something like:
event: a unit dies
condition: unit group "creeps[intergerA]" has no living creeps in it
action: Pick every unit in creeps[intergerA] and do actions: Create 1 (unit type of picked unit) at region creepregion[intergerA]

I soon realized that regions couldn´t have integers in them, and as the creeps can follow heroes for a bit it cant be: Create 1 (unit type of picked unit) at position of dying unit.

Need help. How to make this work?

Forgive my bad english.
#2
well

Event-unit dies
confition-units in region x equal to 0
action creat x unit of x type at x location

but you will end up with allot of units if u just chase them out of their region

so work somthing out from this
#3
his right
#4
You could make it like this:

Event-unit dies
confition-unit equal to (put the unit here)
action-wait 2 min, then spawn (same unit) at place of triggering unit

You could also set the condition so all units in group has to be killed first before they spawn.