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

[Solved] Creeps Respawn Problem

Status
Not open for further replies.
Level 3
Joined
Dec 25, 2018
Messages
31
Hi Guys. I created this trigger for creating creeps on jungle areas for my map but creeps respawns but when creeps killed from a unit; they don't respawn again.

Do you know, why creeps don't respawn again? :wscrolleyes:

Here is my triggers; :vw_unimpressed:

System Creep ( Trigger 1)
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Set neutralCreepCamp[1] = Creeps Farm 1 <gen>
Set neutralCreepCamp[2] = Creeps Farm 2 <gen>
Set neutralCreepCamp[3] = Creeps Farm 3 <gen>
Set neutralCreepCamp[4] = Creeps Farm 4 <gen>
Set neutralCreepCamp[5] = Creeps Farm 5 <gen>
Set neutralCreepCamp[6] = Creeps Respawn 6 <gen>
Set neutralCreepCamp[7] = Creeps Respawn 7 <gen>
Set neutralCreepCamp[8] = Creeps Respawn 8 <gen>
Set neutralCreepCamp[9] = Creeps Respawn 9 <gen>
Set neutralCreepCamp[10] = Creeps Respawn 10 <gen>
Set neutralCreepCamp[11] = Creeps Respawn 11 <gen>


Creep Respawn ( Trigger 2)
Events
Time - Elapsed game time is 60.00 seconds
Conditions
Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in neutralCreepCamp[(Integer A)] matching (((Matching unit) is alive) Equal to True))) Equal to 0
Then - Actions
Set chance = (Random integer number between 1 and 4)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
chance Equal to 1
Then - Actions
Unit - Create 2 Ice Troll for Neutral Hostile at (Center of neutralCreepCamp[(Integer A)]) facing Default building facing degrees
Unit - Create 1 Ice Troll Priest for Neutral Hostile at (Center of neutralCreepCamp[(Integer A)]) facing Default building facing degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
chance Equal to 2
Then - Actions
Unit - Create 2 Ice Troll Warlord for Neutral Hostile at (Center of neutralCreepCamp[(Integer A)]) facing Default building facing degrees
Unit - Create 1 Ice Troll High Priest for Neutral Hostile at (Center of neutralCreepCamp[(Integer A)]) facing Default building facing degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
chance Equal to 3
Then - Actions
Unit - Create 2 Ice Troll Berserker for Neutral Hostile at (Center of neutralCreepCamp[(Integer A)]) facing Default building facing degrees
Unit - Create 1 Ice Troll Trapper for Neutral Hostile at (Center of neutralCreepCamp[(Integer A)]) facing Default building facing degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
chance Equal to 4
Then - Actions
Unit - Create 1 Giant Polar Bear for Neutral Hostile at (Center of neutralCreepCamp[(Integer A)]) facing Default building facing degrees
Unit - Create 2 Ice Troll Warlord for Neutral Hostile at (Center of neutralCreepCamp[(Integer A)]) facing Default building facing degrees
Unit - Create 1 Ice Troll High Priest for Neutral Hostile at (Center of neutralCreepCamp[(Integer A)]) facing Default building facing degrees
Else - Actions
Else - Actions
 
Level 3
Joined
Dec 25, 2018
Messages
31
I solved. :wgrin: I changed Time - Elapsed game time is 60.00 seconds to Time-Every 60 seconds of game time.
 
Status
Not open for further replies.
Top