- Joined
- Apr 26, 2008
- Messages
- 830
Does someone see a mistake in this triggers?!
Basically it works but just for the first instance, it just creates the paladin, but it worked before but now it doesn't create the other heroes why is it?!
Basically it works but just for the first instance, it just creates the paladin, but it worked before but now it doesn't create the other heroes why is it?!
-
T1
-
Ereignisse
- Map initialization
- Bedingungen
-
Aktionen
- -------- - --------
- Set SPAWNUnitType[1] = Paladin
- Set SPAWNMaxUnits[1] = 4
- Set SPAWNLocation[1] = (Center of Region 000 <gen>)
- Set LevelMAX[1] = 9
- Set LevelMIN[1] = 4
- -------- - --------
- Set SPAWNUnitType[2] = Blutmagier
- Set SPAWNMaxUnits[2] = 2
- Set SPAWNLocation[2] = (Center of Region 000 <gen>)
- Set LevelMAX[2] = 8
- Set LevelMIN[2] = 2
- -------- - --------
- Set SPAWNUnitType[3] = Bergkönig
- Set SPAWNMaxUnits[3] = 3
- Set SPAWNLocation[3] = (Center of Region 001 <gen>)
- Set LevelMAX[3] = 6
- Set LevelMIN[3] = 3
- -------- - --------
-
Ereignisse
-
T2
-
Ereignisse
- Zeit - Every 5.00 seconds of game time
- Bedingungen
-
Aktionen
-
For each (Integer A) from 1 to 3, do (Actions)
-
Schleifen - Aktionen
- Set SPAWNRegion = (Units owned by Neutral feindlich matching ((((Matching unit) is alive) Gleich True) and ((Unit-type of (Matching unit)) Gleich SPAWNUnitType[(Integer A)])))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- (Number of units in SPAWNRegion) Kleiner als SPAWNMaxUnits[(Integer A)]
-
'THEN'-Aktionen
- Einheit - Create 1 SPAWNUnitType[(Integer A)] for Neutral feindlich at SPAWNLocation[(Integer A)] facing Vorgabe für Gebäude-Ausrichtung degrees
- Set LevelEND[(Integer A)] = (Random integer number between LevelMIN[(Integer A)] and LevelMAX[(Integer A)])
-
For each (Integer A) from 1 to LevelEND[(Integer A)], do (Actions)
-
Schleifen - Aktionen
- Held - Set (Last created unit) Hero-level to ((Hero level of (Last created unit)) + 1), Verbergen level-up graphics
-
Schleifen - Aktionen
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
- Custom script: call DestroyGroup(udg_SPAWNRegion)
-
Schleifen - Aktionen
-
For each (Integer A) from 1 to 3, do (Actions)
-
Ereignisse