• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Help This out!?

Status
Not open for further replies.
Level 2
Joined
Apr 14, 2008
Messages
17
I can't figure out how to get spawn triggers to work so that it spawn only a limited number of creatures. like when there are 10 units spawned total, to stop spawning.
 
Level 4
Joined
Sep 9, 2004
Messages
112
I think your looking for this condition, but it is zone specific.

  • Unit Spawn
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units in (Playable map area)((Unit-type of (Picked unit)) Equal to Spell Breaker))) Greater than or equal to 15
        • Then - Actions
          • Do nothing
        • Else - Actions
          • Unit - Create 4 Spell Breaker for Neutral Hostile at (Random point in (Playable map area)) facing Default building facing (270.0) degrees
 
Level 4
Joined
Sep 9, 2004
Messages
112
Thats what I figured but I was in a hurry and wasn't that worried.. heres a working version of it :p

  • Creep Spawn
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units of type Spell Breaker)) Greater than or equal to 10
        • Then - Actions
          • Do nothing
        • Else - Actions
          • Unit - Create 4 Spell Breaker for Neutral Hostile at (Random point in (Playable map area)) facing Default building facing (270.0) degrees
 
Status
Not open for further replies.
Top