TranTrongTin
Youtube Master Race
- 31/7/10
- 32
- 0
Làm thử cái Revive Hero thoe kiểu lựa chọn trong dialog mà cũng chẳng xong. Coi giùm xem sai ở cái nào thế!
(Còn một số trigger nữa nhưng không liên quan nên không đưa lên)
Sao mà ko hề hồi sinh, chỉ giúp nhé!
Mã:
Revive Dialog
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Or - Any (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
(Owner of (Triggering unit)) Equal to Player 3 (Teal)
(Owner of (Triggering unit)) Equal to Player 4 (Purple)
(Owner of (Triggering unit)) Equal to Player 5 (Yellow)
(Owner of (Triggering unit)) Equal to Player 6 (Orange)
(Owner of (Triggering unit)) Equal to Player 7 (Green)
(Owner of (Triggering unit)) Equal to Player 8 (Pink)
(Owner of (Triggering unit)) Equal to Player 9 (Gray)
(Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
Actions
Dialog - Change the title of ReviveHeroDialog to Select Reivive
Dialog - Create a dialog button for ReviveHeroDialog labelled Hoi sinh
Set ReviveHeroDialogButton[1] = (Last created dialog Button)
Dialog - Create a dialog button for ReviveHeroDialog labelled Ve thanh
Set ReviveHeroDialogButton[2] = (Last created dialog Button)
Dialog - Show ReviveHeroDialog for (Triggering player)
Mã:
Revive
Events
Dialog - A dialog button is clicked for ReviveHeroDialog
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to ReviveHeroDialogButton[1]
Then - Actions
Hero - Instantly revive (Dying unit) at (Position of (Dying unit)), Show revival graphics
Else - Actions
Do nothing
(Còn một số trigger nữa nhưng không liên quan nên không đưa lên)
Sao mà ko hề hồi sinh, chỉ giúp nhé!




