Hix.. mới vừa làm lại cái Destiny Ways cho nó nhỏ lại.. (nhìu người than rộng :p ) Mừ map RPG của ông ông hỉu nhất chứ.. nhờ tui sao được.. Làm hông ăn ý là cái chắc đó pa. Đâu phải như 3 cửa hay gì đâu mà làm dùm chời.
Count time down thì nếu map ông có pit duel, nên làm theo cách sau:
Variables:
HeroReviveTime(aray=12 lun) - Timer
WindowRTime(aray=12) - WindowTimer
Heroes(aray=12) - Unit (cái này gán cho các Heroes)
Trigger Heroes Die:
Event:
Unit - A unit Dies
Conditions:
((Triggering unit) is A Hero) Equal to True
.. (tuỳ map, có thể là Duel Equal to False)
Actions:
Countdown Timer - Start HeroReviveTime[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in (n) seconds (n tuỳ ông)
Countdown Timer - Create a timer window for HeroReviveTime[(Player number of (Owner of (Triggering unit)))] with title (Name of (Owner of (Triggering unit)))
Set WindowRTime[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
Countdown Timer - Show WindowRTime[(Player number of (Owner of (Triggering unit)))]
------------ Đó là lập cửa sổ đếm thời gian, còn trigger Receive thì lấy event là Time - WindowRTime
![transformer [..] [..]](/images/smilies/yahoo/transformer.gif)
expires, chắc ông mò được.