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