• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Problem with Multiboard display (One row)

Status
Not open for further replies.
Level 12
Joined
May 7, 2008
Messages
346
Okay The Neutral Hostile row is completely out of function . What do I mean with this ? Well when a neutral kills a unit ( Player 12 is set as ,Neutral Hostile' ) , it doesn't display any kill or death for neutral hostile row . Any solutions?


Player group

  • players to group
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Add Player 1 (Red) to m_players
      • Player Group - Add Player 2 (Blue) to m_players
      • Player Group - Add Player 12 (Brown) to m_players
      • For each (Integer A) from 3 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) controller) Equal to User
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Player Group - Add (Player((Integer A))) to m_players
            • Else - Actions
      • For each (Integer A) from 9 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) controller) Equal to User
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Player Group - Add (Player((Integer A))) to m_players
            • Else - Actions
Then the multiboard setup:

  • Setup Multiboard
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • -------- setup player tags --------
      • Set PlayerColours[1] = (|cffFF0000 + ((Name of Player 1 (Red)) + |r))
      • Set PlayerColours[2] = (|cff0000FF + ((Name of Player 2 (Blue)) + |r))
      • Set PlayerColours[3] = (|cff00FFFF + ((Name of Player 3 (Teal)) + |r))
      • Set PlayerColours[4] = (|cffFF00FF + ((Name of Player 4 (Purple)) + |r))
      • Set PlayerColours[5] = (|cffFFFF00 + ((Name of Player 5 (Yellow)) + |r))
      • Set PlayerColours[6] = (|cffFF9900 + ((Name of Player 6 (Orange)) + |r))
      • Set PlayerColours[7] = (|cff00FF00 + ((Name of Player 7 (Green)) + |r))
      • Set PlayerColours[8] = (|cffFF99FF + ((Name of Player 8 (Pink)) + |r))
      • Set PlayerColours[9] = (|cffCCCCCC + ((Name of Player 9 (Gray)) + |r))
      • Set PlayerColours[10] = (|cff00CCFF + ((Name of Player 10 (Light Blue)) + |r))
      • Set PlayerColours[11] = (|cff008800 + ((Name of Player 11 (Dark Green)) + |r))
      • Set PlayerColours[12] = (|cff770000 + ((Name of Player 12 (Brown)) + |r))
      • Set rows = ((Number of players in m_players) + 1)
      • Multiboard - Create a multiboard with 4 columns and (rows + 1) rows, titled Statistics
      • Set multiboard = (Last created multiboard)
      • -------- ========= --------
      • Set playerslot[1] = 2
      • Set playerslot[2] = 3
      • Set playerslot[12] = rows
      • Multiboard - Set the text for multiboard item in column 1, row 1 to |cffFFCC00Players|r
      • Multiboard - Set the text for multiboard item in column 2, row 1 to |cffFFCC00Kills|r
      • Multiboard - Set the text for multiboard item in column 3, row 1 to |cffFFCC00Deaths|r
      • Multiboard - Set the text for multiboard item in column 4, row 1 to |cffFFCC00Points|r
      • Multiboard - Set the text for multiboard item in column 1, row 2 to PlayerColours[1]
      • Multiboard - Set the text for multiboard item in column 2, row 2 to (String(kills[1]))
      • Multiboard - Set the text for multiboard item in column 3, row 2 to (String(deathcount[1]))
      • Multiboard - Set the text for multiboard item in column 4, row 2 to 0
      • Multiboard - Set the text for multiboard item in column 1, row 3 to PlayerColours[2]
      • Multiboard - Set the text for multiboard item in column 2, row 3 to (String(kills[2]))
      • Multiboard - Set the text for multiboard item in column 3, row 3 to (String(deathcount[2]))
      • Multiboard - Set the text for multiboard item in column 4, row 3 to 0
      • Multiboard - Set the text for multiboard item in column 1, row (rows + 1) to |cffFFCC00Game Time...
      • Multiboard - Set the text for multiboard item in column 3, row (rows + 1) to 00:00
      • Set TempInteger = 4
      • For each (Integer A) from 3 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) is in m_players) Equal to True
            • Then - Actions
              • Multiboard - Set the text for multiboard item in column 1, row TempInteger to PlayerColours[(Integer A)]
              • Multiboard - Set the text for multiboard item in column 2, row TempInteger to (String(kills[(Integer A)]))
              • Multiboard - Set the text for multiboard item in column 3, row TempInteger to (String(deathcount[(Integer A)]))
              • Multiboard - Set the text for multiboard item in column 4, row TempInteger to (String(((Player((Integer A))) Current lumber)))
              • Set playerslot[(Integer A)] = TempInteger
              • Set TempInteger = (TempInteger + 1)
            • Else - Actions
      • Multiboard - Set the text for multiboard item in column 1, row rows to PlayerColours[12]
      • Multiboard - Set the text for multiboard item in column 2, row rows to (String(kills[12]))
      • Multiboard - Set the text for multiboard item in column 3, row rows to (String(deathcount[12]))
      • Multiboard - Set the text for multiboard item in column 4, row rows to -
      • Multiboard - Set the width for multiboard item in column 1, row 0 to 10.00% of the total screen width
      • Multiboard - Set the width for multiboard item in column 2, row 0 to 4.00% of the total screen width
      • Multiboard - Set the width for multiboard item in column 3, row 0 to 6.00% of the total screen width
      • Multiboard - Set the width for multiboard item in column 4, row 0 to 5.00% of the total screen width
      • Multiboard - Set the icon for multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNSpellBreaker.blp
      • Multiboard - Set the icon for multiboard item in column 1, row 3 to ReplaceableTextures\CommandButtons\BTNKeeperGhostBlue.blp
      • Multiboard - Set the icon for multiboard item in column 2, row 1 to ReplaceableTextures\CommandButtons\BTNTransmute.blp
      • Multiboard - Set the icon for multiboard item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNRegenerationAura.blp
      • Multiboard - Set the icon for multiboard item in column 4, row 1 to ReplaceableTextures\CommandButtons\BTNPeriapt1.blp
      • Multiboard - Set the icon for multiboard item in column 1, row rows to ReplaceableTextures\CommandButtons\BTNOgre.blp
      • Multiboard - Set the display style for multiboard item in column 1, row 0 to Show text and Show icons
      • Multiboard - Set the display style for multiboard item in column 1, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for multiboard item in column 1, row (rows + 1) to Show text and Hide icons
      • Multiboard - Set the display style for multiboard item in column 2, row 0 to Show text and Hide icons
      • Multiboard - Set the display style for multiboard item in column 2, row 1 to Show text and Show icons
      • Multiboard - Set the display style for multiboard item in column 3, row 0 to Show text and Hide icons
      • Multiboard - Set the display style for multiboard item in column 3, row 1 to Show text and Show icons
      • Multiboard - Set the display style for multiboard item in column 4, row 0 to Show text and Hide icons
      • Multiboard - Set the display style for multiboard item in column 4, row 1 to Show text and Show icons
      • Multiboard - Set the color for multiboard item in column 2, row 0 to (100.00%, 100.00%, 0.00%) with 0.00% transparency
      • Multiboard - Set the color for multiboard item in column 3, row 0 to (60.00%, 60.00%, 60.00%) with 0.00% transparency
      • Multiboard - Set the color for multiboard item in column 4, row 0 to (20.00%, 100.00%, 20.00%) with 0.00% transparency
      • Multiboard - Set the color for multiboard item in column 0, row (rows + 1) to (100.00%, 80.00%, 0.00%) with 0.00% transparency
      • Multiboard - Show multiboard
