• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Spawn System

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.

Spawn System

Created by x-omg-x



- just like in footmen wars!


A kinda simple system i've made. But it might be very useful.
Fully configureable and it contains documention and howto.

All credits goes to X-OMG-X.

Enjoy your new spawn system!

Keywords:
footman, footmen, wars, frenzy, x-omg-x, system, simple, spawn, spawning, unit-type, unit, units, human, orc, undead, nightelf
Contents

Spawn System (Map)

Reviews
19:15, 17th Jun 2010 Hanky: Use loops to shrink your system and also add more possibilities to your system right now it's just too simple. After you have done this message me or one of the other spell moderators.

Moderator

M

Moderator

19:15, 17th Jun 2010
Hanky:
Use loops to shrink your system and also add more possibilities to your system right now it's just too simple. After you have done this message me or one of the other spell moderators.
 
Triggers:

  • SpawnInit
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- System Setup --------
      • -------- Theres not much to say about it. --------
      • -------- --------
      • -------- HumanBuilding is the 3 buildings --------
      • -------- HumanUnit is the 3 spawned units --------
      • Set HumanBuilding[1] = Town Hall
      • Set HumanBuilding[2] = Keep
      • Set HumanBuilding[3] = Castle
      • Set HumanUnit[1] = Footman
      • Set HumanUnit[2] = Knight
      • Set HumanUnit[3] = Gryphon Rider
      • Set OrcBuilding[1] = Great Hall
      • Set OrcBuilding[2] = Stronghold
      • Set OrcBuilding[3] = Fortress
      • Set OrcUnit[1] = Grunt
      • Set OrcUnit[2] = Shaman
      • Set OrcUnit[3] = Wind Rider
      • Set NightElfBuilding[1] = Tree of Life
      • Set NightElfBuilding[2] = Tree of Ages
      • Set NightElfBuilding[3] = Tree of Eternity
      • Set NightElfUnit[1] = Archer
      • Set NightElfUnit[2] = Druid of the Talon (Night Elf Form)
      • Set NightElfUnit[3] = Chimaera
      • Set UndeadBuilding[1] = Necropolis
      • Set UndeadBuilding[2] = Halls of the Dead
      • Set UndeadBuilding[3] = Black Citadel
      • Set UndeadUnit[1] = Ghoul
      • Set UndeadUnit[2] = Banshee
      • Set UndeadUnit[3] = Frost Wyrm
  • SpawnRun
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • -------- -DO NOT TOUCH ANYTHING HERE- --------
      • -------- -DO NOT TOUCH ANYTHING HERE- --------
      • Set SpawnGroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to HumanBuilding[1]) or (((Unit-type of (Matching unit)) Equal to HumanBuilding[2]) or (((Unit-type of (Matching unit)) Equal to HumanBuilding[3]) or (((Unit-type of (Matching unit)
      • Unit Group - Pick every unit in SpawnGroup and do (Actions)
        • Loop - Actions
          • Set UnitType = (Unit-type of (Picked unit))
          • Set Position = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • UnitType Equal to HumanBuilding[1]
            • Then - Actions
              • Unit - Create 1 HumanUnit[1] for (Owner of (Picked unit)) at Position facing Default building facing degrees
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • UnitType Equal to HumanBuilding[2]
                • Then - Actions
                  • Unit - Create 1 HumanUnit[2] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • UnitType Equal to HumanBuilding[3]
                    • Then - Actions
                      • Unit - Create 1 HumanUnit[3] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • UnitType Equal to OrcBuilding[1]
                        • Then - Actions
                          • Unit - Create 1 OrcUnit[1] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • UnitType Equal to OrcBuilding[2]
                            • Then - Actions
                              • Unit - Create 1 OrcUnit[2] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • UnitType Equal to OrcBuilding[3]
                                • Then - Actions
                                  • Unit - Create 1 OrcUnit[3] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • UnitType Equal to NightElfBuilding[1]
                                    • Then - Actions
                                      • Unit - Create 1 NightElfUnit[1] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • UnitType Equal to NightElfBuilding[2]
                                        • Then - Actions
                                          • Unit - Create 1 NightElfUnit[2] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • UnitType Equal to NightElfBuilding[3]
                                            • Then - Actions
                                              • Unit - Create 1 NightElfUnit[3] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                                            • Else - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • UnitType Equal to UndeadBuilding[1]
                                                • Then - Actions
                                                  • Unit - Create 1 UndeadUnit[1] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                                                • Else - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • UnitType Equal to UndeadBuilding[2]
                                                    • Then - Actions
                                                      • Unit - Create 1 UndeadUnit[2] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                                                    • Else - Actions
                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                        • If - Conditions
                                                          • UnitType Equal to UndeadBuilding[3]
                                                        • Then - Actions
                                                          • Unit - Create 1 UndeadUnit[3] for (Owner of (Picked unit)) at Position facing Default building facing degrees
                                                        • Else - Actions
          • Custom script: call RemoveLocation(udg_Position)
      • Custom script: call DestroyGroup(udg_SpawnGroup)
      • -------- -DO NOT TOUCH ANYTHING HERE- --------
      • -------- -DO NOT TOUCH ANYTHING HERE- --------
 
Last edited:
Top