Topic hỏi đáp (tập 5) về cách làm map

Status
Không mở trả lời sau này.
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ế!
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é!
 
Bạn thử set 1 biến point = (Position of (Dying Unit)) và Set Unit = Dying Unit ở trigger 1 rồi ở trigger 2 sửa lại thế này
Mã:
Hero - Instantly revive ([U][U]Unit[/U][/U]) at ([U]Biến Point[/U]), Show revival graphics
 
Chỉnh sửa cuối:
trigger 2 event là Dialog - A dialog button is clicked for ReviveHeroDialog, nên Dying unit chả có tác dụng gì, nên ở trigger 1, nên tạo 1 biến như Hero_dieset Hero_die = Dying unit rùi trigger 2 thay Dying unit thành Hero_die

Nhìn sơ bộ thì phần Action của bạn chỉ tác dụng với 1 Player chứ không thể cho 10 Player được, thậm chí có thể dẫn đến lỗi. Bạn tự tìm hiểu nhé :D
 
thanks anh LeoNguyen112 nhé :D , anh chỉ em làm abilility combo drak (hôk bík đúng hôk) của con ngọc cuong trong map legend of the dragon với :)
 
Chỉnh sửa cuối:
hix hix ai chỉ cách ẩn icon skill với hỏi 3 4 lần rồi mà :((
 
Cho hỏi sắp tới liệu có contest gì ko?
 
Cho hỏi về cách làm Burning speare của Huskar DotA .Đặc điểm :
1 )auto cast , 15HP / lần
2) đốt máu x máu /s ,stack vô số lần và đốt bằng trigger
GUI càng tốt
 
map hota dh-g chuyễn sang 100% jass rùi =))
nên k có GUI đâu
 
thanks anh LeoNguyen112 nhé :D , anh chỉ em làm abilility combo drak (hôk bík đúng hôk) của con ngọc cuong trong map legend of the dragon với :)

Mô tả skill đi bạn, mình không chơi legend
2) đốt máu x máu /s ,stack vô số lần và đốt bằng trigger
GUI càng tốt
Là sao??
 
ai chỉ em làm skill này với

sieuthiNHANH2010081422532mgm3owy2md316678.jpeg


sr vẽ hơi xấu :)
target nằm ở giữa

spell:
-khi cast spell , make casting unit invul , pause casting unit + target
-Unit biến qua lại từ 1 - 2 - 3 - 4 - 5 - 1 trong vòng 5s
-gây damage lên targer , unpause
 
ai chỉ em làm skill này với
sr vẽ hơi xấu :)
target nằm ở giữa

spell:
-khi cast spell , make casting unit invul , pause casting unit + target
-Unit biến qua lại từ 1 - 2 - 3 - 4 - 5 - 1 trong vòng 5s
-gây damage lên targer , unpause

Cái này mình làm được rồi nhưng còn lỗi, post lên cho các bác sửa giùm:
Mã:
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to (==) Chain Lightning
    Actions
        Set Target = (Target unit of ability being cast)
        Unit - Pause Target
        Unit - Pause (Casting unit)
        Unit - Make (Casting unit) Invulnerable
        Unit - Create 1 Unit for Player at ((Position of Target) offset by 250.00 towards 0 degrees) facing Default building facing (270.0) degrees
        Set Dummy = (Last created unit)
        Special Effect - Create a special effect attached to the chest of Dummy using Abilities\Weapons\PhoenixMissile\Phoenix_Missile_mini.mdl
        Set SE = (Last created special effect)
         Do Multiple ActionsFor each (Integer A) from 1 to 5, do (Actions)
            Loop - Actions
                Unit - Move Dummy instantly to ((Position of Target) offset by 600.00 towards (144.00 x (Real((Integer A)))) degrees)
                Unit - Cause Dummy to damage Target, dealing 20.00 damage of attack type Spells and damage type Normal
                Wait 0.02 seconds
        Special Effect - Destroy SE
        Unit - Remove Dummy from the game
        Unit - Unpause Target
        Unit - Unpause (Casting unit)
        Unit - Make (Casting unit) Vulnerable
Nó còn bị lỗi là move tới 10-20 lần, còn nếu chỉnh event là Finish casting thì nó move có 3 lần. Bó tay
 
cho em hỏi dummy là con zì thế =.=
còn cái skill combo drak là lúc đầu , thằng goku nó bay lên với target đá 1 cái rồi bay qua chỗ khác , khoãng năm lần là nó nghĩ , mỗi lần đá nó xài SE LightNova :|
 
cho em hỏi con dummy trong spell này làm kỉu nào thế @_@
Mã:
Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to (==) Chain Lightning
    Actions
        Set Target = (Target unit of ability being cast)
        Unit - Pause Target
        Unit - Pause (Casting unit)
        Unit - Make (Casting unit) Invulnerable
        Unit - Create 1 Unit for Player at ((Position of Target) offset by 250.00 towards 0 degrees) facing Default building facing (270.0) degrees
        Set Dummy = (Last created unit)
        Special Effect - Create a special effect attached to the chest of Dummy using Abilities\Weapons\PhoenixMissile\Phoenix_Missile_mini.mdl
        Set SE = (Last created special effect)
         Do Multiple ActionsFor each (Integer A) from 1 to 5, do (Actions)
            Loop - Actions
                Unit - Move Dummy instantly to ((Position of Target) offset by 600.00 towards (144.00 x (Real((Integer A)))) degrees)
                Unit - Cause Dummy to damage Target, dealing 20.00 damage of attack type Spells and damage type Normal
                Wait 0.02 seconds
        Special Effect - Destroy SE
        Unit - Remove Dummy from the game
        Unit - Unpause Target
        Unit - Unpause (Casting unit)
        Unit - Make (Casting unit) Vulnerable
 
Đây nè :
Mã:
Unit - Create 1 [B][COLOR="Red"]Unit[/COLOR][/B] for Player at ((Position of Target) offset by 250.00 towards 0 degrees) facing Default building facing (270.0) degrees

Mà trigger trên bị leak point nhé, sửa lại đi.
 
xin dụng cụ giảm dung lượng map
 
Chỉnh sửa cuối:
cho em hỏi cái này ở đâu ra thế kiếm hoài không thấy
Mã:
(144.00 x (Real((Integer A))
chỉ em làm spell này với
còn cái skill combo drak là lúc đầu , thằng goku nó bay lên với target đá 1 cái rồi bay qua chỗ khác , khoãng năm lần là nó nghĩ , mỗi lần đá nó xài SE LightNova
 
cho em hỏi cái này ở đâu ra thế kiếm hoài không thấy
Mã:
(144.00 x (Real((Integer A))
chỉ em làm spell này với

-Cái đó bạn kiếm dòng convert integer to real
-Cái spell đó phần action làm cho 2 unit bay lên, rồi move như spell trên thôi. Cái quan trọng là phải có model có animate là đá
 
Status
Không mở trả lời sau này.
Back
Top