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

[General] Creep Respawn

Status
Not open for further replies.
Level 6
Joined
May 4, 2012
Messages
187
You can use this I think...

  • Init of Creeps
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- -------------------------------------------------------- --------
      • Set NEUTRAL_CREEPS[1] = Anything you would like as a creep.
      • Set NEUTRAL_CREEPS[2] = A partner of the above creep.
      • Set NEUTRAL_CREEPS[3] = A stronger creep.
      • -------- -------------------------------------------------------- --------
      • Set NEUTRAL_REGION_1[1] = Region for Weaker Creep.
      • Set NEUTRAL_REGION_2[1] = Region for Stronger Creep
      • -------- -------------------------------------------------------- --------
  • Creep Spawnzers
    • Events
      • Time - Every 45.00 ([B]Comment[/B] : Change this to your desired amount of time) 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
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Random integer number between 1 and 2) Equal to 1
                • Then - Actions
                  • Set Creep01_Point = (Center of NEUTRAL_REGION_1[1])
                  • Unit - Create 3 NEUTRAL_CREEPS[1] for Neutral Hostile at Creep01_Point facing Default building facing degrees
                  • Custom script: call RemoveLocation(udg_Creep01_Point)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 2) Equal to 2
                    • Then - Actions
                      • Set Creep01_Point = (Center of NEUTRAL_REGION_1[1])
                      • Unit - Create 1 NEUTRAL_CREEPS[1] for Neutral Hostile at Creep01_Point facing Default building facing degrees
                      • Unit - Create 2 NEUTRAL_CREEPS[2] for Neutral Hostile at Creep01_Point facing Default building facing degrees
                      • Custom script: call RemoveLocation(udg_Creep01_Point)
                    • Else - Actions
      • -------- -------------------------------------------------------- --------
      • For each (Integer A) from 3 to 4, 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_2[(Integer A)])) Equal to 0
            • Then - Actions
              • Unit - Create 1 NEUTRAL_CREEPS[3] for Neutral Hostile at (Center of NEUTRAL_REGION_2[(Integer A)]) facing Default building facing degrees
            • Else - Actions
  • Creep CLEAN UP
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Not equal to True
    • Actions
      • Wait 2.50 game-time seconds
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Triggering unit)) Equal to NEUTRAL_CREEPS[(Integer A)]
            • Then - Actions
              • Unit - Remove (Triggering unit) from the game
            • Else - Actions
However I cannot guarantee you that the Last trigger is working EFFICIENTLY, but I think it works... :)

Happy Modding! :thumbs_up:
 
Status
Not open for further replies.
Top