I just downloaded "EZ Spawnsystem", which respawns one creep of the same type of its starting position, if it was killed. I need the trigger to make a Troll-Tribe-map...
I modified the trigger just a bit, but if a creep was killed there spawned some random units. The basic trigger was working well, I think I made a mistake...
But what did I do wrong?
I modified the trigger just a bit, but if a creep was killed there spawned some random units. The basic trigger was working well, I think I made a mistake...
But what did I do wrong?
-
SpawnSystem Initialization
-
Ereignisse
- Map initialization
- Bedingungen
-
Aktionen
- Auslöser - Run SpawnSystem Spawnunit <gen> (checking conditions)
- Wait 1.00 seconds
- Auslöser - Run SpawnSystem Spawnpoint <gen> (checking conditions)
-
Ereignisse
-
SpawnSystem Respawn
-
Ereignisse
- Einheit - A unit owned by Neutral feindlich Stirbt
- Bedingungen
-
Aktionen
- Custom script: local unit udg_SystemSpawn_RespawnUnit
- Custom script: local integer udg_SystemSpawn_RespawnUnitIndex
-
For each (Integer A) from 1 to 67, do (Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- (Dying unit) Gleich SystemSpawn_SpawnUnit[(Integer A)]
-
'THEN'-Aktionen
- Set SystemSpawn_RespawnUnitIndex = (Integer A)
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- SystemSpawn_RespawnUnitIndex Größer als 0
-
'THEN'-Aktionen
- Skip remaining actions
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
- Einheit - Create 1 (Unit-type of (Dying unit)) for Neutral feindlich at ((Center of (Entire map)) offset by (SystemSpawn_SpawnPointX[SystemSpawn_RespawnUnitIndex], SystemSpawn_SpawnPointY[SystemSpawn_RespawnUnitIndex])) facing Vorgabe für Gebäude-Ausrichtung degrees
- Set SystemSpawn_SpawnUnit[SystemSpawn_RespawnUnitIndex] = (Last created unit)
- Set SystemSpawn_RespawnUnit = SystemSpawn_SpawnUnit[SystemSpawn_RespawnUnitIndex]
- Einheit - Hide SystemSpawn_RespawnUnit
- Wait 5.00 seconds
- Einheit - Unhide SystemSpawn_RespawnUnit
-
Ereignisse
-
SpawnSystem Spawnunit
- Ereignisse
- Bedingungen
-
Aktionen
- Set SystemSpawn_SpawnUnit[1] = Wild wolf 0150 <gen>
- Set SystemSpawn_SpawnUnit[2] = Wild wolf 0151 <gen>
- Set SystemSpawn_SpawnUnit[3] = Crab 0152 <gen>
- Set SystemSpawn_SpawnUnit[4] = Crab 0154 <gen>
- Set SystemSpawn_SpawnUnit[5] = Crab 0153 <gen>
- Set SystemSpawn_SpawnUnit[6] = Bear 0121 <gen>
- Set SystemSpawn_SpawnUnit[7] = Wild pig 0133 <gen>
- Set SystemSpawn_SpawnUnit[8] = Bear 0134 <gen>
- Set SystemSpawn_SpawnUnit[9] = Treant 0135 <gen>
- Set SystemSpawn_SpawnUnit[10] = Rabbit 0136 <gen>
- Set SystemSpawn_SpawnUnit[11] = Rabbit 0137 <gen>
- Set SystemSpawn_SpawnUnit[12] = Rabbit 0138 <gen>
- Set SystemSpawn_SpawnUnit[13] = Treant 0141 <gen>
- Set SystemSpawn_SpawnUnit[14] = Treant ancient 0139 <gen>
- Set SystemSpawn_SpawnUnit[15] = Treant 0140 <gen>
- Set SystemSpawn_SpawnUnit[16] = Wild dog 0143 <gen>
- Set SystemSpawn_SpawnUnit[17] = Wild dog 0142 <gen>
- Set SystemSpawn_SpawnUnit[18] = Raccoon 0144 <gen>
- Set SystemSpawn_SpawnUnit[19] = Skink 0145 <gen>
- Set SystemSpawn_SpawnUnit[20] = Skink 0146 <gen>
- Set SystemSpawn_SpawnUnit[21] = Skink 0147 <gen>
- Set SystemSpawn_SpawnUnit[22] = Raccoon 0149 <gen>
- Set SystemSpawn_SpawnUnit[23] = Treant ancient 0158 <gen>
- Set SystemSpawn_SpawnUnit[24] = Treant 0159 <gen>
- Set SystemSpawn_SpawnUnit[25] = Treant 0160 <gen>
- Set SystemSpawn_SpawnUnit[26] = Treant 0161 <gen>
- Set SystemSpawn_SpawnUnit[27] = Treant 0162 <gen>
- Set SystemSpawn_SpawnUnit[28] = Treant 0164 <gen>
- Set SystemSpawn_SpawnUnit[29] = Treant 0163 <gen>
- Set SystemSpawn_SpawnUnit[30] = Treant ancient 0165 <gen>
- Set SystemSpawn_SpawnUnit[31] = Treant 0167 <gen>
- Set SystemSpawn_SpawnUnit[32] = Treant 0166 <gen>
- Set SystemSpawn_SpawnUnit[33] = Treant ancient 0168 <gen>
- Set SystemSpawn_SpawnUnit[34] = Treant 0170 <gen>
- Set SystemSpawn_SpawnUnit[35] = Treant 0169 <gen>
- Set SystemSpawn_SpawnUnit[36] = Piranhia 0171 <gen>
- Set SystemSpawn_SpawnUnit[37] = Piranhia 0172 <gen>
- Set SystemSpawn_SpawnUnit[38] = Piranhia 0173 <gen>
- Set SystemSpawn_SpawnUnit[39] = Piranhia 0174 <gen>
- Set SystemSpawn_SpawnUnit[40] = Piranhia 0177 <gen>
- Set SystemSpawn_SpawnUnit[41] = Piranhia 0176 <gen>
- Set SystemSpawn_SpawnUnit[42] = Piranhia 0175 <gen>
- Set SystemSpawn_SpawnUnit[43] = Fel treant 0178 <gen>
- Set SystemSpawn_SpawnUnit[44] = Fel treant 0179 <gen>
- Set SystemSpawn_SpawnUnit[45] = Fel treant 0181 <gen>
- Set SystemSpawn_SpawnUnit[46] = Fel treant 0180 <gen>
- Set SystemSpawn_SpawnUnit[47] = Treant 0182 <gen>
- Set SystemSpawn_SpawnUnit[48] = Treant 0183 <gen>
- Set SystemSpawn_SpawnUnit[49] = Treant 0186 <gen>
- Set SystemSpawn_SpawnUnit[50] = Treant 0185 <gen>
- Set SystemSpawn_SpawnUnit[51] = Treant ancient 0184 <gen>
- Set SystemSpawn_SpawnUnit[52] = Snake 0188 <gen>
- Set SystemSpawn_SpawnUnit[53] = Treant 0189 <gen>
- Set SystemSpawn_SpawnUnit[54] = Wild wolf 0190 <gen>
- Set SystemSpawn_SpawnUnit[55] = Wild wolf 0191 <gen>
- Set SystemSpawn_SpawnUnit[56] = Treant 0192 <gen>
- Set SystemSpawn_SpawnUnit[57] = Treant 0193 <gen>
- Set SystemSpawn_SpawnUnit[58] = Wild pig 0194 <gen>
- Set SystemSpawn_SpawnUnit[59] = Rabbit 0196 <gen>
- Set SystemSpawn_SpawnUnit[60] = Rabbit 0195 <gen>
- Set SystemSpawn_SpawnUnit[61] = Rabbit 0198 <gen>
- Set SystemSpawn_SpawnUnit[62] = Rabbit 0197 <gen>
- Set SystemSpawn_SpawnUnit[63] = Rabbit 0199 <gen>
- Set SystemSpawn_SpawnUnit[64] = Rabbit 0200 <gen>
- Set SystemSpawn_SpawnUnit[65] = Rabbit 0202 <gen>
- Set SystemSpawn_SpawnUnit[66] = Rabbit 0201 <gen>
- Set SystemSpawn_SpawnUnit[67] = Murloc-hunter 0203 <gen>
-
SpawnSystem Spawnpoint
- Ereignisse
- Bedingungen
-
Aktionen
-
For each (Integer A) from 1 to 67, do (Actions)
-
Schleifen - Aktionen
- Set SystemSpawn_SpawnPointX[(Integer A)] = (X of (Position of SystemSpawn_SpawnUnit[(Integer A)]))
- Set SystemSpawn_SpawnPointY[(Integer A)] = (Y of (Position of SystemSpawn_SpawnUnit[(Integer A)]))
-
Schleifen - Aktionen
-
For each (Integer A) from 1 to 67, do (Actions)
Last edited: