- Joined
- Jun 2, 2009
- Messages
- 1,205
Hello everyone. Here is my issue. My creeps are spawns beyond the limit during the games. Here is the trigger.
Is there any problem with my triggers?
This triggers simply doing that.
You have a region and for example there are 3 Murlocs spawns within region. If someone kills these creatures, they are reviving after 120 seconds.
But they we're stacking in our last match.
-
OrmanSetup
-
Events
- Map initialization
- Conditions
-
Actions
- Set SpawnRegion[1] = NCGrupDevil1 <gen>
- Set SpawnRegion[2] = NCGrupDevil2 <gen>
- Set SpawnRegion[3] = NCGrupDevil3 <gen>
- Set SpawnRegion[4] = NCGrupDevil3 <gen>
- Set SpawnRegion[5] = NCGrupDevil4 <gen>
- Set SpawnRegion[6] = NCGrupDevil5 <gen>
- Set SpawnRegion[7] = NCGrupDevil6 <gen>
- Set SpawnRegion[8] = NCGrupReaper1 <gen>
- Set SpawnRegion[9] = NCGrupReaper2 <gen>
- Set SpawnRegion[10] = NCGrupReaper3 <gen>
- Set SpawnRegion[11] = NCGrupReaper3 <gen>
- Set SpawnRegion[12] = NCGrupReaper4 <gen>
- Set SpawnRegion[13] = NCGrupReaper5 <gen>
- Set SpawnRegion[14] = NCGrupReaper6 <gen>
- Set SpawnUnit[1] = Murloc Flesheater (level 1)
- Set SpawnUnit[2] = Treant (level 2)
- Set SpawnUnit[3] = Mud Golem (level 3)
- Set SpawnUnit[4] = Satyr (level 3)
- Set SpawnUnit[5] = Ghoul (level 5)
- Set SpawnUnit[6] = Sasquatch (level 7)
- Set SpawnUnit[7] = Ogre Lord (level 10)
- Set SpawnUnit[8] = Murloc Flesheater (level 1 REAPER)
- Set SpawnUnit[9] = Treant (level 2 REAPER)
- Set SpawnUnit[10] = Mud Golem (level 3 REAPER)
- Set SpawnUnit[11] = Satyr (level 3 REAPER)
- Set SpawnUnit[12] = Ghoul (level 5 REAPER)
- Set SpawnUnit[13] = Sasquatch (level 7 REAPER)
- Set SpawnUnit[14] = Ogre Lord (level 10 REAPER)
- Set SpawnLimit[1] = 3
- Set SpawnLimit[2] = 3
- Set SpawnLimit[3] = 1
- Set SpawnLimit[4] = 2
- Set SpawnLimit[5] = 3
- Set SpawnLimit[6] = 1
- Set SpawnLimit[7] = 1
- Set SpawnLimit[8] = 3
- Set SpawnLimit[9] = 3
- Set SpawnLimit[10] = 1
- Set SpawnLimit[11] = 2
- Set SpawnLimit[12] = 3
- Set SpawnLimit[13] = 1
- Set SpawnLimit[14] = 1
-
Events
-
OrmanYaratmaReaper
-
Events
- Time - Elapsed game time is 132.00 seconds
- Conditions
-
Actions
- -------- Reaper 1 --------
- Set GeciciNokta = (Center of NCGrupReaper1 <gen>)
- Unit - Create 1 SpawnUnit[8] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Unit - Create 1 SpawnUnit[8] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Unit - Create 1 SpawnUnit[8] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Custom script: call RemoveLocation (udg_GeciciNokta)
- -------- Reaper 2 --------
- Set GeciciNokta = (Center of NCGrupReaper2 <gen>)
- Unit - Create 1 SpawnUnit[9] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Unit - Create 1 SpawnUnit[9] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Unit - Create 1 SpawnUnit[9] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Custom script: call RemoveLocation (udg_GeciciNokta)
- -------- Reaper 3 --------
- Set GeciciNokta = (Center of NCGrupReaper3 <gen>)
- Unit - Create 1 SpawnUnit[10] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Unit - Create 1 SpawnUnit[10] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Unit - Create 1 SpawnUnit[11] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Custom script: call RemoveLocation (udg_GeciciNokta)
- -------- Reaper 4 --------
- Set GeciciNokta = (Center of NCGrupReaper4 <gen>)
- Unit - Create 1 SpawnUnit[12] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Unit - Create 1 SpawnUnit[12] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Unit - Create 1 SpawnUnit[12] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Custom script: call RemoveLocation (udg_GeciciNokta)
- -------- Reaper 5 --------
- Set GeciciNokta = (Center of NCGrupReaper5 <gen>)
- Unit - Create 1 SpawnUnit[13] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Custom script: call RemoveLocation (udg_GeciciNokta)
- -------- Reaper 6 --------
- Set GeciciNokta = (Center of NCGrupReaper6 <gen>)
- Unit - Create 1 SpawnUnit[14] for Neutral Hostile at GeciciNokta facing Default building facing degrees
- Custom script: call RemoveLocation (udg_GeciciNokta)
-
Events
-
OrmanDiritl
-
Events
- Unit - A unit Dies
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[1]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[1] for Neutral Hostile at (Center of SpawnRegion[1]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[2]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[2] for Neutral Hostile at (Center of SpawnRegion[2]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[3]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[3] for Neutral Hostile at (Center of SpawnRegion[3]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[4]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[4] for Neutral Hostile at (Center of SpawnRegion[4]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[5]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[5] for Neutral Hostile at (Center of SpawnRegion[5]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[6]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[6] for Neutral Hostile at (Center of SpawnRegion[6]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[7]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[7] for Neutral Hostile at (Center of SpawnRegion[7]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[8]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[8] for Neutral Hostile at (Center of SpawnRegion[8]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[9]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[9] for Neutral Hostile at (Center of SpawnRegion[9]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[10]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[10] for Neutral Hostile at (Center of SpawnRegion[10]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[11]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[11] for Neutral Hostile at (Center of SpawnRegion[11]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[12]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[12] for Neutral Hostile at (Center of SpawnRegion[12]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[13]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[13] for Neutral Hostile at (Center of SpawnRegion[13]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Dying unit)) Equal to SpawnUnit[14]
-
Then - Actions
- Wait 120.00 seconds
- Unit - Create 1 SpawnUnit[14] for Neutral Hostile at (Center of SpawnRegion[14]) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Is there any problem with my triggers?
This triggers simply doing that.
You have a region and for example there are 3 Murlocs spawns within region. If someone kills these creatures, they are reviving after 120 seconds.
But they we're stacking in our last match.