HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Creep Respawn

03-25-2006, 09:28 PM#1
Sukul
I'm making a set of creep respawn triggers and I'm having some troubles I've tried plenty of methods for going about it, but none seem to work the way i want: heres my best and latest one-

Trigger:
Creep Spawn 1 Initial
Collapse Events
Time - Elapsed game time is 1.00 seconds
Conditions
Collapse Actions
Unit - Create 1 Blood-Gill Murloc for Neutral Hostile at (Random point in Creep Spawn 1 <gen>) facing Default building facing degrees
Unit - Create 1 Blood-Gill Siren for Neutral Hostile at (Random point in Creep Spawn 1 <gen>) facing Default building facing degrees
Set ccc_Creep_Spawn_1 = (Units in Creep Spawn 1 <gen> owned by Neutral Hostile)

That's for initialization

Creep Spawn 1 Run
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Set ccc_Creep_Spawn_1 = (Units in Creep Spawn 1 <gen> owned by Neutral Hostile)

That is to recognize the variable, in order to prevent overspawning or underspawning.

Trigger:
Creep Spawn 1 Death
Collapse Events
Time - Every 33.00 seconds of game time
Collapse Conditions
(Number of units in ccc_Creep_Spawn_1) Equal to 0
Collapse Actions
Unit - Create 1 Blood-Gill Murloc for Neutral Hostile at (Random point in Creep Spawn 1 <gen>) facing Default building facing degrees
Unit - Create 1 Blood-Gill Siren for Neutral Hostile at (Random point in Creep Spawn 1 <gen>) facing Default building facing degrees

And that is the running trigger. The problem I'm having is that this is a very failuresum system and sometimes it doesnt work. I've searched through about 200 posts, trying to find one on creep respawning, but i havent found any that i want.

What i want is for the same creeps to keep respawining in the same location.