Multiple spawning in a smaller trigger?

Julian4life

New Member
Reaction score
7
Can i make it so in one trigger i can cause these 16 spawn points to spawn the monster i want (same one).
Because ill have to make this for 30 separate waves with different monsters, and there is another set of 8 spawn points too.


Example of what i have:

Code:
Low Spawn
    Events
        Map initialization
    Conditions
    Actions
        Wait 60.00 seconds
        For each (Integer A) from 1 to 15, do (Actions)
            Loop - Actions
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn1 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn2 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn3 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn4 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn5 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn6 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn7 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn8 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn9 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn10 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn11 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn12 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn13 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn14 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn15 <gen>) facing Default building facing degrees
                Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of LowCreepSpawn16 <gen>) facing Default building facing degrees
                Wait 5.00 seconds
 

darkbeer

Beer is Good!
Reaction score
84
use variables....

Code:
Events - Map init
Actions - Set SpawnPoint[1] = (Center of LowCreepSpawn1 <gen>)
Set SpawnPoint[2] = (Center of LowCreepSpawn2 <gen>) .....
Set CreepType[1] = Ghoul
Set CreepType[2] = Footman ....
Set Wave = 0

Code:
Low Spawn
Events
Every 60 seconds of game time
Conditions
Actions
set Wave = Wave + 1
For each (THISINTEGER) from 1 to 15, do (Actions)
  Loop - Actions
   -For each (integerA) from 1 to #Number of SpawnPoints# do (Actions)
        Loop Actions
            -Unit - Create 1 CreepType[Wave] for Player 12 (Brown) at SpawnPoint[IntegerA] facing Default building facing degrees
  Wait 5.00 seconds

EDIT: better use an Integer variable for the loop because of the wait.
 

YourFace

<span style="color:#9C9C9C;"><strong>Runner Up - T
Reaction score
91
u can save the regions to an array and do another integer loop
like
point[1]= center of region1
point[2]=center of region2
for ever integer A from 1 to 2 do
loop actions
create monster at pont[integer a]
 

Julian4life

New Member
Reaction score
7
the wait is so it doesnt come too fast.

Dont want tooooo many. lol

(your random post ftw much? lol ._.)
 
J

JaerN

Guest
Help

What should the "Wave" Variable be (set Wave = Wave + 1) im kinda new to variabels:p
 

YourFace

<span style="color:#9C9C9C;"><strong>Runner Up - T
Reaction score
91
this thread was created 2 weeks ago o_O
Wave= integer variable
however darkbeer never uses it so i dont see why you should have 1
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Assuming you're making a TD:
Look here at my TD.
Also, use this guide for making a TD.

