• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] My Neutral Creeps Spawn Trigger not worknig

Status
Not open for further replies.
Level 6
Joined
Jan 27, 2007
Messages
208
  • Neutral Creeps
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Set NeutralCreepsUnitGroup = (Units in NeutralCreepsChecker1 <gen> matching (((Owner of (Matching unit)) Equal to Neutral Hostile) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in NeutralCreepsUnitGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in NeutralCreepsUnitGroup) Equal to 0
            • Then - Actions
              • Set NeutralCreepsPoint = (Center of NeutralCreeps1 <gen>)
              • Unit - Create 3 Dark Troll for Neutral Hostile at NeutralCreepsPoint facing Default building facing degrees
            • Else - Actions
      • Custom script: call RemoveLocation(udg_NeutralCreepsPoint)
      • Custom script: call DestroyGroup(udg_NeutralCreepsUnitGroup)
Where is the problem? It seems okay to me, but every 10 second, that trolls never appear >_>
 
  • Neutral Creeps
  • Events
    • Time - Every 10.00 seconds of game time
  • Conditions
  • Actions
    • Set NeutralCreepsUnitGroup = (Units in NeutralCreepsChecker1 <gen> matching (((Owner of (Matching unit)) Equal to Neutral Hostile) and (((Matching unit) is alive) Equal to True)))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (All units of (NeutralCreepsUnitGroup) are dead) Equal to True // Boolean Comparison
      • Then - Actions
        • Set NeutralCreepsPoint = (Center of NeutralCreeps1 <gen>)
        • Unit - Create 3 Dark Troll for Neutral Hostile at NeutralCreepsPoint facing Default building facing degrees
        • Custom script: call RemoveLocation(udg_NeutralCreepsPoint)
      • Else - Actions
    • Custom script: call DestroyGroup(udg_NeutralCreepsUnitGroup)
It should look like this.
 
Level 6
Joined
Jan 27, 2007
Messages
208
Nope, still not working...

Damn, i confuse....logically, your trigger is okay, but >_>

Lol, fixed..:/

  • Neutral Creeps
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
      • (All units of NeutralCreepsUnitGroup are dead) Equal to True
    • Actions
      • Set NeutralCreepsPoint = (Center of NeutralCreeps1 <gen>)
      • Unit - Create 1 Dark Troll for Neutral Hostile at NeutralCreepsPoint facing Default building facing degrees
      • Unit Group - Add (Last created unit) to NeutralCreepsUnitGroup
      • Unit - Create 1 Dark Troll for Neutral Hostile at NeutralCreepsPoint facing Default building facing degrees
      • Unit Group - Add (Last created unit) to NeutralCreepsUnitGroup
      • Unit - Create 1 Dark Troll for Neutral Hostile at NeutralCreepsPoint facing Default building facing degrees
      • Unit Group - Add (Last created unit) to NeutralCreepsUnitGroup
      • Custom script: call RemoveLocation(udg_NeutralCreepsPoint)
 
Status
Not open for further replies.
Top