[Help]Creep Spawn Controle

FoxWizzy

New Member
Reaction score
3
so i have a creep spawn sistem on my map. It spawns 4 creeps in 8 places on the map(creep level is based on hero level).
My question is : How do i limit the number of creeps on my map....after some time there ar to many creeps
 

IronTrout

New Member
Reaction score
20
I have a question.. How do you spawn 4 units in 8 places?

But you can, When you create a creep, add that unit into a unit group. If that unit group contains more then say 5934 units, it wont create anymore units. When a unit from that unit group dies, remove that unit from the unit group so that it can only ever contain 5934 units or less.
 

DuelPlayer

Member
Reaction score
21
so i have a creep spawn sistem on my map. It spawns 4 creeps in 8 places on the map(creep level is based on hero level).
My question is : How do i limit the number of creeps on my map....after some time there ar to many creeps

Make a integer variable.
Whenever it spawn a unit, add 1 to the variable.
Then use condition for the integer

If a unit dies, just minus 1 from the variable
 

FoxWizzy

New Member
Reaction score
3
Here is my trigger
Trigger:
  • Spawn
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)


Creep_level is set every time a hero gains a level 'a unit gains a level , set Creep_Level = Creep_Level + 1'
 

DuelPlayer

Member
Reaction score
21
Here is my trigger
Trigger:
  • Spawn
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)
      • Unit - Create 4 (Random level Creep_Level creep unit-type) for Neutral Hostile at (Point(x,y)


Creep_level is set every time a hero gains a level 'a unit gains a level , set Creep_Level = Creep_Level + 1'

Trigger:
  • Spawn
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Spawn_integer Less than Max_Number_of_units_you_want
        • Then - Actions
          • Unit - Create 4 Creep_unit_type for Neutral Passive at (Point(0.00, 0.00)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Spawn_integer Less than Max_Number_of_units_you_want
        • Then - Actions
          • Unit - Create 4 Creep_unit_type for Neutral Passive at (Point(0.00, 0.00)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Spawn_integer Less than Max_Number_of_units_you_want
        • Then - Actions
          • Unit - Create 4 Creep_unit_type for Neutral Passive at (Point(0.00, 0.00)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Spawn_integer Less than Max_Number_of_units_you_want
        • Then - Actions
          • Unit - Create 4 Creep_unit_type for Neutral Passive at (Point(0.00, 0.00)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Spawn_integer Less than Max_Number_of_units_you_want
        • Then - Actions
          • Unit - Create 4 Creep_unit_type for Neutral Passive at (Point(0.00, 0.00)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Spawn_integer Less than Max_Number_of_units_you_want
        • Then - Actions
          • Unit - Create 4 Creep_unit_type for Neutral Passive at (Point(0.00, 0.00)) facing Default building facing degrees
        • Else - Actions

I hope it works
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top