Templarion
Member
- Reaction score
- 8
Here is the first trigger that lists units. Initialization trigger runs it once in the beginning:
Here is the second trigger which spawns orcs:
Everything else works but some spawners don't give a shit about my limits that I have set. In example: Spawner 1 works like a dream but Spawner 8 spawns limitless numbers of orcs.
I simply don't understand what could be wrong?
Code:
InitializeOrcArrays
Events
Conditions
Actions
-------- FILL ORC SPAWNER ARRAY --------
Set OrcsSpawner[1] = Orc Burrow (spawner) 0145 <gen>
Set OrcsSpawner[2] = Spirit Lodge (spawner) 0144 <gen>
Set OrcsSpawner[3] = Orc Burrow (spawner) 0147 <gen>
Set OrcsSpawner[4] = Spirit Lodge (spawner) 0148 <gen>
Set OrcsSpawner[5] = Orc Burrow (spawner) 0149 <gen>
Set OrcsSpawner[6] = Orc Burrow (spawner) 0150 <gen>
Set OrcsSpawner[7] = Orc Burrow (spawner) 0153 <gen>
Set OrcsSpawner[8] = Orc Burrow (spawner) 0153 <gen>
Set OrcsSpawner[9] = Orc Burrow (spawner) 0156 <gen>
Set OrcsSpawner[10] = Spirit Lodge (spawner) 0157 <gen>
Set OrcsSpawner[11] = Spirit Lodge (spawner) 0151 <gen>
-------- FILL ORC UNIT TYPE ARRAY --------
Set OrcsType[1] = Orc Warrior
Set OrcsType[2] = Orc Warlock
Set OrcsType[3] = Orc Warrior
Set OrcsType[4] = Orc Warlock
Set OrcsType[5] = Orc Warrior
Set OrcsType[6] = Orc Warrior
Set OrcsType[7] = Orc Warrior
Set OrcsType[8] = Orc Warrior
Set OrcsType[9] = Orc Warrior
Set OrcsType[10] = Orc Warlock
Set OrcsType[11] = Orc Warlock
-------- SET ORC COUNTER ARRAY --------
Set OrcsCounter[1] = 5
Set OrcsCounter[2] = 2
Set OrcsCounter[3] = 5
Set OrcsCounter[4] = 2
Set OrcsCounter[5] = 4
Set OrcsCounter[6] = 4
Set OrcsCounter[7] = 4
Set OrcsCounter[8] = 4
Set OrcsCounter[9] = 4
Set OrcsCounter[10] = 1
Set OrcsCounter[11] = 4
Here is the second trigger which spawns orcs:
Code:
SpawnOrcs
Events
Time - Every 4.00 seconds of game time
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 OrcsGroup[(Integer A)]) Less than OrcsCounter[(Integer A)]
Then - Actions
Unit - Create 1 OrcsType[(Integer A)] for Neutral Hostile at (Position of OrcsSpawner[(Integer A)]) facing Default building facing degrees
Unit Group - Add (Last created unit) to OrcsGroup[(Integer A)]
Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
Else - Actions
Do nothing
Everything else works but some spawners don't give a shit about my limits that I have set. In example: Spawner 1 works like a dream but Spawner 8 spawns limitless numbers of orcs.
I simply don't understand what could be wrong?