Crazy-Host
New Member
- Reaction score
- 0
Im having trouble working with a multiboard that counts kills and deaths
Problem: The multiboard wont count the deaths by the hero.
Heres the triggers -
The First Trigger
Multiboard Settings
Events
Time - Elapsed game time is 20.00 seconds
Conditions
Actions
Set ShownIcon = ReplaceableTextures\CommandButtons\BTNVillagerMan.blp
Multiboard - Create a multiboard with 4 columns and 8 rows, titled |cff43C6DBTropical ...
Set Multiboard = (Last created multiboard)
Multiboard - Set the width for Multiboard item in column 0, row 0 to 7.00% of the total screen width
Multiboard - Set the width for Multiboard item in column 1, row 0 to 10.00% of the total screen width
Multiboard - Set the icon for Multiboard item in column 1, row 0 to ShownIcon
Multiboard - Maximize Multiboard
-------- Removing icons for the lines (2-5) --------
For each (Integer Integer) from 2 to 5, do (Actions)
Loop - Actions
Multiboard - Set the display style for Multiboard item in column Integer, row 0 to Show text and Hide icons
Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User))) and do (Actions)
Loop - Actions
Set PlayerUnit[(Player number of (Owner of (Picked unit)))] = (Picked unit)
Set GS_Kills[(Player number of (Owner of (Picked unit)))] = 0
Multiboard - Set the text for Multiboard item in column 1, row (Player number of (Owner of (Picked unit))) to PlayerNames[(Player number of (Owner of (Picked unit)))]
Multiboard - Set the text for Multiboard item in column 2, row (Player number of (Owner of (Picked unit))) to ((String(GS_Kills[(Player number of (Owner of (Picked unit)))])) + Hero Kills(s))
Multiboard - Set the color for Multiboard item in column 2, row (Player number of (Owner of (Picked unit))) to (100.00%, 40.00%, 40.00%) with 0.00% transparency
Multiboard - Set the text for Multiboard item in column 4, row (Player number of (Owner of (Picked unit))) to ((String(Deaths[(Player number of (Owner of (Picked unit)))])) + Death(s))
Multiboard - Set the color for Multiboard item in column 4, row (Player number of (Owner of (Picked unit))) to (100.00%, 40.00%, 40.00%) with 0.00% transparency
The death counting trigger
Death Count - Multiboard
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Killing unit)) Not equal to (Owner of (Dying unit))
Actions
Set Deaths[(Player number of (Owner of (Dying unit)))] = Deaths[((Player number of (Owner of (Dying unit))) + 2)]
Multiboard - Set the text for Multiboard item in column 4, row (Player number of (Owner of (Dying unit))) to ((String(Deaths[(Player number of (Owner of (Dying unit)))])) + Death(s))
Can someone explain to me what the problem is?!
Problem: The multiboard wont count the deaths by the hero.
Heres the triggers -
The First Trigger
Multiboard Settings
Events
Time - Elapsed game time is 20.00 seconds
Conditions
Actions
Set ShownIcon = ReplaceableTextures\CommandButtons\BTNVillagerMan.blp
Multiboard - Create a multiboard with 4 columns and 8 rows, titled |cff43C6DBTropical ...
Set Multiboard = (Last created multiboard)
Multiboard - Set the width for Multiboard item in column 0, row 0 to 7.00% of the total screen width
Multiboard - Set the width for Multiboard item in column 1, row 0 to 10.00% of the total screen width
Multiboard - Set the icon for Multiboard item in column 1, row 0 to ShownIcon
Multiboard - Maximize Multiboard
-------- Removing icons for the lines (2-5) --------
For each (Integer Integer) from 2 to 5, do (Actions)
Loop - Actions
Multiboard - Set the display style for Multiboard item in column Integer, row 0 to Show text and Hide icons
Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User))) and do (Actions)
Loop - Actions
Set PlayerUnit[(Player number of (Owner of (Picked unit)))] = (Picked unit)
Set GS_Kills[(Player number of (Owner of (Picked unit)))] = 0
Multiboard - Set the text for Multiboard item in column 1, row (Player number of (Owner of (Picked unit))) to PlayerNames[(Player number of (Owner of (Picked unit)))]
Multiboard - Set the text for Multiboard item in column 2, row (Player number of (Owner of (Picked unit))) to ((String(GS_Kills[(Player number of (Owner of (Picked unit)))])) + Hero Kills(s))
Multiboard - Set the color for Multiboard item in column 2, row (Player number of (Owner of (Picked unit))) to (100.00%, 40.00%, 40.00%) with 0.00% transparency
Multiboard - Set the text for Multiboard item in column 4, row (Player number of (Owner of (Picked unit))) to ((String(Deaths[(Player number of (Owner of (Picked unit)))])) + Death(s))
Multiboard - Set the color for Multiboard item in column 4, row (Player number of (Owner of (Picked unit))) to (100.00%, 40.00%, 40.00%) with 0.00% transparency
The death counting trigger
Death Count - Multiboard
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Killing unit)) Not equal to (Owner of (Dying unit))
Actions
Set Deaths[(Player number of (Owner of (Dying unit)))] = Deaths[((Player number of (Owner of (Dying unit))) + 2)]
Multiboard - Set the text for Multiboard item in column 4, row (Player number of (Owner of (Dying unit))) to ((String(Deaths[(Player number of (Owner of (Dying unit)))])) + Death(s))
Can someone explain to me what the problem is?!