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

Will this thing work? the formula and the multiboard

Status
Not open for further replies.
Level 18
Joined
Dec 17, 2009
Messages
1,114
1.I'm going to reduce a unit's health by it's percentage of life
(the formula)
Well, this thing is what i learned from school
Main value - (Main Value / (25/100))

Variable info
PickedHero[Array] its the player's hero!i've set it when the player has picked it's hero!
TempPG player group!

is this the way to reduce it's health?

Coz just now i was making this

  • Rain of $$
    • Events
      • Time - Every 300.00 seconds of game time
    • Conditions
    • Actions
      • Set TempPG = (All allies of (Owner of (Researching unit)))
      • Player Group - Pick every player in TempPG and do (Actions)
        • Loop - Actions
          • Player - Add 700 to (Picked player) Current gold
      • Custom script: call DestroyForce( udg_TempPG )
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Unit - Set life of PickedHero[(Integer A)] to ((Life of PickedHero[(Integer A)]) - ((Life of PickedHero[(Integer A)]) x (25.00 / 100.00)))
      • Game - Display to (All players) the text: |cffff0000Whoa!Rain...
(don't laugh, it is rain of gold that causes the picked Hero to get hurt by 25%(loL!!))


Anyone knows?

2.Multiboard,

I've just created a multi board for the statistics of the players (kill n deaths!)

will this work?(you can make a test map for the triggs if you want it to look better ^^ and simplified!)


  • Statistic Board
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 3 columns and 12 rows, titled Statistics
      • Set StatisticBoard = (Last created multiboard)
      • Multiboard - Show StatisticBoard
      • Multiboard - Change the color of the title for StatisticBoard to (100.00%, 80.00%, 20.00%) with 0.00% transparency
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • Multiboard - Set the width for StatisticBoard item in column (Integer A), row 1 to 6.00% of the total screen width
          • Multiboard - Set the width for StatisticBoard item in column (Integer A), row 2 to 6.00% of the total screen width
          • Multiboard - Set the width for StatisticBoard item in column (Integer A), row 3 to 6.00% of the total screen width
          • Multiboard - Set the width for StatisticBoard item in column (Integer A), row 4 to 6.00% of the total screen width
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Set the width for StatisticBoard item in column 1, row (Integer A) to 15.00% of the total screen width
          • Multiboard - Set the width for StatisticBoard item in column 2, row (Integer A) to 3.00% of the total screen width
          • Multiboard - Set the width for StatisticBoard item in column 3, row (Integer A) to 3.00% of the total screen width
      • -------- Infor --------
      • Multiboard - Set the text for StatisticBoard item in column 2, row 1 to Kills
      • Multiboard - Set the text for StatisticBoard item in column 3, row 1 to Deaths
      • -------- - --------
      • Multiboard - Set the text for StatisticBoard item in column 1, row 1 to |cffffcc00Team1|r
      • Multiboard - Set the text for StatisticBoard item in column 1, row 7 to |cffffcc00Team2|r
      • -------- 2-6 is the players of team 1 --------
      • Multiboard - Set the text for StatisticBoard item in column 1, row 2 to (|CFFFF0303 + ((Name of Player 1 (Red)) + |r))
      • Multiboard - Set the text for StatisticBoard item in column 1, row 3 to (|CFF0042FF + ((Name of Player 2 (Blue)) + |r))
      • Multiboard - Set the text for StatisticBoard item in column 1, row 4 to (|CFF1BE6D8 + ((Name of Player 3 (Teal)) + |r))
      • Multiboard - Set the text for StatisticBoard item in column 1, row 5 to (|CFF540081 + ((Name of Player 4 (Purple)) + |r))
      • Multiboard - Set the text for StatisticBoard item in column 1, row 6 to (|CFFFFFF01 + ((Name of Player 5 (Yellow)) + |r))
      • -------- 8-12 is the players of team 2 --------
      • Multiboard - Set the text for StatisticBoard item in column 1, row 8 to (|CFFFE8A0E + ((Name of Player 6 (Orange)) + |r))
      • Multiboard - Set the text for StatisticBoard item in column 1, row 9 to (|CFF20C000 + ((Name of Player 7 (Green)) + |r))
      • Multiboard - Set the text for StatisticBoard item in column 1, row 10 to (|CFFE55BB0 + ((Name of Player 8 (Pink)) + |r))
      • Multiboard - Set the text for StatisticBoard item in column 1, row 11 to (|CFF959697 + ((Name of Player 9 (Gray)) + |r))
      • Multiboard - Set the text for StatisticBoard item in column 1, row 12 to (|CFF7EBFF1 + ((Name of Player 10 (Light Blue)) + |r))


And!! The updates!

  • KillsDeaths
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • ((Dying unit) is A Hero) Equal to True
          • And - All (Conditions) are true
            • Conditions
              • ((Killing unit) is A Hero) Equal to True
              • ((Dying unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Dying unit)) Equal to Player 1 (Red)
              • (Owner of (Killing unit)) Equal to Player 1 (Red)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Dying unit)) Equal to Player 1 (Red)
            • Then - Actions
              • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
              • Multiboard - Set the text for StatisticBoard item in column 3, row 2 to (String(Death_Count[1]))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Owner of (Killing unit)) Equal to Player 1 (Red)
                • Then - Actions
                  • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                  • Multiboard - Set the text for StatisticBoard item in column 2, row 2 to (String(Hero_Kills[1]))
                • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Owner of (Dying unit)) Equal to Player 2 (Blue)
                  • (Owner of (Killing unit)) Equal to Player 2 (Blue)
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Owner of (Dying unit)) Equal to Player 2 (Blue)
                • Then - Actions
                  • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
                  • Multiboard - Set the text for StatisticBoard item in column 3, row 3 to (String(Death_Count[2]))
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Owner of (Killing unit)) Equal to Player 2 (Blue)
                    • Then - Actions
                      • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                      • Multiboard - Set the text for StatisticBoard item in column 2, row 3 to (String(Hero_Kills[2]))
                    • Else - Actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Or - Any (Conditions) are true
                    • Conditions
                      • (Owner of (Dying unit)) Equal to Player 3 (Teal)
                      • (Owner of (Killing unit)) Equal to Player 3 (Teal)
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Owner of (Dying unit)) Equal to Player 3 (Teal)
                    • Then - Actions
                      • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
                      • Multiboard - Set the text for StatisticBoard item in column 3, row 4 to (String(Death_Count[3]))
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Owner of (Killing unit)) Equal to Player 3 (Teal)
                        • Then - Actions
                          • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                          • Multiboard - Set the text for StatisticBoard item in column 2, row 4 to (String(Hero_Kills[3]))
                        • Else - Actions
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Or - Any (Conditions) are true
                        • Conditions
                          • (Owner of (Dying unit)) Equal to Player 4 (Purple)
                          • (Owner of (Killing unit)) Equal to Player 4 (Purple)
                    • Then - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Owner of (Dying unit)) Equal to Player 4 (Purple)
                        • Then - Actions
                          • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
                          • Multiboard - Set the text for StatisticBoard item in column 3, row 5 to (String(Death_Count[4]))
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Owner of (Killing unit)) Equal to Player 4 (Purple)
                            • Then - Actions
                              • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                              • Multiboard - Set the text for StatisticBoard item in column 2, row 5 to (String(Hero_Kills[4]))
                            • Else - Actions
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Or - Any (Conditions) are true
                            • Conditions
                              • (Owner of (Dying unit)) Equal to Player 5 (Yellow)
                              • (Owner of (Killing unit)) Equal to Player 5 (Yellow)
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Owner of (Dying unit)) Equal to Player 5 (Yellow)
                            • Then - Actions
                              • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
                              • Multiboard - Set the text for StatisticBoard item in column 3, row 6 to (String(Death_Count[5]))
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Owner of (Killing unit)) Equal to Player 5 (Yellow)
                                • Then - Actions
                                  • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                                  • Multiboard - Set the text for StatisticBoard item in column 2, row 6 to (String(Hero_Kills[5]))
                                • Else - Actions
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Or - Any (Conditions) are true
                                • Conditions
                                  • (Owner of (Dying unit)) Equal to Player 6 (Orange)
                                  • (Owner of (Killing unit)) Equal to Player 6 (Orange)
                            • Then - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Owner of (Dying unit)) Equal to Player 6 (Orange)
                                • Then - Actions
                                  • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
                                  • Multiboard - Set the text for StatisticBoard item in column 3, row 8 to (String(Death_Count[6]))
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Owner of (Killing unit)) Equal to Player 6 (Orange)
                                    • Then - Actions
                                      • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                                      • Multiboard - Set the text for StatisticBoard item in column 2, row 8 to (String(Hero_Kills[6]))
                                    • Else - Actions
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • Or - Any (Conditions) are true
                                    • Conditions
                                      • (Owner of (Dying unit)) Equal to Player 7 (Green)
                                      • (Owner of (Killing unit)) Equal to Player 7 (Green)
                                • Then - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Owner of (Dying unit)) Equal to Player 7 (Green)
                                    • Then - Actions
                                      • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
                                      • Multiboard - Set the text for StatisticBoard item in column 3, row 9 to (String(Death_Count[7]))
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Owner of (Killing unit)) Equal to Player 7 (Green)
                                        • Then - Actions
                                          • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                                          • Multiboard - Set the text for StatisticBoard item in column 2, row 9 to (String(Hero_Kills[7]))
                                        • Else - Actions
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • Or - Any (Conditions) are true
                                        • Conditions
                                          • (Owner of (Dying unit)) Equal to Player 8 (Pink)
                                          • (Owner of (Killing unit)) Equal to Player 8 (Pink)
                                    • Then - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Owner of (Dying unit)) Equal to Player 8 (Pink)
                                        • Then - Actions
                                          • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
                                          • Multiboard - Set the text for StatisticBoard item in column 3, row 10 to (String(Death_Count[8]))
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Owner of (Killing unit)) Equal to Player 8 (Pink)
                                            • Then - Actions
                                              • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                                              • Multiboard - Set the text for StatisticBoard item in column 2, row 10 to (String(Hero_Kills[8]))
                                            • Else - Actions
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • Or - Any (Conditions) are true
                                            • Conditions
                                              • (Owner of (Dying unit)) Equal to Player 9 (Gray)
                                              • (Owner of (Killing unit)) Equal to Player 9 (Gray)
                                        • Then - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Owner of (Dying unit)) Equal to Player 9 (Gray)
                                            • Then - Actions
                                              • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
                                              • Multiboard - Set the text for StatisticBoard item in column 3, row 11 to (String(Death_Count[9]))
                                            • Else - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • (Owner of (Killing unit)) Equal to Player 9 (Gray)
                                                • Then - Actions
                                                  • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                                                  • Multiboard - Set the text for StatisticBoard item in column 2, row 11 to (String(Hero_Kills[9]))
                                                • Else - Actions
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • Or - Any (Conditions) are true
                                                • Conditions
                                                  • (Owner of (Dying unit)) Equal to Player 10 (Light Blue)
                                                  • (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
                                            • Then - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • (Owner of (Dying unit)) Equal to Player 10 (Light Blue)
                                                • Then - Actions
                                                  • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
                                                  • Multiboard - Set the text for StatisticBoard item in column 3, row 12 to (String(Death_Count[10]))
                                                • Else - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
                                                    • Then - Actions
                                                      • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
                                                      • Multiboard - Set the text for StatisticBoard item in column 2, row 12 to (String(Hero_Kills[10]))
                                                    • Else - Actions
                                            • Else - Actions
ICONS!!

  • Icons
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Multiboard - Set the icon for StatisticBoard item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNFootman.blp
      • Multiboard - Set the icon for StatisticBoard item in column 1, row 7 to ReplaceableTextures\CommandButtons\BTNFootman.blp
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Set the icon for StatisticBoard item in column 2, row (Integer A) to ReplaceableTextures\WorldEditUI\Editor-Force.blp
          • Multiboard - Set the icon for StatisticBoard item in column 3, row (Integer A) to ReplaceableTextures\WorldEditUI\Editor-Ally-NoPriority.blp
      • For each (Integer A) from 2 to 6, do (Actions)
        • Loop - Actions
          • Multiboard - Set the icon for StatisticBoard item in column 1, row (Integer A) to ReplaceableTextures\CommandButtons\BTNSpiritWalkerAdeptTraining.blp
      • For each (Integer A) from 8 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Set the icon for StatisticBoard item in column 1, row (Integer A) to ReplaceableTextures\CommandButtons\BTNMaskOfDeath.blp

When they leave! (-_ -')

  • wah
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) 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
      • Player - Player 10 (Light Blue) leaves the game
    • Conditions
    • Actions
      • Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering player) is an ally of Player 11 (Dark Green)) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to Player 1 (Red)
            • Then - Actions
              • Multiboard - Set the text for StatisticBoard item in column 1, row 2 to <Left>
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Triggering player) Equal to Player 2 (Blue)
                • Then - Actions
                  • Multiboard - Set the text for StatisticBoard item in column 1, row 3 to <Left>
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Triggering player) Equal to Player 3 (Teal)
                    • Then - Actions
                      • Multiboard - Set the text for StatisticBoard item in column 1, row 4 to <Left>
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Triggering player) Equal to Player 4 (Purple)
                        • Then - Actions
                          • Multiboard - Set the text for StatisticBoard item in column 1, row 5 to <Left>
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Triggering player) Equal to Player 5 (Yellow)
                            • Then - Actions
                              • Multiboard - Set the text for StatisticBoard item in column 1, row 6 to <Left>
                            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Triggering player) is an ally of Player 12 (Brown)) Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Triggering player) Equal to Player 6 (Orange)
                • Then - Actions
                  • Multiboard - Set the text for StatisticBoard item in column 1, row 8 to <Left>
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Triggering player) Equal to Player 7 (Green)
                    • Then - Actions
                      • Multiboard - Set the text for StatisticBoard item in column 1, row 9 to <Left>
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Triggering player) Equal to Player 8 (Pink)
                        • Then - Actions
                          • Multiboard - Set the text for StatisticBoard item in column 1, row 10 to <Left>
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Triggering player) Equal to Player 9 (Gray)
                            • Then - Actions
                              • Multiboard - Set the text for StatisticBoard item in column 1, row 11 to <Left>
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Triggering player) Equal to Player 10 (Light Blue)
                                • Then - Actions
                                  • Multiboard - Set the text for StatisticBoard item in column 1, row 12 to <Left>
                                • Else - Actions
            • Else - Actions

 
