Pro vào chỉ giáo một chút vè object và Import

Đây các cha, tui ngủ buổi chiều, sr.Bắt đầu từ cái kill nhé:
Cần 2 trigger:
Đó là màu, còn đây là kill:
Trigger 1 :
.....................................
....................................

OK? còn cái chọn hero thì phải xem ông dùng hệ select hero nòa đã, giống DDay hay là khác????

Cách set color của Exp111 có vẻ hơi lằng nhằng , tui thấy làm thế này cho nó dễ :
Set name of Player 1 (Red) to (màu sắc + ((Name of Player 1 Red )) + |r))
Làm thế hay hơn , đỡ khỏi dùng biến :p
Tiện thể exp111 chỉ tui cách làm cái bảng kill ở góc bên phải màn hình ( Giống dota ý , có name của player và số kill ) Cảm ơn nhìu
 
Cũng đc thôi:ban đầu ở MAp initialization, thêm cái Run Trigger:
Create
Events
Conditions
Actions
For each (Integer A) from 1 to 12, do (Set Kills[(Integer A)] = 0)
For each (Integer B) from 1 to 12, do (Set Deaths[(Integer B)] = 0)
Wait 1.00 seconds
Multiboard - Create a multiboard with 5 columns and 13 rows, titled Death Arena
Set Mutiboard = (Last created multiboard)
Multiboard - Set the width for Mutiboard item in column 0, row 0 to 5.00% of the total screen width
Multiboard - Set the width for Mutiboard item in column 2, row 0 to 8.00% of the total screen width
Multiboard - Minimize Mutiboard
Multiboard - Set the display style for Mutiboard item in column 0, row 0 to Show text and Hide icons
Multiboard - Set the text for Mutiboard item in column 1, row 1 to Players
Multiboard - Set the text for Mutiboard item in column 2, row 1 to Kills
Multiboard - Set the text for Mutiboard item in column 3, row 1 to Deaths
Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing)) and do (Actions)
Loop - Actions
Multiboard - Set the text for Mutiboard item in column 2, row ((Player number of (Picked player)) + 1) to (Name of (Picked player))
Multiboard - Set the text for Mutiboard item in column 3, row ((Player number of (Picked player)) + 1) to ( + (String(Kills[(Player number of (Picked player))])))
Multiboard - Set the text for Mutiboard item in column 4, row ((Player number of (Picked player)) + 1) to ( + (String(Deaths[(Player number of (Picked player))])))
Đấy là khởi tạo, còn kill:

Kills
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( has defeated + (Name of (Owner of (Dying unit)))))
Player - Add 50 to (Owner of (Killing unit)) Current gold
Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
Set Deaths[(Player number of (Owner of (Dying unit)))] = (Deaths[(Player number of (Owner of (Dying unit)))] + 1)
Multiboard - Set the text for Mutiboard item in column 3, row ((Player number of (Owner of (Killing unit))) + 1) to ( + (String(Kills[(Player number of (Owner of (Killing unit)))])))
Multiboard - Set the text for Mutiboard item in column 4, row ((Player number of (Owner of (Dying unit))) + 1) to ( + (String(Deaths[(Player number of (Owner of (Dying unit)))])))

OK????
À, mà tên tôi có 4 số 1 mà, sao lấy đâu matts 1 số rồi:-/
 
Exp1111 ơi chỉ cái nì nua, cần gấp lắm : làm sao khi nhấn diglog button thì move unit tới 1 điểm.
 
Mấy cái biến Kills , Death nó nằm ở chỗ nào , phiền Exp1111 giúp tui với nhé :x
 
Với cả cái đoạn này :
( + (String(Kills[(Player number of (Picked player))])))

Gần cuối cùng phần khởi tạo ý , kô biết dấu + ở đâu hết , cả String(Kills) kô biết là thể loại biến gì :D
 
huhuhu ai giúp mình cái diglog đi : làm sao để move unit đến 1 điểm khi nhấn diglog button vậy???
giúp tui với các pro ơi huhu
 
Kills là 1 variable vào phần new variable để khởi tạo.Còn string máy tui đang bị virus nên ngại mở WE thông cảm nha
 
Tui biết cái đó rồi , chỉ kô biết nó thuộc thể loại gì ( Lightning , Unit , UnitGroup , Special Effect , vv. .) ý tui muốn nói là cái đấy , chứ phần biến thì tui biết rồi
 
Hình như cái đó là để tạo leaderboard/multiboard đúng ko.Chắc là kiêu integer
 
Kill la` integer, còn String(kill[array]) thì cứ convert integer to string mà phang., còn string + là concade string(chắc là viết đúng)
 
ai có Loading Screen nào nhìn võ lâm 1 tý cho mình down cái , ko bít convert sang .tga T_T
 
Có thì có đấy nhưng hơi nặng, loading screen đọng hẳn hoi.
 
Back
Top