• 🏆 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] Leak or not?

Status
Not open for further replies.
Level 17
Joined
Jan 21, 2010
Messages
2,111
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • Then - Actions
    • Else - Actions
  • Else - Actions
    • Set HA_Dur[HA] = (HA_Dur[HA] 0.05)
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • HA_Order[HA] Equal to (==) 0.75
        • Then - Actions
          • Set HA_Order[HA] = 0.00
          • Animation - Change HA_GhostAgi[HA] flying height to (Random real number between 1.00 and 500.00) at 650.00
          • Animation - Change HA_GhostInt[HA] flying height to (Random real number between 1.00 and 500.00) at 650.00
          • Animation - Change HA_GhostStr[HA] flying height to (Random real number between 1.00 and 500.00) at 650.00
          • Set GlobalPoint[1] = (Position of HA_GhostStr[HA])
          • Set GlobalPoint[2] = (Position of HA_GhostAgi[HA])
          • Set GlobalPoint[3] = (Position of HA_GhostInt[HA])
          • Set GlobalPoint[4] = (Position of HA_Caster[HA])
          • Unit - Order HA_GhostStr[HA] to Move To (Random point in (Region centered at GlobalPoint[4] with size (1200.00, 1200.00)))
          • Unit - Order HA_GhostAgi[HA] to Move To (Random point in (Region centered at GlobalPoint[4] with size (1200.00, 1200.00)))
          • Unit - Order HA_GhostInt[HA] to Move To (Random point in (Region centered at GlobalPoint[4] with size (1200.00, 1200.00)))
          • Custom script: set bj_wantDestroyGroup = true
          • Set GlobalGroup[0] = (Units within 100.00 of GlobalPoint[1] matching ((((Matching unit) is A structure) Equal to (==) False) and ((((Matching unit) is alive) Equal to (==) True) and ((((Matching unit) belongs to an ally of (Owner of HA_Caster[HA])) Equal to (==) False) and (((Mat
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in GlobalGroup[0] and do (Actions)
            • Loop - Actions
              • Unit - Cause HA_GhostStr[HA] to damage (Picked unit), dealing (Real(HA_DamageStr[HA])) damage of attack type Hero and damage type Universal
          • Custom script: set bj_wantDestroyGroup = true
          • Set GlobalGroup[1] = (Units within 100.00 of GlobalPoint[2] matching ((((Matching unit) is A structure) Equal to (==) False) and ((((Matching unit) is alive) Equal to (==) True) and ((((Matching unit) belongs to an ally of (Owner of HA_Caster[HA])) Equal to (==) False) and (((Mat
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in GlobalGroup[1] and do (Actions)
            • Loop - Actions
              • Unit - Cause HA_GhostAgi[HA] to damage (Picked unit), dealing (Real(HA_DamageAgi[HA])) damage of attack type Hero and damage type Universal
          • Custom script: set bj_wantDestroyGroup = true
          • Set GlobalGroup[2] = (Units within 100.00 of GlobalPoint[3] matching ((((Matching unit) is A structure) Equal to (==) False) and ((((Matching unit) is alive) Equal to (==) True) and ((((Matching unit) belongs to an ally of (Owner of HA_Caster[HA])) Equal to (==) False) and (((Mat
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in GlobalGroup[2] and do (Actions)
            • Loop - Actions
              • Unit - Cause HA_GhostInt[HA] to damage (Picked unit), dealing (Real(HA_DamageInt[HA])) damage of attack type Hero and damage type Universal
          • Custom script: call RemoveLocation(udg_GlobalPoint[1])
          • Custom script: call RemoveLocation(udg_GlobalPoint[2])
          • Custom script: call RemoveLocation(udg_GlobalPoint[3])
          • Custom script: call RemoveLocation(udg_GlobalPoint[4])
        • Else - Actions
          • Set HA_Order[HA] = (HA_Order[HA] 0.05)
Need some advice on this
 
You can change every instance of this:

  • Custom script: set bj_wantDestroyGroup = true
  • Set GlobalGroup[2] = (Units within ...
  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in GlobalGroup[2] and do (Actions)
    • Loop - Actions
To:

  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in (Units within ...) and do (Actions)
    • Loop - Actions
It does not appear to leak.
 
Status
Not open for further replies.
Top