Level 7
Joined
Dec 24, 2009
Messages
257
about damaging, this kind of damaging is only for very special use of damage (does not stop the effects of some dispelling potions like Healing Salve...) Or if you want to originally damage unit in a Rain of Money, you can just do this:
  • Custom script: set bj_wantdestroygroup=true
  • Units group - Pick every unit in (playable map area) matching (((Matching unit) is a Hero) equal to True) and do actions
    • Unit - Order (Picked unit) to damage (picked unit) with an amount of ((Life of (picked unit)) x 0.25) using attack type normal and damage type normal
(well I don't remember this one 100% accurately because I'm not with WcWE right now)

Anyway, this trigger(and also yours) will show problem when you want to display the name of the killing and dying Heroes. You can make a special trigger to make it display that which Hero is killed by Rain of Money.

I'm reading about your multiboard. Next edit I will say about it
[edit] something to say here:
  • Multiboard - Set the width for StatisticBoard item in column 2, row (Integer A) to 3.00% of the total screen width
  • Multiboard - Set the width for StatisticBoard item in column 3, row (Integer A) to 3.00% of the total screen width
Omg do you know how wide the 3% of the total screen is??? At least 6% i advise

Plus:
  • -------- 2-6 is the players of team 1 --------
  • Multiboard - Set the text for StatisticBoard item in column 1, row 2 to (|CFFFF0303 + ((Name of Player 1 (Red)) + |r))
  • Multiboard - Set the text for StatisticBoard item in column 1, row 3 to (|CFF0042FF + ((Name of Player 2 (Blue)) + |r))
  • Multiboard - Set the text for StatisticBoard item in column 1, row 4 to (|CFF1BE6D8 + ((Name of Player 3 (Teal)) + |r))
  • Multiboard - Set the text for StatisticBoard item in column 1, row 5 to (|CFF540081 + ((Name of Player 4 (Purple)) + |r))
  • Multiboard - Set the text for StatisticBoard item in column 1, row 6 to (|CFFFFFF01 + ((Name of Player 5 (Yellow)) + |r))
  • -------- 8-12 is the players of team 2 --------
  • Multiboard - Set the text for StatisticBoard item in column 1, row 8 to (|CFFFE8A0E + ((Name of Player 6 (Orange)) + |r))
  • Multiboard - Set the text for StatisticBoard item in column 1, row 9 to (|CFF20C000 + ((Name of Player 7 (Green)) + |r))
  • Multiboard - Set the text for StatisticBoard item in column 1, row 10 to (|CFFE55BB0 + ((Name of Player 8 (Pink)) + |r))
  • Multiboard - Set the text for StatisticBoard item in column 1, row 11 to (|CFF959697 + ((Name of Player 9 (Gray)) + |r))
  • Multiboard - Set the text for StatisticBoard item in column 1, row 12 to (|CFF7EBFF1 + ((Name of Player 10 (Light Blue)) + |r))
