VanBaoPhong
Mr & Ms Pac-Man
- 25/2/07
- 203
- 2
Anh Tom có thể hướng dẫn cách làm Bảng thống kê giống DotA (lúc kết thúc) được không ạ ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Mã:Add Item Events Player - Player 1 (Red) types a chat message containing -additem as An exact match Player - Player 2 (Blue) types a chat message containing -additem as An exact match Conditions (Substring((Entered chat string), 1, 9)) Equal to -additem Actions Set TempString = (Substring((Entered chat string), 10, (Length of (Entered chat string)))) Set TempUnit = (Triggering unit) Set TypeItemGive = Manual of Health For each (Integer A) from 1 to (Integer(TempString)), do (Actions) Loop - Actions Hero - Create TypeItemGive and give it to TempUnit
Các biến: TempString (string), TempUnit (unit), TypeItemGive (item-type)
Thay "(Triggering unit)" bằng hero muốn add item cho và "Manual of Health" bằng item type muốn add.
Chú ý: string chat vào là: "-additem " (có dấu cách)
Nhân đây bác cho tớ hỏi ké với, tớ muốn làm một trigger mà khi gõ red thì toán quân mình đang sử dụng thành red, gõ blue, toán quân sử dụng thành blue, cứ như thế cho tất cả các màu còn lại có được không?
Nhân đây bác cho tớ hỏi ké với, tớ muốn làm một trigger mà khi gõ red thì toán quân mình đang sử dụng thành red, gõ blue, toán quân sử dụng thành blue, cứ như thế cho tất cả các màu còn lại có được không?
Néu ko thi chi cách respwan creep theo thoi gian cung dc.
EDIT: Bao Phong: cái bảng đó khá là nhiều trigger..làm cũng được nhưng phải test kỹ..để hôm nào mình thử xem...


Hiểu E trước đã, ngày xưa đâu có biết web gì, tự mò tự đọc tự hiểu thôi (_ _") Muốn làm spell nào thì post lên chứ nói vậy thì bí lắm..... 
)
Create SFX for Team
Events
Player - Player 1 (Red) types a chat message containing sf as An exact match
Conditions
Actions
Set TempPlayer = Player 1 (Red)
Set TempString = <Empty String>
Custom script: if IsPlayerAlly( GetLocalPlayer(), udg_TempPlayer ) then
Set TempString = Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Custom script: endif
Set TempLoc = (Center of (Playable map area))
Special Effect - Create a special effect at TempLoc using TempString
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation( udg_TempLoc )
