• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Need help with a couple of triggers

Status
Not open for further replies.
Level 3
Joined
Mar 8, 2013
Messages
26
  • Advanced Experimental Attack
    • Events
      • Time - Every 0.09 seconds of game time
    • Conditions
    • Actions
      • Set ZWNO = (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to Player 12 (Brown)) and (((Owner of (Matching unit)) Equal to Player 12 (Brown)) and ((Current order of (Matching unit)) Equal to (Order(none))))))
      • Set HumanPG = (All allies of Player 11 (Dark Green))
      • Set RHU = (Units in (Playable map area) owned by (Random player from HumanPG))
      • Set ADE = (Position of (Random unit from RHU))
      • Unit Group - Pick every unit in ZWNO and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To ADE
      • Custom script: call RemoveLocation(udg_ADE)
      • Custom script: call DestroyForce(udg_HumanPG)
      • Custom script: call DestroyGroup(udg_RHU)
      • Custom script: call DestroyGroup(udg_ZWNO)
Will this trigger leak? It is supposed to cause units of player 12 brown to attack a random ally of player 11 dark green.
 
Status
Not open for further replies.
Top