Using this is very inconvenient when you want to fix your multiboard. You should set player's name in the game initialization then simply display their name on the board:
For example
  • Events: Map initialization
  • Conditions:
  • Actions: Player - Set name of (Player 1 (Red)) to (|CFFFF0000 + ((Name of Player 1 (Red)) + |r))
About the multiboard running:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Owner of (Dying unit)) Equal to Player 1 (Red)
    • Then - Actions
      • Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
      • Multiboard - Set the text for StatisticBoard item in column 3, row 2 to (String(Death_Count[1]))
    • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
          • Multiboard - Set the text for StatisticBoard item in column 2, row 2 to (String(Hero_Kills[1]))
        • Else - Actions
What about the situation of a Hero killing himself?
Plus, your whole trigger is so big and I'm sure that it acts slower.
In my opinion, you can set your things into 2 triggers :
When an unit dies, check the Dying unit: if it's Hero[array] then set the Death_Count[] of the owner (you can give the exact number of the player; Death_Count[1] for example) to itself +1. Same with the Killing unit.
The other trigger is a loop trigger: You display the numbers each 0.2-0.5 seconds

About the leaving trigger:
  • If - Conditions
    • ((Triggering player) is an ally of Player 11 (Dark Green)) Equal to True
This line is useless.
Forgot to say this: Standard Multiboard displays both icons and texts in all of its items. So if you don't set the icon for all items, or at least disable icons, your board will look very ugly

Well, they are just my opinions. I'm not a very good one in multiboard so I'm not sure if 100% of the thing i've said are right. But I see that you caught the basic of multiboard. Kepp trying and you will be able to master it soon
 
Last edited:
Level 7
Joined
Dec 24, 2009
Messages
257
Well, you forced me to open WcWE, but no problem
Here is your trigger: (Find it yourself)
- Multiboard - Set item display type -
  • Multiboard - Set the display type for (last created multiboard) item in column [] and row []to Show text and Hide icons
 
Status
Not open for further replies.
Top