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

Requesting: Wandering creep respawn system

Status
Not open for further replies.
Level 4
Joined
Jan 11, 2008
Messages
55
Hi, I would like to request a system a creep respawn system, easily adjusted, and with creeps wandering to random points within a region. GUI, Jass, or vjass welcome please make it so it is easily configurable.
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
Here is something that i use in my map to respawn all neutral creeps,pretty small and pretty effective.Hope you find it usefull.
  • Store Position
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Respawn_Time = 180.00
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
        • Loop - Actions
          • Set TempInteger = (TempInteger + 1)
          • Unit - Set the custom value of (Picked unit) to TempInteger
          • Set Creep_Point[TempInteger] = (Position of (Picked unit))
  • Respawn
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Triggering unit)) Equal to Neutral Hostile
      • (Custom value of (Triggering unit)) Greater than 0
    • Actions
      • Custom script: local integer i = GetUnitTypeId(GetTriggerUnit())
      • Custom script: local integer ii = GetUnitUserData(GetTriggerUnit())
      • Wait Respawn_Time game-time seconds
      • Custom script: call SetUnitUserData(CreateUnit(Player(12),i,GetLocationX(udg_Creep_Point[ii]),GetLocationY(udg_Creep_Point[ii]),270),ii)
 
Level 4
Joined
Nov 21, 2008
Messages
109
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in "region" owned by Neutral Hostile)) Equal to 0
Then - Actions
Unit - Create 3 Footman for Neutral Hostile at (Center of "region") facing Default building facing degrees
Else - Actions

---------------

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in "region2" owned by Neutral Hostile)) Equal to 0
Then - Actions
Unit - Create 3 Footwoman for Neutral Hostile at (Center of "region2") facing Default building facing degrees
Else - Actions

---------------

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in "region3" owned by Neutral Hostile)) Equal to 0
Then - Actions
Unit - Create 3 Foothomo for Neutral Hostile at (Center of "region3") facing Default building facing degrees
Else - Actions
 
Status
Not open for further replies.
Top