Topic hỏi đáp về cách làm map | version 12

Thảo luận trong 'World Editor' bắt đầu bởi Tom_Kazansky, 20/10/11.

Trạng thái chủ đề:
Không mở trả lời sau này.
  1. game_war48

    game_war48 Dragon Quest

    Tham gia ngày:
    7/9/08
    Bài viết:
    1,320
    Nơi ở:
    Ice City
    Nếu thế thì lần sau dùng ability Channel đi. Chi tiết cách sử dụng ở đây.
     
  2. bardock

    bardock Mr & Ms Pac-Man

    Tham gia ngày:
    7/8/11
    Bài viết:
    105
    bạn ơi cho tấm hình mình họa đc ko hihi mình dốt lắm
     
  3. Sinni

    Sinni Donkey Kong

    Tham gia ngày:
    11/6/11
    Bài viết:
    311
    Nơi ở:
    kw_corp@yh
    [​IMG]
     
  4. leviettuan123123

    leviettuan123123 Youtube Master Race

    Tham gia ngày:
    9/3/11
    Bài viết:
    79
    Nơi ở:
    Hòn Đảo Hoan
    1) Tạo 1 spell cho dummy từ Entangling Root, sửa effect của buff là hình băng (Doodads - Crystal thì phải :-? )
    2) Tạo trigger khi unit cast spell thì set unit group thỏa: (Matching unit belongs to enemies of Casting Unit) equal to true
    3) Pick tất cả unit trong group vừa set, tạo 1 dummy và order nó cast Night Elf - Entangling Root vào Pick unit[/QUOTE]

    Thanks !
     
  5. bardock

    bardock Mr & Ms Pac-Man

    Tham gia ngày:
    7/8/11
    Bài viết:
    105
    Cho mình hỏi quy định sao cho Hero ví dụ : mỗi lần chết là 10 giây sau hồi sinh dậy hihi
     
  6. congacon238

    congacon238 Youtube Master Race

    Tham gia ngày:
    15/7/11
    Bài viết:
    21
    Cho em hoi cách làm add chiêu Locust vào tướng bằng Trigger ko? hay là chỉ em làm trigger 1 chiêu như sau: Target vào 1 Hero, Hero đó và bản thân lao vào choảng nhau như điên ko thể chơi chiêu hay chạy trong 5s.
     
  7. leviettuan123123

    leviettuan123123 Youtube Master Race

    Tham gia ngày:
    9/3/11
    Bài viết:
    79
    Nơi ở:
    Hòn Đảo Hoan
    Mã:
    Events
               Unit - A unit Dies
            Conditions
              ((Triggering Unit) is a Hero)  Equal to  True
            Actions
             Hero - Instantly revive (Triggering Unit) at ( Nơi hồi sinh ), Hide revival graphics[COLOR="Silver"]
    
    [SIZE=1]---------- Post added at 15:10 ---------- Previous post was at 15:05 ----------[/SIZE]
    
    [/COLOR][quote="bardock, post: 20453850"]Cho mình hỏi quy định sao cho Hero ví dụ : mỗi lần chết là 10 giây sau hồi sinh dậy hihi[/QUOTE]
    
    [code]Events
    Unit - A unit Dies
    Conditions
    ((Triggering Unit) is a Hero) Equal to True
    Actions
    Hero - Instantly revive (Triggering Unit) at ( Nơi hồi sinh ), Hide revival graphics

    ở trên quên bỏ vào khung
     
  8. Evil_Hunter

    Evil_Hunter Mario & Luigi

    Tham gia ngày:
    18/9/11
    Bài viết:
    786
    Nơi ở:
    Evil Forest
    Add ability Locust cho một unit bằng cách dùng lệnh này
    Mã:
    [B][COLOR="#0000FF"]Unit - Add 'Aloc' (Locust - Unselectable) to (Triggering unit)[/COLOR][/B]
    Còn phần kia thì cậu tự làm thôi....



    Cái này là cậu nhờ hay gì vậy :|
    Nói được vầy rồi mà còn làm ko dc :-@
    Demo:
    Click


    Ở trên còn thiếu, lệnh chờ 10 giây đâu :|
    Mã:
    [B][COLOR="#0000FF"]Revive Hero
        Events
            Unit - A unit Dies
        Conditions
            ((Dying unit) is A Hero) Equal to True
        Actions
            Wait 10.00 seconds
            Hero - Instantly revive (Dying unit) at (Center of (Playable map area)), Hide revival graphics[/COLOR][/B]

    Ctrl + D
     
    Chỉnh sửa cuối: 9/1/12
  9. kickboy00

    kickboy00 Mr & Ms Pac-Man

    Tham gia ngày:
    12/4/09
    Bài viết:
    164
    [​IMG]

    Đây là chữ khi dùng Jass.Ai chỉ mình chuyển lại bình thường kiểu gì đc k ? nhìn thế này chả hiểu gì cả ....:::^^:::
     
  10. HacAmChiTam1997

    HacAmChiTam1997 Mr & Ms Pac-Man

    Tham gia ngày:
    12/12/11
    Bài viết:
    116
    Ai cho mình hỏi tại sao mình cast chiêu này vài chục lần là lag map :
    Trigger 1

    Cuong Phong
    Events
    Unit - A unit Starts the effect of an ability
    Conditions
    (Ability being cast) Equal to Cuång Phong
    Actions
    Set DS[1] = (Casting unit)
    Set DSPoint[1] = (Position of DS[1])
    Set DSPoint[2] = (Target point of ability being cast)
    Unit - Create 1 |cffffff00§¹o SÜ|r for (Owner of DS[1]) at DSPoint[1] facing Default building facing degrees
    Set DS[2] = (Last created unit)
    Unit - Turn collision for DS[2] Off
    Trigger - Turn on Cuong Phong 2 <gen>
    Trigger 2

    Cuong Phong 2
    Events
    Time - Every 0.04 seconds of game time
    Conditions
    Actions
    Unit - Move DS[2] instantly to ((Position of DS[2]) offset by 50.00 towards (Angle from DSPoint[1] to DSPoint[2]) degrees), facing (Angle from DSPoint[1] to DSPoint[2]) degrees
    Set DSGroup[1] = (Units within 150.00 of (Position of DS[2]))
    Unit Group - Pick every unit in DSGroup[1] and do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    ((Picked unit) is A structure) Equal to False
    ((Picked unit) belongs to an enemy of (Owner of DS[1])) Equal to True
    ((Picked unit) is alive) Equal to True
    ((Picked unit) is in DSGroup2) Equal to False
    Then - Actions
    EGUI Effect - Create an effect at (Position of (Picked unit)) using the model Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl that lasts for 1.00 seconds
    Unit - Cause DS[1] to damage (Picked unit), dealing (Real(((Intelligence of DS[1] (Include bonuses)) x 6))) damage of attack type Hero and damage type Cold
    Unit Group - Add (Picked unit) to DSGroup2
    EGUI Dummy - Create a |cffffff00§¹o SÜ|r. for (Owner of DS[1]) at (Position of (Picked unit)) facing Default building facing. Give an expiration timer that will expire in 2.00 seconds
    Unit - Add Cyc2 to (Last created unit)
    Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Cyclone (Picked unit)
    Else - Actions
    Custom script: call DestroyGroup ( udg_DSGroup[1] )
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    (Integer((Distance between DSPoint[1] and (Position of DS[2])))) Greater than or equal to 2500
    Then - Actions
    Trigger - Turn off (This trigger)
    Unit - Kill DS[2]
    Custom script: call RemoveLocation ( udg_DSPoint[1] )
    Custom script: call RemoveLocation ( udg_DSPoint[2] )
    Unit Group - Remove all units from DSGroup2
    Else - Actions
     
  11. leviettuan123123

    leviettuan123123 Youtube Master Race

    Tham gia ngày:
    9/3/11
    Bài viết:
    79
    Nơi ở:
    Hòn Đảo Hoan
    Cho em hỏi cái skill này có bị leak nào không

    Mã:
             Events
                Unit - A unit Attacked
             Conditions
                (Unit-type of (attacking unit)) Equal to Vua Bang
             Actions
                Set Caster = (Attacking Unit)
                Set Point[2] = (Position of Caster)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                   If - Conditions
                       (Random integer number between 1 and 100) Less than or equal to 20
                   Then - Actions
                       If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                             If - Conditions
                                  (Level of Ice Blast for Caster) Equal to 1
                             Then - Actions
                                  Special Effect - Creat a special effect at Point[2] using IceNova.mdx
                                  Set SE[1] = (Last created special effect)
                                  Set Group [2] = (Units within 600 of Point[2] matching (((Matching unit) Not equal to Caster) and (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True)))
                                  Set Real[1] = ((Real((Strength of Caster (Exclude bounses))) x 2.25)
                                  Unit Group - Pick every unit in Group[2] and do (Actions)
                                        Loop - Actions
                                             Set Point[3] = (Position of (Picked unit))
                                             Special Effect - Creat a special effect at Point[3] using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                                             Set SE[2] = (Last created special effect)
                                             Unit - Cause Caster to damage (Picked unit), dealing Real[1] damage of attack type Spells and damage type Cold
                                             Special Effect - Destroy SE[2]
                                             Custom script: call RemoveLocation (udg_Point[3])
                                   Special Effect - Destroy SE[1]
                                   Custom script: call DestroyGroup (udg_Group[2])
                                   Set Real[1] = 0.00
                             Else - Actions
                                   If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        If - Conditions
                                            (Level of Ice Blast for Caster) Equal to 2
                                        Then - Actions
                                            Special Effect - Creat a special effect at Point[2] using IceNova.mdx
                                            Set SE[1] = (Last created special effect)
                                            Set Group [2] = (Units within 600 of Point[2] matching (((Matching unit) Not equal to Caster) and (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True)))
                                            Set Real[1] = ((Real((Strength of Caster (Exclude bounses))) x 2.75)
                                            Unit Group - Pick every unit in Group[2] and do (Actions)
                                                 Loop - Actions
                                                 Set Point[3] = (Position of (Picked unit))
                                                 Special Effect - Creat a special effect at Point[3] using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                                                 Set SE[2] = (Last created special effect)
                                                 Unit - Cause Caster to damage (Picked unit), dealing Real[1] damage of attack type Spells and damage type Cold
                                                 Special Effect - Destroy SE[2]
                                                 Custom script: call RemoveLocation (udg_Point[3])
                                            Special Effect - Destroy SE[1]
                                            Custom script: call DestroyGroup (udg_Group[2])
                                            Set Real[1] = 0.00
                                        Else - Actions
                                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                  If - Conditions
                                                       (Level of Ice Blast for Caster) Equal to 2
                                                  Then - Actions
                                                       Special Effect - Creat a special effect at Point[2] using IceNova.mdx
                                                       Set SE[1] = (Last created special effect)
                                                       Set Group [2] = (Units within 600 of Point[2] matching (((Matching unit) Not equal to Caster) and (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True)))
                                                       Set Real[1] = ((Real((Strength of Caster (Exclude bounses))) x 2.75)
                                                       Unit Group - Pick every unit in Group[2] and do (Actions)
                                                            Loop - Actions
                                                                Set Point[3] = (Position of (Picked unit))
                                                                Special Effect - Creat a special effect at Point[3] using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                                                                Set SE[2] = (Last created special effect)
                                                                Unit - Cause Caster to damage (Picked unit), dealing Real[1] damage of attack type Spells and damage type Cold
                                                                Special Effect - Destroy SE[2]
                                                      Custom script: call RemoveLocation (udg_Point[3])
                                                      Special Effect - Destroy SE[1]
                                                      Custom script: call DestroyGroup (udg_Group[2])
                                                      Set Real[1] = 0.00
                                                  Else - Actions[COLOR="Silver"]
    
    [SIZE=1]---------- Post added at 16:00 ---------- Previous post was at 15:58 ----------[/SIZE]
    
    [/COLOR][code]Events
                Unit - A unit Attacked
             Conditions
                (Unit-type of (attacking unit)) Equal to Vua Bang
             Actions
                Set Caster = (Attacking Unit)
                Set Point[2] = (Position of Caster)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                   If - Conditions
                       (Random integer number between 1 and 100) Less than or equal to 20
                   Then - Actions
                       If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                             If - Conditions
                                  (Level of Ice Blast for Caster) Equal to 1
                             Then - Actions
                                  Special Effect - Creat a special effect at Point[2] using IceNova.mdx
                                  Set SE[1] = (Last created special effect)
                                  Set Group [2] = (Units within 600 of Point[2] matching (((Matching unit) Not equal to Caster) and (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True)))
                                  Set Real[1] = ((Real((Strength of Caster (Exclude bounses))) x 2.25)
                                  Unit Group - Pick every unit in Group[2] and do (Actions)
                                        Loop - Actions
                                             Set Point[3] = (Position of (Picked unit))
                                             Special Effect - Creat a special effect at Point[3] using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                                             Set SE[2] = (Last created special effect)
                                             Unit - Cause Caster to damage (Picked unit), dealing Real[1] damage of attack type Spells and damage type Cold
                                             Special Effect - Destroy SE[2]
                                             Custom script: call RemoveLocation (udg_Point[3])
                                   Special Effect - Destroy SE[1]
                                   Custom script: call DestroyGroup (udg_Group[2])
                                   Set Real[1] = 0.00
                             Else - Actions
                                   If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        If - Conditions
                                            (Level of Ice Blast for Caster) Equal to 2
                                        Then - Actions
                                            Special Effect - Creat a special effect at Point[2] using IceNova.mdx
                                            Set SE[1] = (Last created special effect)
                                            Set Group [2] = (Units within 600 of Point[2] matching (((Matching unit) Not equal to Caster) and (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True)))
                                            Set Real[1] = ((Real((Strength of Caster (Exclude bounses))) x 2.75)
                                            Unit Group - Pick every unit in Group[2] and do (Actions)
                                                 Loop - Actions
                                                 Set Point[3] = (Position of (Picked unit))
                                                 Special Effect - Creat a special effect at Point[3] using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                                                 Set SE[2] = (Last created special effect)
                                                 Unit - Cause Caster to damage (Picked unit), dealing Real[1] damage of attack type Spells and damage type Cold
                                                 Special Effect - Destroy SE[2]
                                                 Custom script: call RemoveLocation (udg_Point[3])
                                            Special Effect - Destroy SE[1]
                                            Custom script: call DestroyGroup (udg_Group[2])
                                            Set Real[1] = 0.00
                                        Else - Actions
                                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                  If - Conditions
                                                       (Level of Ice Blast for Caster) Equal to 2
                                                  Then - Actions
                                                       Special Effect - Creat a special effect at Point[2] using IceNova.mdx
                                                       Set SE[1] = (Last created special effect)
                                                       Set Group [2] = (Units within 600 of Point[2] matching (((Matching unit) Not equal to Caster) and (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True)))
                                                       Set Real[1] = ((Real((Strength of Caster (Exclude bounses))) x 2.75)
                                                       Unit Group - Pick every unit in Group[2] and do (Actions)
                                                            Loop - Actions
                                                                Set Point[3] = (Position of (Picked unit))
                                                                Special Effect - Creat a special effect at Point[3] using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
                                                                Set SE[2] = (Last created special effect)
                                                                Unit - Cause Caster to damage (Picked unit), dealing Real[1] damage of attack type Spells and damage type Cold
                                                                Special Effect - Destroy SE[2]
                                                      Custom script: call RemoveLocation (udg_Point[3])
                                                      Special Effect - Destroy SE[1]
                                                      Custom script: call DestroyGroup (udg_Group[2])
                                                      Set Real[1] = 0.00
                                                  Else - Actions


    ---------- Post added at 16:03 ---------- Previous post was at 16:00 ----------

    Bỏ vào
    Mã:
     
    giùm khó nhìn quá bạn ơi, nếu được đưa map demo tui sửa cho bạn

    ---------- Post added at 16:08 ---------- Previous post was at 16:03 ----------

    Do không có nút thanks nên tui nói
    thôi chứ không phải không bik làm

    ---------- Post added at 16:12 ---------- Previous post was at 16:08 ----------

    Tiện thể cho tui xin trigger bắn cung của con Mirana trong dota
     
  12. HacAmChiTam1997

    HacAmChiTam1997 Mr & Ms Pac-Man

    Tham gia ngày:
    12/12/11
    Bài viết:
    116
    Chỉ mình cách bỏ vào đi , map tui có Egui chắc bạn không mở được đâu
     
  13. leviettuan123123

    leviettuan123123 Youtube Master Race

    Tham gia ngày:
    9/3/11
    Bài viết:
    79
    Nơi ở:
    Hòn Đảo Hoan
    Dân pro về Jass thì bôi đen phần trống bên dưới
    ai rành về Jass thì ép yahoo : kiem_99dn@yahoo.com chỉ tui nha, tui mù tịt về Jass

    ---------- Post added at 16:17 ---------- Previous post was at 16:15 ----------

    thì nhấn thêm
    Mã:
     vào đầu trigger 
    cuối trigger

    ---------- Post added at 16:25 ---------- Previous post was at 16:17 ----------

    :puke! nó bỏ lun vào khung rồi
    đến trang đầu của Topic xem cách bỏ vào khung Code
     
  14. HacAmChiTam1997

    HacAmChiTam1997 Mr & Ms Pac-Man

    Tham gia ngày:
    12/12/11
    Bài viết:
    116
    Đây trigger
    Mã:
    <trigger 1 
    
    Cuong Phong
        Events
            Unit - A unit Starts the effect of an ability
        Conditions
            (Ability being cast) Equal to Cuång Phong 
        Actions
            Set DS[1] = (Casting unit)
            Set DSPoint[1] = (Position of DS[1])
            Set DSPoint[2] = (Target point of ability being cast)
            Unit - Create 1 |cffffff00§¹o SÜ|r for (Owner of DS[1]) at DSPoint[1] facing Default building facing degrees
            Set DS[2] = (Last created unit)
            Unit - Turn collision for DS[2] Off
            Trigger - Turn on Cuong Phong 2 <gen> 
    Trigger 2
     Cuong Phong 2
        Events
            Time - Every 0.04 seconds of game time
        Conditions
        Actions
            Unit - Move DS[2] instantly to ((Position of DS[2]) offset by 50.00 towards (Angle from DSPoint[1] to DSPoint[2]) degrees), facing (Angle from DSPoint[1] to DSPoint[2]) degrees
            Set DSGroup[1] = (Units within 150.00 of (Position of DS[2]))
            Unit Group - Pick every unit in DSGroup[1] and do (Actions)
                Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        If - Conditions
                            ((Picked unit) is A structure) Equal to False
                            ((Picked unit) belongs to an enemy of (Owner of DS[1])) Equal to True
                            ((Picked unit) is alive) Equal to True
                            ((Picked unit) is in DSGroup2) Equal to False
                        Then - Actions
                            EGUI Effect - Create an effect at (Position of (Picked unit)) using the model Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl that lasts for 1.00 seconds
                            Unit - Cause DS[1] to damage (Picked unit), dealing (Real(((Intelligence of DS[1] (Include bonuses)) x 6))) damage of attack type Hero and damage type Cold
                            Unit Group - Add (Picked unit) to DSGroup2
                            EGUI Dummy - Create a |cffffff00§¹o SÜ|r. for (Owner of DS[1]) at (Position of (Picked unit)) facing Default building facing. Give an expiration timer that will expire in 2.00 seconds
                            Unit - Add Cyc2  to (Last created unit)
                            Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Cyclone (Picked unit)
                        Else - Actions
            Custom script:   call DestroyGroup ( udg_DSGroup[1] )
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Integer((Distance between DSPoint[1] and (Position of DS[2])))) Greater than or equal to 2500
                Then - Actions
                    Trigger - Turn off (This trigger)
                    Unit - Kill DS[2]
                    Custom script:   call RemoveLocation ( udg_DSPoint[1] )
                    Custom script:   call RemoveLocation ( udg_DSPoint[2] )
                    Unit Group - Remove all units from DSGroup2
                Else - Actions >
     
  15. Evil_Hunter

    Evil_Hunter Mario & Luigi

    Tham gia ngày:
    18/9/11
    Bài viết:
    786
    Nơi ở:
    Evil Forest
    Leak bôi đỏ đó... Destroy 2 Group luôn ở trên chỉ destroy có 1
     
    Chỉnh sửa cuối: 9/1/12
  16. HacAmChiTam1997

    HacAmChiTam1997 Mr & Ms Pac-Man

    Tham gia ngày:
    12/12/11
    Bài viết:
    116
    Vậy là mỗi 0.04 giây phải set 1 biến point cho con mình move rồi xóa hả a @@
     
  17. blackdragon2202

    blackdragon2202 Youtube Master Race

    Tham gia ngày:
    20/10/11
    Bài viết:
    4
    Xem hộ mình cái này, repick được nhưng sao lại lỗi không có thông báo nhỉ


    Repick Command
    Events
    Player - Player 2 (Blue) types a chat message containing -rp as An exact match
    Player - Player 3 (Teal) types a chat message containing -rp as An exact match
    Player - Player 4 (Purple) types a chat message containing -rp as An exact match
    Player - Player 5 (Yellow) types a chat message containing -rp as An exact match
    Player - Player 6 (Orange) types a chat message containing -rp as An exact match
    Player - Player 8 (Pink) types a chat message containing -rp as An exact match
    Player - Player 9 (Gray) types a chat message containing -rp as An exact match
    Player - Player 10 (Light Blue) types a chat message containing -rp as An exact match
    Player - Player 11 (Dark Green) types a chat message containing -rp as An exact match
    Player - Player 12 (Brown) types a chat message containing -rp as An exact match
    Conditions
    (Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 1
    ((Triggering player) Current gold) Greater than or equal to 200
    Actions
    Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
    Loop - Actions
    Set PlayerGroupArray[9] = (All players)
    Player Group - Pick every player in PlayerGroupArray[9] and do (Actions)
    Loop - Actions
    Player - Make (Unit-type of (Picked unit)) Available for training/construction by (Picked player)
    Custom script: call DestroyForce (udg_PlayerGroupArray[9])
    Unit - Remove (Picked unit) from the game
    Set Random_Hero = (Random integer number between 1 and Random_Count)
    Unit - Create 1 Hero_Array[Random_Hero] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
    Set Hero_Array[Random_Hero] = Hero_Array[Random_Count]
    Selection - Select (Last created unit) for (Owner of (Last created unit))
    Player - Add -200 to (Triggering player) Current gold
    Game - Display to (All players) for 10.00 seconds the text: ((Name of (Player((Integer A)))) + (®· repick ngÉu nhiªn ®­îc + (Name of (Last created unit))))
    Camera - Pan camera for (Triggering player) to ((Triggering player) start location) over 0.00 seconds
    Set PlayerGroupArray[10] = (All players)
    Player Group - Pick every player in PlayerGroupArray[10] and do (Actions)
    Loop - Actions
    Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)
    Set Random_Data[Random_Hero] = Random_Count
    Set Random_Count = (Random_Count - 1)
     
  18. fantom2409

    fantom2409 Mr & Ms Pac-Man

    Tham gia ngày:
    15/8/11
    Bài viết:
    194
    Ai giải thích hộ mình cách làm một unit từ từ bay lên rồi hạ xuống?(Giải thích thôi nhé) giống như Torent trong DotA ấy??

    Tks
     
  19. kickboy00

    kickboy00 Mr & Ms Pac-Man

    Tham gia ngày:
    12/4/09
    Bài viết:
    164
    @fantom : Ban đầu tạo cho unit 1 skill để nó có thể bay đc.Sau đó dùng các trigger để đưa unit lên cao rồi lại xuống thấp.Kết thúc sẽ loại skill đi để unit đi bộ.Hết.

    Cho hỏi lỗi dùng Jass mà khi làm xong.Muốn test tôi cứ ấn Ctrl + F9 nhưng nó chỉ test xem có bị lỗi không rồi ẩn xuống mà không vào war.Ai sửa đc lỗi này k :-??
     
  20. LeoNguyen112

    LeoNguyen112 Dragon Quest

    Tham gia ngày:
    22/5/10
    Bài viết:
    1,438
    Nơi ở:
    TP.HCM

    Mỗi 0.0x giây, tăng độ cao của unit lên, đến khi nào nó đủ cao rồi thì hạ xuống lại. Code:
    Mã:
    Animation - Change [I][U]Unit[/U][/I] flying height to ((Current flying height of [U]Unit[/U]) + [I][U]25[/U][/I]) at 0.00
    
    Trước khi muốn bay, phải add cho unit đó ability Crow Form, mỗi unit chỉ cần add 1 lần là bay được nên add xong thì remove luôn
     
Trạng thái chủ đề:
Không mở trả lời sau này.

Chia sẻ trang này