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

Status
Không mở trả lời sau này.
híc cảm ơn anh Game_war48 đã test qua... chắc em đổi cái đó thành loop 1 dummy unit wá chứ làm 3 con nó lộn xộn hết cả lên không biết đường mà mò.
-ps: 1 lần nữa em cảm ơn anh Game_war48, nếu anh nào có thể fix dc lỗi trong map demo của em(trang 92) thì có thể trao đổi với em tiếp, còn không thì coi như em chưa từng hỏi. Cảm ơn mọi người trước

---------- Post added at 22:09 ---------- Previous post was at 21:49 ----------

Anh Game_war ơi em biết nguyên nhân vì sao rồi... Vì cái Missile Speed của object ( vì em cũng làm 1 số skill base từ skill shock wave của Orc thấy tụi nó đều chung 1 kq là leak nên tìm ra thì... khi biết dc em cũng rất bất ngờ :)) dù sao cảm ơn anh rất nhiểu hihi object mà cũng liên quan đến leak đấy lạ thật cái này chắc em không dám làm lơ với edit Object rồi ^^'... Xin lỗi em không biết add 2 cái bài post lại mod thông cảm

Nếu thế thì lần sau dùng ability Channel đi. Chi tiết cách sử dụng ở đây.
 
player hay hero??? có 2 cách :| 1.add item cho hero ( item money với tiền chỉnh la 5k =))) 2.dùng trigger (F4)
Mã:
Player - Add 5000 to Player 1 (Red) Current gold
p/s:chả hỉu sao xuống dòng ko dc

bạn ơi cho tấm hình mình họa đc ko hihi mình dốt lắm
 
bạn ơi cho tấm hình mình họa đc ko hihi mình dốt lắm

bb424ed7e70c9828a3aafc62d8702b6d_39807466.untitled.jpg
 
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 !
 
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
 
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.
 
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

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
 
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.

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....



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

Thanks !

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


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

Ở 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]


untitled.jpg


Đâ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ả ....:::^^:::

Ctrl + D
 
Chỉnh sửa cuối:
untitled.jpg


Đâ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ả ....:::^^:::
 
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
 
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 ----------

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

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 ----------

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

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
 
Chỉ mình cách bỏ vào đi , map tui có Egui chắc bạn không mở được đâu
 
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 : [email protected] chỉ tui nha, tui mù tịt về Jass

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

Chỉ mình cách bỏ vào đi , map tui có Egui chắc bạn không mở được đâu

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
 
Đâ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 >
 
Đây trigger
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 >[/code]

Leak bôi đỏ đó... Destroy 2 Group luôn ở trên chỉ destroy có 1
 
Chỉnh sửa cuối:
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 @@
 
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)
 
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
 
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

@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 :-??
 
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

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
 
Status
Không mở trả lời sau này.
Back
Top