• 🏆 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] Multiboard Problems

Status
Not open for further replies.
Level 6
Joined
Jan 3, 2010
Messages
185
Okay so When an enemy dies It is supposed to Add one to your kill count in the multiboard but instead it adds one to everyones kills same deal with deaths -- it also only shows one players name and color on the multiboard although i suspect that could be another trigger


  • Marine Death
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Marine
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to (Owner of (Dying unit))
        • Then - Actions
          • Game - Display to (All players) for 5.00 seconds the text: ((ColorPlayer[(Player number of (Owner of (Killing unit)))] + (Name of (Owner of (Killing unit)))) + |r killed himself.)
        • Else - Actions
          • Game - Display to (All players) for 5.00 seconds the text: ((ColorPlayer[(Player number of (Owner of (Killing unit)))] + (Name of (Owner of (Killing unit)))) + (|r killed + (ColorPlayer[(Player number of (Owner of (Dying unit)))] + (Name of (Owner of (Dying unit))))))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Killing unit)) Not equal to RC-XD
              • (Unit-type of (Killing unit)) Not equal to Napalm Bomb
              • (Unit-type of (Killing unit)) Not equal to Napalm (3)
              • (Unit-type of (Killing unit)) Not equal to Napalm (2)
              • (Unit-type of (Killing unit)) Not equal to Napalm (1)
            • Then - Actions
              • Player - Add 1 to (Owner of (Killing unit)) Current lumber
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Killing unit)) Current lumber) Equal to 3
                  • (Number of living Spy Plane (Unit) units owned by (Owner of (Killing unit))) Greater than or equal to 1
                • Then - Actions
                  • Unit - Create 1 Killstreak (Spy Plane) for (Owner of (Killing unit)) at (Center of Region 016 <gen>) facing Default building facing degrees
                  • Unit - Add Killstreak Sight Range to (Last created unit)
                  • Hero - Set (Last created unit) Hero-level to 3, Hide level-up graphics
                  • Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: |cffffff00Spy Plane...
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Killing unit)) Current lumber) Equal to 3
                  • (Number of living RC-XD (Unit) units owned by (Owner of (Killing unit))) Greater than or equal to 1
                • Then - Actions
                  • Unit - Create 1 Killstreak (RC-XD) for (Owner of (Killing unit)) at (Center of Region 016 <gen>) facing Default building facing degrees
                  • Unit - Add Killstreak Sight Range to (Last created unit)
                  • Hero - Set (Last created unit) Hero-level to 3, Hide level-up graphics
                  • Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: |cffffff00RC-XD rea...
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Killing unit)) Current lumber) Equal to 4
                  • (Number of living Sam Turret (Unit) units owned by (Owner of (Killing unit))) Greater than or equal to 1
                • Then - Actions
                  • Unit - Create 1 Killstreak (Sam Turret) for (Owner of (Killing unit)) at (Center of Region 016 <gen>) facing Default building facing degrees
                  • Unit - Add Killstreak Sight Range to (Last created unit)
                  • Hero - Set (Last created unit) Hero-level to 4, Hide level-up graphics
                  • Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: |cffffff00Sam Turre...
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Killing unit)) Current lumber) Equal to 5
                  • (Number of living Napalm Strike (Unit) units owned by (Owner of (Killing unit))) Greater than or equal to 1
                • Then - Actions
                  • Unit - Create 1 Killstreak (Napalm Strike) for (Owner of (Killing unit)) at (Center of Region 016 <gen>) facing Default building facing degrees
                  • Unit - Add Killstreak Sight Range to (Last created unit)
                  • Hero - Set (Last created unit) Hero-level to 5, Hide level-up graphics
                  • Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: |cffffff00Napalm St...
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Killing unit)) Current lumber) Equal to 6
                  • (Number of living Sentry Gun (Unit) units owned by (Owner of (Killing unit))) Greater than or equal to 1
                • Then - Actions
                  • Unit - Create 1 Killstreak (Sentry Gun) for (Owner of (Killing unit)) at (Center of Region 016 <gen>) facing Default building facing degrees
                  • Unit - Add Killstreak Sight Range to (Last created unit)
                  • Hero - Set (Last created unit) Hero-level to 6, Hide level-up graphics
                  • Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: |cffffff00Sentry Gu...
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Killing unit)) Current lumber) Equal to 7
                  • (Number of living Attack Helicopter (Unit) units owned by (Owner of (Killing unit))) Greater than or equal to 1
                • Then - Actions
                  • Unit - Create 1 Killstreak (Attack Heilcopter) for (Owner of (Killing unit)) at (Center of Region 016 <gen>) facing Default building facing degrees
                  • Unit - Add Killstreak Sight Range to (Last created unit)
                  • Hero - Set (Last created unit) Hero-level to 7, Hide level-up graphics
                  • Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: |cffffff00Cobra rea...
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Killing unit)) Current lumber) Equal to 8
                  • (Number of living Rolling Thunder (Unit) units owned by (Owner of (Killing unit))) Greater than or equal to 1
                • Then - Actions
                  • Unit - Create 1 Killstreak (Rolling Thunder) for (Owner of (Killing unit)) at (Center of Region 016 <gen>) facing Default building facing degrees
                  • Unit - Add Killstreak Sight Range to (Last created unit)
                  • Hero - Set (Last created unit) Hero-level to 8, Hide level-up graphics
                  • Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: |cffffff00B52 waiti...
                • Else - Actions
            • Else - Actions
      • Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
      • Multiboard - Set the text for Multiboard item in column 2, row (Player number of (Owner of (Killing unit))) to (String(Kills[(Player number of (Owner of (Killing unit)))]))
      • Set PlayerDeaths[(Player number of (Owner of (Dying unit)))] = (PlayerDeaths[(Player number of (Owner of (Dying unit)))] + 1)
      • Multiboard - Set the text for Multiboard item in column 3, row PlayerRow[(Player number of (Owner of (Dying unit)))] to (String(PlayerDeaths[(Player number of (Owner of (Dying unit)))]))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Killing unit)) is in Team[1]) Equal to True
        • Then - Actions
          • Set Kills[11] = (Kills[11] + 1)
          • Multiboard - Set the text for Multiboard item in column 2, row PlayerRow[14] to (String(Kills[11]))
        • Else - Actions
          • Set Kills[12] = (Kills[12] + 1)
          • Multiboard - Set the text for Multiboard item in column 2, row PlayerRow[13] to (String(Kills[12]))
      • Player - Set (Owner of (Dying unit)) Current lumber to 0
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) has an item of type Commando (Assault Rifle)) Equal to True
        • Then - Actions
          • Item - Create Commando (Assault Rifle) at (Position of (Dying unit))
          • Item - Set charges remaining in (Last created item) to (Charges remaining in (Item carried by (Dying unit) of type Commando (Assault Rifle)))
          • Item - Set charges remaining in (Item carried by (Dying unit) of type Commando (Assault Rifle)) to 80
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) has an item of type Shotgun) Equal to True
        • Then - Actions
          • Item - Create Shotgun at (Position of (Dying unit))
          • Item - Set charges remaining in (Last created item) to (Charges remaining in (Item carried by (Dying unit) of type Shotgun))
          • Item - Set charges remaining in (Item carried by (Dying unit) of type Shotgun) to 20
        • Else - Actions
      • Item - Set charges remaining in (Item carried by (Dying unit) in slot 3) to (Integer((Current life of (Item carried by (Dying unit) in slot 3))))
      • -------- Kill Streaks --------
      • Wait 5.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Dying unit)) is in Team[1]) Equal to True
        • Then - Actions
          • Hero - Instantly revive (Dying unit) at (Center of Current_Arena[0]), Hide revival graphics
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Dying unit)) Equal to Neutral Hostile
            • Then - Actions
              • Hero - Instantly revive (Dying unit) at (Center of Region 017 <gen>), Hide revival graphics
            • Else - Actions
              • Hero - Instantly revive (Dying unit) at (Center of Current_Arena[1]), Hide revival graphics
 
Status
Not open for further replies.
Top