• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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