This is the spawning system for my TD:
Code:
Variable Initialization
    Events
        Map initialization
    Conditions
    Actions
        Set inGamePlayers = (All players matching ((((Matching player) slot status) Equal to (==) Is playing) and (((Matching player) controller) Equal to (==) User)))
        Set levelCount = 0
        -------- Creep Wave Unit-Type Settings --------
        Set creepArray[1] = Succubus
        Set creepArray[2] = Kobold Tunneler
        Set creepArray[3] = Apprentice Wizard [Fast]
        Set creepArray[4] = Ghost [Intel]
        Set creepArray[5] = Overlord [Boss]
        Set creepArray[6] = Priest [Fast]
        Set creepArray[7] = Unbroken Darkhunter [Regen]
        Set creepArray[8] = Blue Dragonspawn Apprentice [Intel]
        Set creepArray[9] = Spiderling [Fast]
        Set creepArray[10] = Giant Skeleton Warrior [Boss]
        Set creepArray[11] = Ogre Magi
        Set creepArray[12] = Wendigo [Intel, Fast, Evade]
        Set creepArray[13] = Sorceress
        Set creepArray[14] = Voidwalker [Regen]
        Set creepArray[15] = Sea Giant Behemoth [Boss, Fast]
        Set creepArray[16] = Draenei Disciple [Intel]
        Set creepArray[17] = Reef Elemental
        Set creepArray[18] = Revenant of the Seas [Fast]
        Set creepArray[19] = Stormreaver Necrolyte
        Set creepArray[20] = Faceless One Deathbringer [Boss, Intel]
        Set creepArray[21] = Spell Breaker [Regen, Armor]
        Set creepArray[22] = Orc Warlock
        Set creepArray[23] = Kel'Thuzad (Ghost)
        Set creepArray[24] = Militia [Intel, Evade, Armor]
        Set creepArray[25] = Illidan Stormrage
        Set creepArray[26] = Sammy!
        Set creepArray[27] = Goblin Blaster [Armor]
        Set creepArray[28] = Zombie [Intel, Regen]
        Set creepArray[29] = Space Fel Orc
        Set creepArray[30] = Doom Guard [Boss, Armor]
        Set creepArray[31] = Hydralisk
        Set creepArray[32] = Zergling [Intel]
        Set creepArray[33] = Draenei Stalker [Armor]
        Set creepArray[34] = Mur'gul Reaver
        Set creepArray[35] = Magnataur Destroyer [Boss, Regen]
        Set creepArray[36] = Naga Royal Guard [Intel, Evade, Armor]
        Set creepArray[37] = Dire Wolf
        Set creepArray[38] = Satyr Soulstealer
        Set creepArray[39] = Snap Dragon [Armor]
        Set creepArray[40] = Ancient Hydra [Intel, Boss]
        Set creepArray[41] = Furbolg Ursa Warrior
        Set creepArray[42] = Razormane Chieftain [Regen, Armor]
        Set creepArray[43] = Centaur Khan
        Set creepArray[44] = Naga Siren [Intel]
        Set creepArray[45] = Dire Mammoth [Boss, Armor]
        Set creepArray[46] = Infernal Juggernaut
        Set creepArray[47] = Dalaran Mutant
        Set creepArray[48] = Gnoll Overseer [Intel, Evade, Armor]
        Set creepArray[49] = Elder Jungle Stalker [Regen]
        Set creepArray[50] = Kil'jaeden (Cinematic)
        Set creepCount_lastIndex = 50
        Set hostileCreeps = Player 12 (Brown)
        -------- Number Of Spawns --------
        Set creepSpawnCount[1] = 9
        Set creepSpawnCount[2] = 10
        Set creepSpawnCount[3] = 11
        Set creepSpawnCount[4] = 11
        Set creepSpawnCount[5] = 1
        Set creepSpawnCount[6] = 12
        Set creepSpawnCount[7] = 13
        Set creepSpawnCount[8] = 14
        Set creepSpawnCount[9] = 14
        Set creepSpawnCount[10] = 1
        Set creepSpawnCount[11] = 15
        Set creepSpawnCount[12] = 16
        Set creepSpawnCount[13] = 17
        Set creepSpawnCount[14] = 17
        Set creepSpawnCount[15] = 1
        Set creepSpawnCount[16] = 18
        Set creepSpawnCount[17] = 19
        Set creepSpawnCount[18] = 20
        Set creepSpawnCount[19] = 20
        Set creepSpawnCount[20] = 1
        Set creepSpawnCount[21] = 21
        Set creepSpawnCount[22] = 22
        Set creepSpawnCount[23] = 23
        Set creepSpawnCount[24] = 24
        Set creepSpawnCount[25] = 1
        Set creepSpawnCount[26] = 25
        Set creepSpawnCount[27] = 26
        Set creepSpawnCount[28] = 25
        Set creepSpawnCount[29] = 25
        Set creepSpawnCount[30] = 1
        Set creepSpawnCount[31] = 26
        Set creepSpawnCount[32] = 27
        Set creepSpawnCount[33] = 28
        Set creepSpawnCount[34] = 28
        Set creepSpawnCount[35] = 1
        Set creepSpawnCount[36] = 29
        Set creepSpawnCount[37] = 30
        Set creepSpawnCount[38] = 30
        Set creepSpawnCount[39] = 30
        Set creepSpawnCount[40] = 1
        Set creepSpawnCount[41] = 30
        Set creepSpawnCount[42] = 30
        Set creepSpawnCount[43] = 30
        Set creepSpawnCount[44] = 30
        Set creepSpawnCount[45] = 1
        Set creepSpawnCount[46] = 30
        Set creepSpawnCount[47] = 30
        Set creepSpawnCount[48] = 30
        Set creepSpawnCount[49] = 30
        Set creepSpawnCount[50] = 1
        -------- Region Initialization --------
        -------- Player One --------
        Set regionArrayOne[0] = Region SpawnOne <gen>
        Set regionArrayOne[1] = Region OneOne <gen>
        Set regionArrayOne[2] = Region TwoOne <gen>
        Set regionArrayOne[3] = Region ThreeOne <gen>
        Set regionArrayOne[4] = Region CEOne <gen>
        -------- Player Two --------
        Set regionArrayTwo[0] = Region SpawnTwo <gen>
        Set regionArrayTwo[1] = Region OneTwo <gen>
        Set regionArrayTwo[2] = Region TwoTwo <gen>
        Set regionArrayTwo[3] = Region ThreeTwo <gen>
        Set regionArrayTwo[4] = Region CETwo <gen>
        -------- Player Three --------
        Set regionArrayThree[0] = Region SpawnThree <gen>
        Set regionArrayThree[1] = Region OneThree <gen>
        Set regionArrayThree[2] = Region TwoThree <gen>
        Set regionArrayThree[3] = Region ThreeThree <gen>
        Set regionArrayThree[4] = Region CEThree <gen>
        -------- Player Four --------
        Set regionArrayFour[0] = Region SpawnFour <gen>
        Set regionArrayFour[1] = Region OneFour <gen>
        Set regionArrayFour[2] = Region TwoFour <gen>
        Set regionArrayFour[3] = Region ThreeFour <gen>
        Set regionArrayFour[4] = Region CEFour <gen>
        -------- Player Five --------
        Set regionArrayFive[0] = Region SpawnFive <gen>
        Set regionArrayFive[1] = Region OneFive <gen>
        Set regionArrayFive[2] = Region TwoFive <gen>
        Set regionArrayFive[3] = Region ThreeFive <gen>
        Set regionArrayFive[4] = Region CEFive <gen>
        -------- Player Six --------
        Set regionArraySix[0] = Region SpawnSix <gen>
        Set regionArraySix[1] = Region OneSix <gen>
        Set regionArraySix[2] = Region TwoSix <gen>
        Set regionArraySix[3] = Region ThreeSix <gen>
        Set regionArraySix[4] = Region CESix <gen>
        -------- Player Seven --------
        Set regionArraySeven[0] = Region SpawnSeven <gen>
        Set regionArraySeven[1] = Region OneSeven <gen>
        Set regionArraySeven[2] = Region TwoSeven <gen>
        Set regionArraySeven[3] = Region ThreeSeven <gen>
        Set regionArraySeven[4] = Region CESeven <gen>
        -------- Player Eight --------
        Set regionArrayEight[0] = Region SpawnEight <gen>
        Set regionArrayEight[1] = Region OneEight <gen>
        Set regionArrayEight[2] = Region TwoEight <gen>
        Set regionArrayEight[3] = Region ThreeEight <gen>
        Set regionArrayEight[4] = Region CEEight <gen>
