Ai chỉ mình trigger để làm bảng công trạng đi
Như tiêu đề
Ps: ko spam
Last edited by K3_Posh on 13.06.12 19:42; edited 1 time in total (Reason for editing : http://www.phutu.org)
datrovip wrote:Mình chỉ cần cái bảng tính kill/dead thôi ko cần gì nhìu
CreateBoard
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Score Board //tạo 1 board với tiêu đề (ở đây là "Score Board"
Set K3Leaderboard = (Last created leaderboard) //lưu board mới tạo vào biến
Leaderboard - Add Player 1 (Red) to K3Leaderboard with label K3 Posh and value 0 //thêm player 1 vào board với tiêu đề (có thể là tên player hoặc gì cũng đc ) là K3 Posh
Leaderboard - Add Player 2 (Blue) to K4Leaderboard with label Leo and value 0 //thêm player 2 vào board
Leaderboard - Add Player 3 (Teal) to K5Leaderboard with label Lowji and value 0 //thêm player 3 vào board
For each (Integer A) from 1 to 12, do (Actions) //loop này để đặt giá trị là 0 cho mọi player (3 player chắc chỉ cần from 1 to 3 là đủ)
Loop - Actions
Set PlayerValue[(Integer A)] = 0
BoarUpdate
Events
Unit - A unit Dies
Conditions // tất nhiên cần thêm điều kiện
Actions
Set i = (Player number of (Owner of (Killing unit))) //i là 1 biến integer, biến này tạo ra để dùng tạm
Set PlayerValue[i] = (PlayerValue[i] + 1) // thêm giá trị vào biến giá trị của player
Leaderboard - Change the value for (Player(i)) in K3Leaderboard to PlayerValue[i] // bây giờ thay đổi giá trị của board cho player killer
Last edited by K3_Posh on 05.07.12 7:02; edited 2 times in total (Reason for editing : http://www.phutu.org)
Permissions in this forum:
You cannot reply to topics in this forum
|
|