Kills Update

  • Update kills
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
        • Then - Actions
          • Set herokills[(Player number of (Owner of (Killing unit)))] = (herokills[(Player number of (Owner of (Killing unit)))] + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Player number of (Owner of (Killing unit))) Equal to 3
                  • (Player number of (Owner of (Killing unit))) Equal to 5
                  • (Player number of (Owner of (Killing unit))) Equal to 6
            • Then - Actions
              • Set herokills[1] = (herokills[1] + 1)
              • Multiboard - Set the text for multiboard item in column 2, row playerslot[(Player number of (Owner of (Killing unit)))] to (String(herokills[(Player number of (Owner of (Killing unit)))]))
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Player number of (Owner of (Killing unit))) Equal to 9
                  • (Player number of (Owner of (Killing unit))) Equal to 10
                  • (Player number of (Owner of (Killing unit))) Equal to 11
            • Then - Actions
              • Set herokills[2] = (herokills[2] + 1)
              • Multiboard - Set the text for multiboard item in column 2, row playerslot[(Player number of (Owner of (Killing unit)))] to (String(herokills[(Player number of (Owner of (Killing unit)))]))
            • Else - Actions
          • Multiboard - Set the text for multiboard item in column 2, row playerslot[1] to (String(herokills[1]))
          • Multiboard - Set the text for multiboard item in column 2, row playerslot[2] to (String(herokills[2]))
        • Else - Actions
      • Set deathcount[(Player number of (Owner of (Dying unit)))] = (deathcount[(Player number of (Owner of (Dying unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Player number of (Owner of (Dying unit))) Equal to 3
              • (Player number of (Owner of (Dying unit))) Equal to 5
              • (Player number of (Owner of (Dying unit))) Equal to 6
        • Then - Actions
          • Set deathcount[1] = (deathcount[1] + 1)
          • Multiboard - Set the text for multiboard item in column 3, row playerslot[(Player number of (Owner of (Dying unit)))] to (String(deathcount[(Player number of (Owner of (Dying unit)))]))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Player number of (Owner of (Dying unit))) Equal to 9
              • (Player number of (Owner of (Dying unit))) Equal to 10
              • (Player number of (Owner of (Dying unit))) Equal to 11
        • Then - Actions
          • Set deathcount[2] = (deathcount[2] + 1)
          • Multiboard - Set the text for multiboard item in column 3, row playerslot[(Player number of (Owner of (Dying unit)))] to (String(deathcount[(Player number of (Owner of (Dying unit)))]))
        • Else - Actions
      • Multiboard - Set the text for multiboard item in column 3, row playerslot[1] to (String(deathcount[1]))
      • Multiboard - Set the text for multiboard item in column 3, row playerslot[2] to (String(deathcount[2]))
then kill creep

  • Kill Creep
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to False
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
        • Then - Actions
          • Set kills[(Player number of (Owner of (Killing unit)))] = (kills[(Player number of (Owner of (Killing unit)))] + 1)
        • Else - Actions
          • Set denies[(Player number of (Owner of (Killing unit)))] = (denies[(Player number of (Owner of (Killing unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ShowCreepsKilled[(Player number of (Owner of (Killing unit)))] Equal to True
        • Then - Actions
          • Custom script: if GetLocalPlayer() == GetOwningPlayer(GetKillingUnit()) then
          • Multiboard - Change the title of multiboard to (Statistics - |c0000ff00Creep Score:|r + ((String(kills[(Player number of (Owner of (Killing unit)))])) + (/ + (String(denies[(Player number of (Owner of (Killing unit)))])))))
          • Custom script: endif
        • Else - Actions
 
Status
Not open for further replies.
Top