Does this have major leaks?

Moon_Raven

New Member
Reaction score
8
Deos this leak?
Code:
Summon Players
    Events
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic3 <gen> for (Picked player) over 0.00 seconds
        Wait 2.00 seconds
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic4 <gen> for (Picked player) over 4.37 seconds
        Wait 4.37 seconds
        Sound - Play LightningBolt1 <gen>
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic5 <gen> for (Picked player) over 14.73 seconds
        Wait 2.73 seconds
        Destructible - Create a Shimmering Portal at (Point(-7681.00, 8576.00)) facing 270.00 with scale 1.00 and variation 0
        Special Effect - Create a special effect at (Position of Circle of Power 0005 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0007 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0003 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0009 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0010 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0004 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0008 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0006 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Sound - Play LightningBolt1 <gen>
        Unit - Create 1 Highlander for Player 1 (Red) at (Position of Circle of Power 0005 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 2 (Blue) at (Position of Circle of Power 0007 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 3 (Teal) at (Position of Circle of Power 0003 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 4 (Purple) at (Position of Circle of Power 0009 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 5 (Yellow) at (Position of Circle of Power 0010 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 6 (Orange) at (Position of Circle of Power 0004 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 7 (Green) at (Position of Circle of Power 0008 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 8 (Pink) at (Position of Circle of Power 0006 <gen>) facing 90.00 degrees
        Set TempDestructible = (Last created destructible)
        Animation - Play TempDestructible's Birth animation
        Wait 11.30 seconds
        Special Effect - Create a special effect at (Point(-7761.00, 8373.00)) using Abilities\Spells\Items\AIil\AIilTarget.mdl
        Special Effect - Create a special effect at (Point(-7591.00, 8373.00)) using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
        Sound - Play MassTeleportTarget <gen>
        Wait 0.50 seconds
        Unit - Create 1 Purple_H for Player 4 (Purple) at (Point(-7761.00, 8373.00)) facing 270.00 degrees
        Set TempUnit = (Last created unit)
        Unit - Change ownership of (Last created unit) to Player 10 (Light Blue) and Retain color
        Unit - Create 1 Moon_Raven for Player 10 (Light Blue) at (Point(-7591.00, 8373.00)) facing 270.00 degrees
        Set TempUnit2 = (Last created unit)
        Wait 3.00 seconds
        Sound - Play Sound_01_CINEMATIC <gen>
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic 6 <gen> for (Picked player) over 0.00 seconds
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic7 <gen> for (Picked player) over 14.00 seconds
        Wait 16.89 seconds
        Animation - Play TempUnit2's Spell animation
        Wait 1.20 seconds
        Special Effect - Create a special effect at (Point(-7761.00, 8373.00)) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
        Special Effect - Create a special effect at (Point(-7591.00, 8373.00)) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
        Sound - Play MassTeleportTarget <gen>
        Wait 0.50 seconds
        Unit - Remove TempUnit from the game
        Unit - Remove TempUnit2 from the game
        Animation - Play TempDestructible's Death animation
        Wait 2.97 seconds
        Custom script:   call RemoveDestructable(udg_TempDestructible)
        Cinematic - Turn cinematic mode Off for (All players)
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply PlayCamera1 <gen> for (Picked player) over 1.50 seconds
        Visibility - Disable TempVisMod1
        Visibility - Disable TempVisMod2
        Destructible - Open City Entrance 0089 <gen>
        Trigger - Run Let the Game Begin <gen> (checking conditions)
        Set Num_of_Players = (Number of players)
If it does(and I guess it does) can you just a few examples how to fix, and I will understand the rest of the same type?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Code:
        Destructible - Create a Shimmering Portal at (Point(-7681.00, 8576.00)) facing 270.00 with scale 1.00 and variation 0
        Special Effect - Create a special effect at (Position of Circle of Power 0005 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0007 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0003 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0009 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0010 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0004 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0008 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Create a special effect at (Position of Circle of Power 0006 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Unit - Create 1 Highlander for Player 1 (Red) at (Position of Circle of Power 0005 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 2 (Blue) at (Position of Circle of Power 0007 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 3 (Teal) at (Position of Circle of Power 0003 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 4 (Purple) at (Position of Circle of Power 0009 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 5 (Yellow) at (Position of Circle of Power 0010 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 6 (Orange) at (Position of Circle of Power 0004 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 7 (Green) at (Position of Circle of Power 0008 <gen>) facing 90.00 degrees
        Unit - Create 1 Highlander for Player 8 (Pink) at (Position of Circle of Power 0006 <gen>) facing 90.00 degrees
        Special Effect - Create a special effect at (Point(-7761.00, 8373.00)) using Abilities\Spells\Items\AIil\AIilTarget.mdl
        Special Effect - Create a special effect at (Point(-7591.00, 8373.00)) using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
        Unit - Create 1 Purple_H for Player 4 (Purple) at (Point(-7761.00, 8373.00)) facing 270.00 degrees
        Unit - Create 1 Moon_Raven for Player 10 (Light Blue) at (Point(-7591.00, 8373.00)) facing 270.00 degrees
All of those actions leak points, you really need to clean them up, since it's that many.

To clean them up, just set them to a point variable, and then use this custom script to destroy the leak:
call RemoveLocation(udg_Your_Point_Variable)
Example:
Trigger:
  • Remove Leaks
    • Events
    • Conditions
    • Actions
      • Set TempPoint = (Position of Circle of Power 0005 &lt;gen&gt;)
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Custom script: call RemoveLocation(udg_TempPoint)
 

Moon_Raven

New Member
Reaction score
8
Can I just put set the location to tempLoc before each action, and then put just one removeLoc at the end like this:
Code:
set TempLoc = Conversion(x,y)
Destructible - Create a Shimmering Portal at TempLoc facing 270.00 with scale 1.00 and variation 0
set TempLoc = PositionofUnit(Circle01)
Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
set TempLoc = positionofUnit(Circle02)
Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Custom Script - call RemoveLoc(TempLoc)

or do I have to Remove the location after eaxh command like this:
Code:
set TempLoc = Conversion(x,y)
Destructible - Create a Shimmering Portal at TempLoc facing 270.00 with scale 1.00 and variation 0
Custom Script - call RemoveLoc(TempLoc)
set TempLoc = PositionofUnit(Circle01)
Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Custom Script - call RemoveLoc(TempLoc)
set TempLoc = positionofUnit(Circle02)
Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Custom Script - call RemoveLoc(TempLoc)
???
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Use the second one, or just set each one into a seperate array, and then in the end, use an integer loop to destroy them all. think your second one is more effecient but not sure :S
 

Moon_Raven

New Member
Reaction score
8
Omg. So are there any leaks left in here???
Code:
Summon Players
    Events
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic3 <gen> for (Picked player) over 0.00 seconds
        Wait 2.00 seconds
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic4 <gen> for (Picked player) over 4.37 seconds
        Wait 4.37 seconds
        Sound - Play LightningBolt1 <gen>
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic5 <gen> for (Picked player) over 14.73 seconds
        Wait 2.73 seconds
        Set TempLoc = (Point(-7681.00, 8576.00))
        Destructible - Create a Shimmering Portal at (Point(-7681.00, 8576.00)) facing 270.00 with scale 1.00 and variation 0
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0005 <gen>)
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0007 <gen>)
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0003 <gen>)
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0009 <gen>)
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0010 <gen>)
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0004 <gen>)
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0008 <gen>)
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0006 <gen>)
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Sound - Play LightningBolt1 <gen>
        Set TempLoc = (Position of Circle of Power 0005 <gen>)
        Unit - Create 1 Highlander for Player 1 (Red) at TempLoc facing 90.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0007 <gen>)
        Unit - Create 1 Highlander for Player 2 (Blue) at TempLoc facing 90.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0003 <gen>)
        Unit - Create 1 Highlander for Player 3 (Teal) at TempLoc facing 90.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0009 <gen>)
        Unit - Create 1 Highlander for Player 4 (Purple) at TempLoc facing 90.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0010 <gen>)
        Unit - Create 1 Highlander for Player 5 (Yellow) at TempLoc facing 90.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0004 <gen>)
        Unit - Create 1 Highlander for Player 6 (Orange) at TempLoc facing 90.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0008 <gen>)
        Unit - Create 1 Highlander for Player 7 (Green) at TempLoc facing 90.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Position of Circle of Power 0006 <gen>)
        Unit - Create 1 Highlander for Player 8 (Pink) at TempLoc facing 90.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempDestructible = (Last created destructible)
        Animation - Play TempDestructible's Birth animation
        Wait 11.30 seconds
        Set TempLoc = (Point(-7761.00, 8373.00))
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\AIil\AIilTarget.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Point(-7591.00, 8373.00))
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Sound - Play MassTeleportTarget <gen>
        Wait 0.50 seconds
        Set TempLoc = (Point(-7761.00, 8373.00))
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\AIil\AIilTarget.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Point(-7761.00, 8373.00))
        Unit - Create 1 Purple_H for Player 4 (Purple) at TempLoc facing 270.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempUnit = (Last created unit)
        Unit - Change ownership of (Last created unit) to Player 10 (Light Blue) and Retain color
        Set TempLoc = (Point(-7591.00, 8373.00))
        Unit - Create 1 Moon_Raven for Player 10 (Light Blue) at TempLoc facing 270.00 degrees
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempUnit2 = (Last created unit)
        Wait 3.00 seconds
        Sound - Play Sound_01_CINEMATIC <gen>
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic 6 <gen> for (Picked player) over 0.00 seconds
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply Cinematic7 <gen> for (Picked player) over 14.00 seconds
        Wait 16.89 seconds
        Animation - Play TempUnit2's Spell animation
        Wait 1.20 seconds
        Set TempLoc = (Point(-7761.00, 8373.00))
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Set TempLoc = (Point(-7591.00, 8373.00))
        Special Effect - Create a special effect at TempLoc using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
        Custom script:   call RemoveLocation(udg_TempLoc)
        Sound - Play MassTeleportTarget <gen>
        Wait 0.50 seconds
        Unit - Remove TempUnit from the game
        Unit - Remove TempUnit2 from the game
        Animation - Play TempDestructible's Death animation
        Wait 2.97 seconds
        Custom script:   call RemoveDestructable(udg_TempDestructible)
        Cinematic - Turn cinematic mode Off for (All players)
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Apply PlayCamera1 <gen> for (Picked player) over 1.50 seconds
        Visibility - Disable TempVisMod1
        Visibility - Disable TempVisMod2
        Destructible - Open City Entrance 0089 <gen>
        Trigger - Run Let the Game Begin <gen> (checking conditions)
