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

Memory Leak Problem! +rep

Status
Not open for further replies.
Level 7
Joined
Mar 28, 2009
Messages
210
[Solved] Memory Leak Problem! +rep

I added that and have fixed all my leaks BUT, for some weird reason it says it isnt correct...I have been to MANY memory leak tutorials and have used memory leak tools and so i feel liek jass hates me so i would love for someone to help me... There is only about 70 triggers and most of them are pretty much copies of it and are short so...

Thx!

PS: It uses JNGP
 
Last edited:
Level 7
Joined
Mar 28, 2009
Messages
210
here is the triggers...
  • Intialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set MexicoCity = Mexico City 0230 <gen>
      • Set Quebec = Québec 0232 <gen>
      • Set Washington = Washington D.C. 0231 <gen>
      • Unit - Hide MexicoCity
      • Unit - Hide Washington
      • Unit - Hide Quebec
      • Quest - Create a Required quest titled Camera with the description To see far away say..., using icon path ReplaceableTextures\CommandButtons\BTNSell.blp
      • Quest - Create a Required quest titled Rebuilding Cities with the description To rebuild a city, ..., using icon path ReplaceableTextures\CommandButtons\BTNHire.blp
      • Quest - Create a Required quest titled Game with the description The game is quite s..., using icon path ReplaceableTextures\CommandButtons\BTNSell.blp
      • Quest - Create a Optional quest titled Credits with the description Elenai kofi_banan ..., using icon path ReplaceableTextures\CommandButtons\BTNSell.blp
      • Player Group - Pick every player in (All players) and do (Player - Add 300 to (Picked player) Current gold)
      • Player - Set name of Player 1 (Red) to ((Sweden) + (Name of Player 1 (Red)))
      • Player - Set name of Player 2 (Blue) to ((England) + (Name of Player 2 (Blue)))
      • Player - Set name of Player 3 (Teal) to ((Russia) + (Name of Player 3 (Teal)))
      • Player - Set name of Player 4 (Purple) to ((Italy) + (Name of Player 4 (Purple)))
      • Player - Set name of Player 5 (Yellow) to ((France) + (Name of Player 5 (Yellow)))
      • Player - Set name of Player 6 (Orange) to ((Spain) + (Name of Player 6 (Orange)))
      • Player - Set name of Player 7 (Green) to ((Byzantine) + (Name of Player 7 (Green)))
      • Player - Set name of Player 8 (Pink) to ((Poland) + (Name of Player 8 (Pink)))
      • Player - Set name of Player 9 (Gray) to ((Germany) + (Name of Player 9 (Gray)))
      • Game - Display to Player Group - Player 1 (Red) the text: You are Sweden, you...
      • Game - Display to Player Group - Player 2 (Blue) the text: You are Britain, yo...
      • Game - Display to Player Group - Player 3 (Teal) the text: You are Russia, you...
      • Game - Display to Player Group - Player 4 (Purple) the text: You are Italy, you ...
      • Game - Display to Player Group - Player 5 (Yellow) the text: You are France, you...
      • Game - Display to Player Group - Player 6 (Orange) the text: You are Spain, you ...
      • Game - Display to Player Group - Player 7 (Green) the text: You are the Byzanti...
      • Game - Display to Player Group - Player 8 (Pink) the text: You are Poland, so ...
      • Game - Display to Player Group - Player 9 (Gray) the text: You are Germany, yo...
      • Game - Display to (All allies of Player 10 (Light Blue)) the text: You are a zombie ma...
      • Custom script: call DestroyTrigger(GetTriggeringTrigger())
  • Stockholm
    • Events
      • Player - Player 1 (Red) types a chat message containing -rebuild stockholm as An exact match
    • Conditions
      • (Number of units in (Units of type Stockholm)) Equal to 0
      • ((Triggering player) Current gold) Greater than or equal to 10000
    • Actions
      • Set Capitol_ReBuild = (Center of Stockholm <gen>)
      • Unit - Create 1 Stockholm for (Triggering player) at Capitol_ReBuild facing Default building facing degrees
      • Player - Add -10000 to (Triggering player) Current gold
      • Custom script: call RemoveLocation (udg_Capitol_ReBuild)
  • Greek Revolt
    • Events
      • Time - Elapsed game time is 612.00 seconds
    • Conditions
      • (Number of units in (Units of type Athens)) Equal to 1
    • Actions
      • Set Events = (Random point in Greece Revolt <gen>)
      • Unit - Create 6 Cleric for Neutral Hostile at Events facing Default building facing degrees
      • Unit - Create 11 Squad Swordsman for Neutral Hostile at Events facing Default building facing degrees
      • Unit - Create 13 Bandit for Neutral Hostile at Events facing Default building facing degrees
      • Game - Display to (All players) the text: Revolts in Greece h...
      • Custom script: call RemoveLocation (udg_Events)
  • Russia Holy Order
    • Events
      • Time - Elapsed game time is 240.00 seconds
    • Conditions
      • (St. Petersburg 0041 <gen> is alive) Equal to True
    • Actions
      • Set Events = (Position of St. Petersburg 0041 <gen>)
      • Unit - Create 12 Cleric for Player 3 (Teal) at Events facing Default building facing degrees
      • Game - Display to (All players) the text: Members of the Holy...
      • Custom script: call RemoveLocation (udg_Events)

  • Zombie 1
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
              • (Owner of (Killing unit)) Equal to Player 11 (Dark Green)
              • (Owner of (Killing unit)) Equal to Player 12 (Brown)
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Dying unit)) Equal to Player 1 (Red)
              • (Owner of (Dying unit)) Equal to Player 2 (Blue)
              • (Owner of (Dying unit)) Equal to Player 3 (Teal)
              • (Owner of (Dying unit)) Equal to Player 4 (Purple)
              • (Owner of (Dying unit)) Equal to Player 5 (Yellow)
              • (Owner of (Dying unit)) Equal to Player 6 (Orange)
              • (Owner of (Dying unit)) Equal to Player 7 (Green)
              • (Owner of (Dying unit)) Equal to Player 8 (Pink)
              • (Owner of (Dying unit)) Equal to Player 9 (Gray)
    • Actions
      • Set Zombie_Death = (Position of (Dying unit))
      • Unit - Create 1 Zombie for (Owner of (Killing unit)) at Zombie_Death facing Zombie_Death
      • Player - Add 100 to (Owner of (Killing unit)) Current gold
      • Custom script: call RemoveLocation (udg_Zombie_Death)
  • Text Ally
    • Events
      • Player - Player 1 (Red) types a chat message containing -ally as A substring
      • Player - Player 2 (Blue) types a chat message containing -ally as A substring
      • Player - Player 3 (Teal) types a chat message containing -ally as A substring
      • Player - Player 4 (Purple) types a chat message containing -ally as A substring
      • Player - Player 5 (Yellow) types a chat message containing -ally as A substring
      • Player - Player 6 (Orange) types a chat message containing -ally as A substring
      • Player - Player 7 (Green) types a chat message containing -ally as A substring
      • Player - Player 8 (Pink) types a chat message containing -ally as A substring
      • Player - Player 9 (Gray) types a chat message containing -ally as A substring
    • Conditions
    • Actions
      • Set Ally_Player = (Player group((Triggering player)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -ally red
        • Then - Actions
          • Player Group - Make Ally_Player treat Player Group - Player 1 (Red) as an Ally with shared vision
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Entered chat string) Equal to -ally blue
            • Then - Actions
              • Player Group - Make Ally_Player treat Player Group - Player 2 (Blue) as an Ally with shared vision
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Entered chat string) Equal to -ally teal
                • Then - Actions
                  • Player Group - Make Ally_Player treat Player Group - Player 3 (Teal) as an Ally with shared vision
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Entered chat string) Equal to -ally purple
                    • Then - Actions
                      • Player Group - Make Ally_Player treat Player Group - Player 4 (Purple) as an Ally with shared vision
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Entered chat string) Equal to -ally yellow
                        • Then - Actions
                          • Player Group - Make Ally_Player treat Player Group - Player 5 (Yellow) as an Ally with shared vision
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Entered chat string) Equal to -ally orange
                            • Then - Actions
                              • Player Group - Make Ally_Player treat Player Group - Player 6 (Orange) as an Ally with shared vision
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Entered chat string) Equal to -ally orange
                                • Then - Actions
                                  • Player Group - Make Ally_Player treat Player Group - Player 6 (Orange) as an Ally with shared vision
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Entered chat string) Equal to -ally green
                                    • Then - Actions
                                      • Player Group - Make Ally_Player treat Player Group - Player 7 (Green) as an Ally with shared vision
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Entered chat string) Equal to -ally pink
                                        • Then - Actions
                                          • Player Group - Make Ally_Player treat Player Group - Player 8 (Pink) as an Ally with shared vision
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Entered chat string) Equal to -ally gray
                                            • Then - Actions
                                              • Player Group - Make Ally_Player treat Player Group - Player 9 (Gray) as an Ally with shared vision
                                            • Else - Actions
      • Custom script: call DestoryForce (udg_Ally_Player)
  • Income
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • -------- ZOMBIE--------------------------------------------------------- --------
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Pile of Flesh) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 25 to (Owner of (Picked unit)) Current gold
            • Else - Actions
      • -------- LUMBER--------------------------------------------------------- --------
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Lumber Mill) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 100 to (Owner of (Picked unit)) Current lumber
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Efficient Lumber Mill) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 225 to (Owner of (Picked unit)) Current lumber
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Highly Efficient Lumber Mill) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 350 to (Owner of (Picked unit)) Current lumber
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Supremely Efficient Lumber Mill) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 525 to (Owner of (Picked unit)) Current lumber
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Efficiently Effective Lumber Mill) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 850 to (Owner of (Picked unit)) Current lumber
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Extrapolator Lumber Mill) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 1350 to (Owner of (Picked unit)) Current lumber
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Wood Extractor) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 2200 to (Owner of (Picked unit)) Current lumber
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Robotic Wood Extractor) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 3000 to (Owner of (Picked unit)) Current lumber
            • Else - Actions
      • -------- GOLD--------------------------------------------------------- --------
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Market) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 125 to (Owner of (Picked unit)) Current gold
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Spacious Market) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 300 to (Owner of (Picked unit)) Current gold
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Exotic Market) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 500 to (Owner of (Picked unit)) Current gold
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type International Market) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 750 to (Owner of (Picked unit)) Current gold
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Exotic International Market) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 1000 to (Owner of (Picked unit)) Current gold
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Exotic Cultural Market) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 1300 to (Owner of (Picked unit)) Current gold
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Ore Extractor) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 1900 to (Owner of (Picked unit)) Current gold
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units of type Robotic Ore Extractor) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Player - Add 2750 to (Owner of (Picked unit)) Current gold
            • Else - Actions
  • Slash Commands
    • Events
      • Player - Player 1 (Red) types a chat message containing - as A substring
      • Player - Player 2 (Blue) types a chat message containing - as A substring
      • Player - Player 3 (Teal) types a chat message containing - as A substring
      • Player - Player 4 (Purple) types a chat message containing - as A substring
      • Player - Player 5 (Yellow) types a chat message containing - as A substring
      • Player - Player 6 (Orange) types a chat message containing - as A substring
      • Player - Player 7 (Green) types a chat message containing - as A substring
      • Player - Player 8 (Pink) types a chat message containing - as A substring
      • Player - Player 9 (Gray) types a chat message containing - as A substring
      • Player - Player 10 (Light Blue) types a chat message containing - as A substring
      • Player - Player 11 (Dark Green) types a chat message containing - as A substring
      • Player - Player 12 (Brown) types a chat message containing - as A substring
    • Conditions
    • Actions
      • Set Saying_Player = (Player group((Triggering player)))
      • -------- Zoom --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (String((Substring((Entered chat string), 2, 6))) as Lower case) Equal to zoom
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Integer((Substring((Entered chat string), 7, 10)))) Greater than or equal to 1
                  • (Integer((Substring((Entered chat string), 7, 10)))) Less than or equal to 999
            • Then - Actions
              • Camera - Set (Triggering player)'s camera Distance to target to (4.00 x (Real((Substring((Entered chat string), 7, 9))))) over 1.00 seconds
            • Else - Actions
              • Game - Display to Saying_Player the text: |c00FF0101Zoom Erro...
        • Else - Actions
      • -------- Angle --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (String((Substring((Entered chat string), 2, 7))) as Lower case) Equal to angle
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Integer((Substring((Entered chat string), 7, 10)))) Less than or equal to 180
                  • (Integer((Substring((Entered chat string), 7, 10)))) Greater than or equal to 1
            • Then - Actions
              • Camera - Set (Triggering player)'s camera Angle of attack to ((Real((Substring((Entered chat string), 8, 10)))) + 180.00) over 1.00 seconds
            • Else - Actions
              • Game - Display to Saying_Player the text: |c00FF0101Angle Err...
        • Else - Actions
      • -------- Roll --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (String((Substring((Entered chat string), 2, 6))) as Lower case) Equal to roll
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Integer((Substring((Entered chat string), 7, 10)))) Greater than or equal to 1
                  • (Integer((Substring((Entered chat string), 7, 10)))) Less than or equal to 360
            • Then - Actions
              • Camera - Set (Triggering player)'s camera Roll to ((Real((Substring((Entered chat string), 7, 10)))) - 1.00) over 1.00 seconds
            • Else - Actions
              • Game - Display to Saying_Player the text: |c00FF0101Roll Erro...
        • Else - Actions
      • -------- Rotate --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (String((Substring((Entered chat string), 2, 8))) as Lower case) Equal to rotate
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Integer((Substring((Entered chat string), 9, 12)))) Greater than or equal to 1
                  • (Integer((Substring((Entered chat string), 9, 12)))) Less than or equal to 360
            • Then - Actions
              • Camera - Set (Triggering player)'s camera Rotation to ((Real((Substring((Entered chat string), 9, 12)))) + 89.00) over 1.00 seconds
            • Else - Actions
              • Game - Display to Saying_Player the text: |c00FF0101Rotate Er...
        • Else - Actions
      • -------- Height --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (String((Substring((Entered chat string), 2, 8))) as Lower case) Equal to height
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Integer((Substring((Entered chat string), 9, 12)))) Greater than or equal to -400
                  • (Integer((Substring((Entered chat string), 9, 12)))) Less than or equal to 2000
            • Then - Actions
              • Camera - Set (Triggering player)'s camera Height Offset to ((Real((Substring((Entered chat string), 9, 12)))) + 0.00) over 1.00 seconds
            • Else - Actions
              • Game - Display to Saying_Player the text: |c00FF0101Height Er...
        • Else - Actions
      • Custom script: call DestoryForce (udg_Saying_Player)
  • Nuke Death
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Zombie [5]
        • Then - Actions
          • Set Death_Spells = (Position of (Dying unit))
          • Unit - Cause (Dying unit) to damage circular area after 0.50 seconds of radius 600.00 at Death_Spells, dealing 850000.00 damage of attack type Chaos and damage type Universal
          • Special Effect - Create a special effect at Death_Spells using war3mapImported\Nuclear Explosion.mdx
          • Wait 10.00 seconds
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation (udg_Death_Spells)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Nuclear ICBM
        • Then - Actions
          • Set Death_Spells = (Position of (Dying unit))
          • Unit - Cause (Dying unit) to damage circular area after 0.50 seconds of radius 1200.00 at Death_Spells, dealing 850000.00 damage of attack type Chaos and damage type Universal
          • Special Effect - Create a special effect at Death_Spells using war3mapImported\NuclearExplosionHUGE.mdx
          • Wait 10.00 seconds
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation (udg_Death_Spells)
        • Else - Actions
  • Future Death
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Last Resort Attack (Neutral Hostile)
        • Then - Actions
          • Set Death_Spells = (Position of (Triggering unit))
          • Unit - Cause (Triggering unit) to damage circular area after 0.50 seconds of radius 1200.00 at Death_Spells, dealing 850000.00 damage of attack type Chaos and damage type Universal
          • Special Effect - Create a special effect at Death_Spells using war3mapImported\NuclearExplosionHUGE.mdx
          • Wait 10.00 seconds
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation (udg_Death_Spells)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Ability being cast) Equal to Launch Long Range Hydrogen Nuke
              • (Ability being cast) Equal to Launch Short Range Nuke (Neutral Hostile 1)
        • Then - Actions
          • Set NukePoint = (Position of (Triggering unit))
          • Set NukePoint2 = (Target point of ability being cast)
          • Unit - Create 1 Nuclear ICBM for (Owner of (Casting unit)) at NukePoint facing NukePoint2
          • Unit - Turn collision for (Last created unit) Off
          • Unit - Add a ((Distance between NukePoint and NukePoint2) / 500.00) second Generic expiration timer to (Last created unit)
          • Unit - Order (Last created unit) to Move To NukePoint2
          • Custom script: call RemoveLocation (udg_NukePoint)
          • Custom script: call RemoveLocation (udg_NukePoint2)
        • Else - Actions
  • Humans leave Copy
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) leaves the game
      • Player - Player 3 (Teal) leaves the game
      • Player - Player 4 (Purple) leaves the game
      • Player - Player 5 (Yellow) leaves the game
      • Player - Player 6 (Orange) leaves the game
      • Player - Player 7 (Green) leaves the game
      • Player - Player 8 (Pink) leaves the game
      • Player - Player 9 (Gray) leaves the game
    • Conditions
      • ((Triggering player) slot status) Equal to Is playing
    • Actions
      • Game - Display to (All players) the text: ((Name of (Triggering player)) + has deserted Europe..)
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Unit - Change ownership of (Picked unit) to (Random player from (All allies of Player 1 (Red))) and Change color)
  • Zombies leave
    • Events
      • Player - Player 10 (Light Blue) leaves the game
      • Player - Player 11 (Dark Green) leaves the game
      • Player - Player 12 (Brown) leaves the game
    • Conditions
    • Actions
      • Game - Display to (All players) the text: ((Name of (Triggering player)) + has died out...)
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Unit - Change ownership of (Picked unit) to (Random player from (All allies of Player 10 (Light Blue))) and Change color)
  • Kill Zombie
    • Events
      • Player - Player 10 (Light Blue) types a chat message containing -kill as A substring
      • Player - Player 11 (Dark Green) types a chat message containing -kill as A substring
      • Player - Player 12 (Brown) types a chat message containing -kill as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -kill levelone
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Zombie) and do (Unit - Explode (Picked unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -kill leveltwo
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Zombie [2]) and do (Unit - Explode (Picked unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -kill levelthree
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Zombie [3]) and do (Unit - Explode (Picked unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -kill levelfour
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Zombie [4]) and do (Unit - Explode (Picked unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -kill levelfive
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Zombie [5]) and do (Unit - Explode (Picked unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -kill mauler
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Mauler) and do (Unit - Explode (Picked unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -kill gorecrow
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Gore Crow) and do (Unit - Explode (Picked unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -kill stalker
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Stalker) and do (Unit - Explode (Picked unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -kill lumpy
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Lumpy) and do (Unit - Explode (Picked unit))
        • Else - Actions
THX!
 
Level 7
Joined
Mar 28, 2009
Messages
210
Okay I looked at my Syntax Error thingy and it says that there is 14 compile errors...

3 of them say this " Undeclared function DestoryForce"

Ohh and stupid me on the events ones i put Events2 and the variable is Event2
So all i need is to fidn out how to get rid of those dam thingys and they are in the Ally code upabove

Thx!

[EDIT]
omg im such a retard at spelling...i feel like a total retard...all the stuff that didnt work was because of MISSPELLS!!?!?!?! lol *shoots myself*
Thx for helping! +rep
 
Last edited:
Status
Not open for further replies.
Top