dùng mutil board, đây là cái board trong map Blade Vs Demon của mình có gì bạn đọc xong sửa cho phù hợp nhé
Trích dẫn:
Create Board
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set Players_Count = 0
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
((Player((Integer A))) controller) Equal to User
Then - Actions
Set Players_Count = (Players_Count + 1)
Set PlayerPlaying[Players_Count] = (Player((Integer A)))
Else - Actions
Set Players_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
Multiboard - Create a multiboard with 4 columns and (Players_Count + 4) rows, titled Kill Score
Set Score_Board = (Last created multiboard)
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to |cffffcc00[Team]|r
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to |c00FF0000Blademast...
Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to |c0000FF00Demon Hun...
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to |cffffcc00[Players]...
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to |cffffcc00[Kills]|r
Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to |c00FF0303[Deaths]|...
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 0 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 4 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 3, row 0 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 4, row 0 to Show text and Hide icons
Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to ReplaceableTextures\CommandButtons\BTNChaosBladema ster.blp
Multiboard - Set the icon for (Last created multiboard) item in column 2, row 3 to ReplaceableTextures\CommandButtons\BTNEvilIllidan. blp
Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 2.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 12.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row 0 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 4, row 0 to 5.00% of the total screen width
Set List = 5
For each (Integer A) from 1 to Players_Count, do (Actions)
Loop - Actions
Set Multiboard_Spots[(Player number of PlayerPlaying[(Integer A)])] = List
Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (Player_Colors[(Player number of PlayerPlaying[(Integer A)])] + ((Name of PlayerPlaying[(Integer A)]) + |r))
Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
Multiboard - Set the text for (Last created multiboard) item in column 4, row List to 0
Multiboard - Set the display style for (Last created multiboard) item in column 2, row List to Show text and Hide icons
Set List = (List + 1)
Multiboard - Show (Last created multiboard)
Trích dẫn:
UpdateBoard
Events
Conditions
Actions
For each (Integer A) from 1 to Players_Count, do (Actions)
Loop - Actions
Multiboard - Set the text for Score_Board item in column 3, row Multiboard_Spots[(Player number of PlayerPlaying[(Integer A)])] to (String(Kill_Count[(Player number of PlayerPlaying[(Integer A)])]))
Multiboard - Set the text for Score_Board item in column 4, row Multiboard_Spots[(Player number of PlayerPlaying[(Integer A)])] to (String(Death_Count[(Player number of PlayerPlaying[(Integer A)])]))
Trích dẫn:
BM Kill
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Dying unit)) Not equal to Neutral Hostile
((Triggering unit) belongs to an ally of Player 1 (Red)) Not equal to True
((Owner of (Killing unit)) is in Blademaster) Equal to True
(Owner of (Killing unit)) Not equal to Neutral Hostile
Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Set Death_Count[(Player number of (Owner of (Triggering unit)))] = (Death_Count[(Player number of (Owner of (Triggering unit)))] + 1)
Trigger - Run UpdateBoard <gen> (ignoring conditions)
Set BladeKill = (BladeKill + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(BladeKill))
Set DemonDeath = (DemonDeath + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(DemonDeath))
Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r just kicked + (Player_Colors[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + |r's ass!!)))))
Trích dẫn:
DH Kill
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Dying unit)) Not equal to Neutral Hostile
(Owner of (Killing unit)) Not equal to Neutral Hostile
((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
((Owner of (Killing unit)) is in DemonHunter) Equal to True
Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Set Death_Count[(Player number of (Owner of (Triggering unit)))] = (Death_Count[(Player number of (Owner of (Triggering unit)))] + 1)
Trigger - Run UpdateBoard <gen> (ignoring conditions)
Set DemonKill = (DemonKill + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String(DemonKill))
Set BladeDeath = (BladeDeath + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(BladeDeath))
Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r just kicked + (Player_Colors[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + |r's ass!!)))))