or in wc3 tag if it is easier for you:
Trigger:
  • Summon Players
    • Events
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Apply Cinematic3 &lt;gen&gt; for (Picked player) over 0.00 seconds
      • Wait 2.00 seconds
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Apply Cinematic4 &lt;gen&gt; for (Picked player) over 4.37 seconds
      • Wait 4.37 seconds
      • Sound - Play LightningBolt1 &lt;gen&gt;
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Apply Cinematic5 &lt;gen&gt; for (Picked player) over 14.73 seconds
      • Wait 2.73 seconds
      • Set TempLoc = (Point(-7681.00, 8576.00))
      • Destructible - Create a Shimmering Portal at (Point(-7681.00, 8576.00)) facing 270.00 with scale 1.00 and variation 0
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0005 &lt;gen&gt;)
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0007 &lt;gen&gt;)
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0003 &lt;gen&gt;)
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0009 &lt;gen&gt;)
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0010 &lt;gen&gt;)
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0004 &lt;gen&gt;)
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0008 &lt;gen&gt;)
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0006 &lt;gen&gt;)
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Sound - Play LightningBolt1 &lt;gen&gt;
      • Set TempLoc = (Position of Circle of Power 0005 &lt;gen&gt;)
      • Unit - Create 1 Highlander for Player 1 (Red) at TempLoc facing 90.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0007 &lt;gen&gt;)
      • Unit - Create 1 Highlander for Player 2 (Blue) at TempLoc facing 90.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0003 &lt;gen&gt;)
      • Unit - Create 1 Highlander for Player 3 (Teal) at TempLoc facing 90.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0009 &lt;gen&gt;)
      • Unit - Create 1 Highlander for Player 4 (Purple) at TempLoc facing 90.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0010 &lt;gen&gt;)
      • Unit - Create 1 Highlander for Player 5 (Yellow) at TempLoc facing 90.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0004 &lt;gen&gt;)
      • Unit - Create 1 Highlander for Player 6 (Orange) at TempLoc facing 90.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0008 &lt;gen&gt;)
      • Unit - Create 1 Highlander for Player 7 (Green) at TempLoc facing 90.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Position of Circle of Power 0006 &lt;gen&gt;)
      • Unit - Create 1 Highlander for Player 8 (Pink) at TempLoc facing 90.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempDestructible = (Last created destructible)
      • Animation - Play TempDestructible&#039;s Birth animation
      • Wait 11.30 seconds
      • Set TempLoc = (Point(-7761.00, 8373.00))
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\AIil\AIilTarget.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Point(-7591.00, 8373.00))
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Sound - Play MassTeleportTarget &lt;gen&gt;
      • Wait 0.50 seconds
      • Set TempLoc = (Point(-7761.00, 8373.00))
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\AIil\AIilTarget.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Point(-7761.00, 8373.00))
      • Unit - Create 1 Purple_H for Player 4 (Purple) at TempLoc facing 270.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempUnit = (Last created unit)
      • Unit - Change ownership of (Last created unit) to Player 10 (Light Blue) and Retain color
      • Set TempLoc = (Point(-7591.00, 8373.00))
      • Unit - Create 1 Moon_Raven for Player 10 (Light Blue) at TempLoc facing 270.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempUnit2 = (Last created unit)
      • Wait 3.00 seconds
      • Sound - Play Sound_01_CINEMATIC &lt;gen&gt;
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Apply Cinematic 6 &lt;gen&gt; for (Picked player) over 0.00 seconds
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Apply Cinematic7 &lt;gen&gt; for (Picked player) over 14.00 seconds
      • Wait 16.89 seconds
      • Animation - Play TempUnit2&#039;s Spell animation
      • Wait 1.20 seconds
      • Set TempLoc = (Point(-7761.00, 8373.00))
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Set TempLoc = (Point(-7591.00, 8373.00))
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Sound - Play MassTeleportTarget &lt;gen&gt;
      • Wait 0.50 seconds
      • Unit - Remove TempUnit from the game
      • Unit - Remove TempUnit2 from the game
      • Animation - Play TempDestructible&#039;s Death animation
      • Wait 2.97 seconds
      • Custom script: call RemoveDestructable(udg_TempDestructible)
      • Cinematic - Turn cinematic mode Off for (All players)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Apply PlayCamera1 &lt;gen&gt; for (Picked player) over 1.50 seconds
      • Visibility - Disable TempVisMod1
      • Visibility - Disable TempVisMod2
      • Destructible - Open City Entrance 0089 &lt;gen&gt;
      • Trigger - Run Let the Game Begin &lt;gen&gt; (checking conditions)

Omg. TempLoc,TemoLoc,TempLocTemoLoc, I will have nightmares of TempLoc.
Does Playing sounds leak?Changing Camera? Picking Players when I change Camera? If not, I think this trigger is done...
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Nope, well Player Groups leak, but not (All Players);)

Though, paning the camera to a location leaks a point but you don't use that so it's ok :D
 

X-maul

AKA: Demtrod
Reaction score
201
well the only way to do it that way, or maybe you could make it in a loop, but if you dont want it to leak, then you need to do it like that...
 

Moon_Raven

New Member
Reaction score
8
Yeah, I will make that a loop. I'll make the creation of the units and effects a loop. Can I write it in JASS in the custom script text on the map icon in trigger editor I mean a function SummonPlayers and then just put the custom script action in this trigger which does "call SummonPlayers()" ???
EDIT: And speciall effects? I don't see I removed them here, they leak, don't they?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top