• 🏆 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!

Problem with spawning

Status
Not open for further replies.
Level 6
Joined
May 4, 2012
Messages
187
  • Forest Creep Spawn
    • Events
      • Time - Every 40.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[1])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[1])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[2])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[2])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[3])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[3])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[4])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[4])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[5])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[5])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[6])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[6])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[7])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[7])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[8])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[8])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[9])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[9])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[10])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[10])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[11])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[11])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[12])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[12])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[13])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[13])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[14])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[14])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[15])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[15])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[16])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[16])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[17])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[17])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[18])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[18])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in NEUTRAL_REGION_1[19])) Equal to 0
            • Then - Actions
              • Set CreepPoint = (Center of NEUTRAL_REGION_1[19])
              • Unit - Create 2 NEUTRAL_CREEPS[1] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Unit - Create 1 NEUTRAL_CREEPS[2] for Neutral Hostile at CreepPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_CreepPoint)
            • Else - Actions
      • -------- -------------------------------------------------------- --------
      • -------- -------------------------------------------------------- --------
So, this is the one I suggested on other users... But this time something weird happen to mine... I got everything working, but in a weird way some creeps spawn at the center. To the one who can find it I will give +rep :ogre_haosis:
 
Status
Not open for further replies.
Top