Stork[gm]
Donkey Kong
- 29/5/09
- 438
- 23
Tức là cái con hero đấy bị drop item rồi sau 10 phút nó Lại hồi sinh lại chứ gì?
Có phải cái này ko??
Mã:
Actions
Unit - Create 1 Mountain King for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Set Units = (Last created unit) (ở đây bạn tạo 1 cái Variable type là Unit nhé)
TRIGGER 2
Events
Unit - A unit Dies
Conditions
(Dying unit) Equal to Units
Actions
Hero - Drop the item from slot 1 of Units
Hero - Drop the item from slot 2 of Units
Hero - Drop the item from slot 3 of Units
Hero - Drop the item from slot 4 of Units
Hero - Drop the item from slot 5 of Units
Hero - Drop the item from slot 6 of Units
Wait 10.00 seconds
Hero - Instantly revive Units at (Center of (Playable map area)), Show revival graphics
,cho mỗi lv nó đc 0 điểm str,agi,int,khi hero lên lv thì add +1 point vào handleid của unit đó trong 1 hashtable.

Bạn có thể tham khảo tại 