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

Status
Not open for further replies.
Level 11
Joined
Mar 30, 2008
Messages
666
Does this trigger leaks?
  • Castle 1
    • Events
      • Unit - Fortress 0068 <gen> Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Castle
      • (Owner of (Triggering unit)) Equal to Player 6 (Orange)
    • Actions
      • Set castle = (All allies of (Owner of (Killing unit)))
      • Game - Display to (All players) for 2.00 seconds the text: Knights have won! V...
      • Wait 2.00 seconds
      • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
      • Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
      • Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
      • Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
      • Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
      • Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
      • Game - Defeat Player 7 (Green) with the message: Defeat!
      • Game - Defeat Player 8 (Pink) with the message: Defeat!
      • Game - Defeat Player 9 (Gray) with the message: Defeat!
      • Game - Defeat Player 10 (Light Blue) with the message: Defeat!
      • Game - Defeat Player 11 (Dark Green) with the message: Defeat!
      • Game - Defeat Player 12 (Brown) with the message: Defeat!
      • Custom script: call DestroyForce( udg_castle )
  • Castle 2
    • Events
      • Unit - Castle 0067 <gen> Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Fortress
      • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
    • Actions
      • Set castle = (All allies of (Owner of (Killing unit)))
      • Game - Display to (All players) for 2.00 seconds the text: Rebels have won! Vi...
      • Wait 2.00 seconds
      • Game - Victory Player 7 (Green) (Show dialogs, Show scores)
      • Game - Victory Player 8 (Pink) (Show dialogs, Show scores)
      • Game - Victory Player 9 (Gray) (Show dialogs, Show scores)
      • Game - Victory Player 10 (Light Blue) (Show dialogs, Show scores)
      • Game - Victory Player 11 (Dark Green) (Show dialogs, Show scores)
      • Game - Victory Player 12 (Brown) (Show dialogs, Show scores)
      • Game - Defeat Player 1 (Red) with the message: Defeat!
      • Game - Defeat Player 2 (Blue) with the message: Defeat!
      • Game - Defeat Player 3 (Teal) with the message: Defeat!
      • Game - Defeat Player 4 (Purple) with the message: Defeat!
      • Game - Defeat Player 5 (Yellow) with the message: Defeat!
      • Game - Defeat Player 6 (Orange) with the message: Defeat!
      • Custom script: call DestroyForce( udg_castle )
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
no it doesnt leak.
You could maybe convert it to custom script and change the Conditions-Function to something easier.
But this would be jass.

Anyways its not important as your game is finsihed after this trigger, so why do you care? ^^

Greets
 
Status
Not open for further replies.
Top