Code:
Spawn Creeps
    Events
        Time - creepTimer expires
    Conditions
    Actions
        Countdown Timer - Destroy creepTimerWindow
        For each (Integer A) from 1 to creepSpawnCount[levelCount], do (Actions)
            Loop - Actions
                Wait 0.75 seconds
                Player Group - Pick every player in inGamePlayers and do (Actions)
                    Loop - Actions
                        Set tempPoint = ((Picked player) start location)
                        Unit - Create 1 creepArray[levelCount] for hostileCreeps at tempPoint facing 0.00 degrees
                        Custom script:   call RemoveLocation(udg_tempPoint)
 
J

JaerN

Guest
Why does all my creeps spawn @the same time?

Code:
Untitled Trigger 001
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        Set wave = (wave + 1)
        For each (Integer wave) from 1 to 5, do (Actions)
            Loop - Actions
                For each (Integer A) from 1 to 4, do (Actions)
                    Loop - Actions
                        Unit - Create 1 Creeps[wave] for Player 11 (Dark Green) at (Center of Region 000 <gen>) facing Default building facing degrees
        Wait 5.00 seconds
-------------------------------------------------------------------------
[Code]
spawn
    Events
        Map initialization
    Conditions
    Actions
        Set Creeps[1] = Footman
        Set Creeps[2] = Rifleman
        Set Creeps[3] = Knight
        Set Creeps[4] = Spell Breaker
        Set Creeps[5] = Paladin
        Set Startpoint[1] = Region 000 <gen>
        Set Startpoint[2] = Region 001 <gen>
        Set Startpoint[3] = Region 002 <gen>
        Set Startpoint[4] = Region 003 <gen>
        Set wave = 0
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top