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

Status
Không mở trả lời sau này.
Xin hỏi lại câu này với :(. Và vì sao em làm chiêu 1 của PA đổi số từ chiêu storm bolt thì mục tiêu bị slow trước cả khi con dao bay tới vậy :(
Mã:
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to (==) Stifling Dagger
    Actions
        Unit - Create 1 Wisp for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Default building facing (270.0) degrees
        Unit - Add Slow to (Last created unit)
        Unit - Set level of Slow for (Last created unit) to (Level of (Ability being cast) for (Triggering unit))
        Unit - Order (Last created unit) to Human Sorceress - Slow (Target unit of ability being cast)
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)

có thể skill 1 PA làm = slide

ohm cho mình hỏi sao cái model mình vừa down vể mở lên xem = model editor thì thấy cả model đen thui vậy??? h phải làm sao???

ai giúp mình với!!!
 
có thể skill 1 PA làm = slide



ai giúp mình với!!!

PA skil 1 base từ 1 skil có missile và để lại buff.
P/s khà khà, tìm thấy lỗi rồi. Hóa ra do biến array mình để ở max nên bị. May mà chưa del làm lại.
 
cho hỏi lỗi 5 trigger này:
2 Trigger đầu của skill Cage Of Eden
[spoil]
Mã:
Cage of Eden
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Cage Of Eden 
    Actions
        Set MUI[9] = (MUI[9] + 1)
        Set Loc[9] = (Position of (Triggering unit))
        Set LevelMUI[MUI[9]] = (Level of Cage Of Eden  for (Triggering unit))
        Set RealMUI[MUI[9]] = 5.00
        Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at Loc[9] facing Default building facing degrees
        Set DummyMUI[MUI[9]] = (Last created unit)
        Unit - Add Cage Dummy   to DummyMUI[MUI[9]]
        Unit - Set level of Cage Dummy   for DummyMUI[MUI[9]] to LevelMUI[MUI[9]]
        Set Group[2] = (Units within 500.00 of Loc[9] matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
        Unit Group - Pick every unit in Group[2] and do (Actions)
            Loop - Actions
                Unit - Order DummyMUI[MUI[9]] to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
        Custom script:   call DestroyGroup( udg_Group[2] )
        For each (Integer A) from 1 to 18, do (Actions)
            Loop - Actions
                Set Loc[10] = (Loc[9] offset by 500.00 towards ((Real((Integer A))) x 20.00) degrees)
                Destructible - Create a Summer Tree Wall at Loc[10] facing (Random angle) with scale 1.00 and variation 0
        Trigger - Turn on CoE Loop <gen>
        EGUI Leak - Remove Loc[9]
        EGUI Leak - Remove Loc[10]
Mã:
CoE Loop
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer MUI2[9]) from 1 to MUI[9], do (Actions)
            Loop - Actions
                Set LocMUI[MUI2[9]] = (Position of DummyMUI[MUI2[9]])
                Set RealMUI[MUI2[9]] = (RealMUI[MUI2[9]] - 1.00)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        [B]RealMUI[MUI2[9]] Equal to 0.00[/B]
                    Then - Actions
                        Unit - Remove DummyMUI[MUI2[9]] from the game
                        Destructible - Pick every destructible within 600.00 of LocMUI[MUI2[9]] and do (Actions)
                            Loop - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Destructible-type of (Picked destructible)) Equal to Summer Tree Wall
                                    Then - Actions
                                        Destructible - Remove (Picked destructible)
                                    Else - Actions
                        Set MUI[9] = (MUI[9] - 1)
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                MUI[9] Equal to 0
                            Then - Actions
                                Set MUI2[9] = 0
                                Trigger - Turn off (This trigger)
                            Else - Actions
                    Else - Actions
                EGUI Leak - Remove LocMUI[MUI2[9]]
[/spoil]
3 trigger tiếp theo của skill Narural Order :
[spoil]
Mã:
Nature Order
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Natural Order (Spell)
    Actions
        Set MUI[10] = (MUI[10] + 1)
        Set Destructibles[MUI[10]] = (Target destructible of ability being cast)
        Set LocMUI[MUI[10]] = (Position of Destructibles[MUI[10]])
        Set CasterMUI[MUI[10]] = (Triggering unit)
        Set RealMUI[MUI[10]] = 2.00
        Set LevelMUI[MUI[10]] = (Level of Natural Order (Spell) for CasterMUI[MUI[10]])
        Unit - Add Release  to CasterMUI[MUI[10]]
        Unit - Set level of Release  for CasterMUI[MUI[10]] to LevelMUI[MUI[10]]
        Player - Disable Natural Order (Spell) for (Owner of CasterMUI[MUI[10]])
        Trigger - Turn on Release Order <gen>
        Trigger - Turn on Nature Loop <gen>
Mã:
Nature Loop
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer MUI2[10]) from 1 to MUI[10], do (Actions)
            Loop - Actions
                Set RealMUI[MUI2[10]] = (RealMUI[MUI2[10]] - 1.00)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        RealMUI[MUI2[10]] Less than or equal to 0.00
                    Then - Actions
                        Set MUI[10] = (MUI[10] - 1)
                        Unit - Remove Release  from CasterMUI[MUI2[10]]
                        Player - Enable Natural Order (Spell) for (Owner of CasterMUI[MUI2[10]])
                        EGUI Leak - Remove Loc[12]
                        EGUI Leak - Remove Loc[13]
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                MUI[10] Equal to 0
                            Then - Actions
                                Set MUI2[10] = 0
                                Trigger - Turn off (This trigger)
                            Else - Actions
                    Else - Actions
Mã:
Release Order
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Release 
    Actions
        For each (Integer MUI2[10]) from 1 to MUI[10], do (Actions)
            Loop - Actions
                Set Loc[13] = (Target point of ability being cast)
                Unit - Create 1 Dummy Caster for (Owner of CasterMUI[MUI2[10]]) at LocMUI[MUI2[10]] facing Default building facing degrees
                Set Dummy[8] = (Last created unit)
                Unit - Add a 0.50 second Generic expiration timer to Dummy[8]
                Unit - Add Nature's Order  to Dummy[8]
                Unit - Set level of Nature's Order  for Dummy[8] to LevelMUI[MUI2[10]]
                Unit - Order Dummy[8] to Orc Tauren Chieftain - Shockwave Loc[13]
                [B]Set RealMUI[MUI2[10]] = 0.00[/B]
                EGUI Leak - Remove LocMUI[MUI2[10]]
                EGUI Leak - Remove Loc[13]
                Trigger - Turn off (This trigger)
[/spoil]

Skill Cage Of Eden: dùng để tạo ra 1 vòng tròn cây nhốt đối thủ lại trong 5s. Sau 5s sẽ tiêu diệt hết các cây đã tạo:
Skill Natural Order : target vào 1 cái cây sẽ cho skill dummy ( Release ) trong 2s. trong 2s đó nếu target vào ground sẽ bắn ra 1 đường shockwave r bỏ skill dummy, sau 2s nếu k target vào ground sẽ mất skill dummy.
Vấn đề : Khi sử dụng Cage Of Eden r` target Natural Order vào 1 trong n~ cái cây từ Cage Of Eden thì lập lức các cây đó biến mất. Mặc dù e đã set Loop là 2 biến For MUI2[9] ...... và For MUI2[10] riêng biệt nhau. vậy s vẫn bị đụng về biến RealMUI ở 2 trigger
 
Chỉnh sửa cuối:
^ Còn 1 kiểu đơn giản hơn mà ko dùng slide là tạo 1 skill stun buff là 0.01s, damage là 1, trigger take damage if unit have buff => slow ( làm dễ nếu map đang sử dụng trigger take damage ), nếu ko mún unit bị stun mà chỉ slow thì lấy ability acid bomb r chỉnh damage intever là 0.01s, buff là 0.02 thế là xong, nhớ trong trigger take damage là phải có remove buff
 
@langthangbairac: đã tìm ra bug chưa? Đưa map đây mình sửa cho :)
 
^ Còn 1 kiểu đơn giản hơn mà ko dùng slide là tạo 1 skill stun buff là 0.01s, damage là 1, trigger take damage if unit have buff => slow ( làm dễ nếu map đang sử dụng trigger take damage ), nếu ko mún unit bị stun mà chỉ slow thì lấy ability acid bomb r chỉnh damage intever là 0.01s, buff là 0.02 thế là xong, nhớ trong trigger take damage là phải có remove buff

^ Còn 1 kiểu đơn giản hơn mà ko dùng slide là tạo 1 skill stun buff là 0.01s, damage là 1, trigger take damage if unit have buff => slow ( làm dễ nếu map đang sử dụng trigger take damage ), nếu ko mún unit bị stun mà chỉ slow thì lấy ability acid bomb r chỉnh damage intever là 0.01s, buff là 0.02 thế là xong, nhớ trong trigger take damage là phải có remove buff

Siêu nhân như IF thì chắc chắn hắn dùng slide đấy, đỡ bị bug và leak hơn một phần
 
ai giúp mình đi! tại sao khi mình mở model vừa down bằng model editor thì cái model nó đen thui vậy?
 
làm sao để tạo 1 biến mảng kiểu như: "caster[x,y]" với x,y là 2 biến integer.... (đại khái là tạo biến mảng 2 chiều ấy mà...)

@Andy_by: giao cho ông chả khác nào "giao trứng cho ác".
 
^ Còn 1 kiểu đơn giản hơn mà ko dùng slide là tạo 1 skill stun buff là 0.01s, damage là 1, trigger take damage if unit have buff => slow ( làm dễ nếu map đang sử dụng trigger take damage ), nếu ko mún unit bị stun mà chỉ slow thì lấy ability acid bomb r chỉnh damage intever là 0.01s, buff là 0.02 thế là xong, nhớ trong trigger take damage là phải có remove buff

cái dagger đó là dummy slide đó, storm bolt thì lấy đâu ra vision. Với lại, dagger đang bay mà target chết thì dagger cũng mất.

làm sao để tạo 1 biến mảng kiểu như: "caster[x,y]" với x,y là 2 biến integer.... (đại khái là tạo biến mảng 2 chiều ấy mà...)

cái này hãy tham khảo JassHelperManual, mục "2D arrays"
 
^ Thì đúng là Icefrog dùng slide, nhưng mà cách của em chỉ làm cho đơn giản hơn thôi, ko tốn nhìu trigger
 
Không biết tại diễn đàn hay tại máy mình mà sao không đính kèm được nhỉ?
 
Không biết tại diễn đàn hay tại máy mình mà sao không đính kèm được nhỉ?

coi chừng bị ăn point về cái tội ngoài lề đấy ~:>
@fantom2409: bạn cũng vậy đó :))
 
mọi người cho mình hỏi skill này bị lỗi ở đâu mà cast thỉnh thoảng gây Fatal Disconect ra ngoài.
Mã:
KimThienThoatVariable
    Events
        Map initialization
    Conditions
    Actions
        Set TiAbilityDummy = KimThienThoatSlow (Slow)
        Set TiAbilityMain = Kiem ThiÒn Tho¸t 
        Set DummyCaster = KiemThienThoatDummy
Tringger 2
Mã:
KimThienThoat
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to TiAbilityMain
    Actions
        Set Timewalk_Unit = (Triggering unit)
        Set Timewalk_UnitPoint = (Position of Timewalk_Unit)
        Set Timewalk_Point = (Target point of ability being cast)
        Set Timewalk_Angle = (Angle from Timewalk_UnitPoint to Timewalk_Point)
        Set Timewalk_MaxDistance = (Distance between Timewalk_UnitPoint and Timewalk_Point)
        Set Timewalk_DistanceTraveled = 0.00
        Unit - Turn collision for Timewalk_Unit Off
        Unit - Pause Timewalk_Unit
        Unit - Make Timewalk_Unit Invulnerable
        Animation - Change Timewalk_Unit's animation speed to 150.00% of its original speed
        Animation - Play (Triggering unit)'s spell animation
        Animation - Change Timewalk_Unit's vertex coloring to (0.00%, 0.00%, 0.00%) with 0.00% transparency
        Custom script:   call RemoveLocation(udg_Timewalk_UnitPoint)
        Custom script:   call RemoveLocation(udg_Timewalk_Point)
        Trigger - Turn on KiemThienThoatLoop <gen>
Tringger 3
Mã:
KiemThienThoatLoop
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Timewalk_DistanceTraveled Greater than or equal to Timewalk_MaxDistance
            Then - Actions
                Set Timewalk_DistanceTraveled = 0.00
                Set Timewalk_Point = (Position of Timewalk_Unit)
                Unit - Turn collision for Timewalk_Unit On
                Animation - Change Timewalk_Unit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
                Environment - Create a 0.50 second random deformation at Timewalk_Point with radius 200.00, using depths between -10.00 and 10.00, updating every 0.10 seconds
                Unit - Create 1 DummyCaster for (Owner of Timewalk_Unit) at Timewalk_Point facing Default building facing degrees
                Unit - Set level of TiAbilityDummy for (Last created unit) to (Level of TiAbilityMain for Timewalk_Unit)
                Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
                Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
                Animation - Change Timewalk_Unit's animation speed to 100.00% of its original speed
                Animation - Reset Timewalk_Unit's animation
                Unit - Unpause Timewalk_Unit
                Unit - Make Timewalk_Unit Vulnerable
                Unit - Order Timewalk_Unit to Stop
                Custom script:   call RemoveLocation(udg_Timewalk_Point)
                Trigger - Turn off (This trigger)
            Else - Actions
                Set Timewalk_UnitPoint = (Position of Timewalk_Unit)
                Set Timewalk_Point = (Timewalk_UnitPoint offset by 20.00 towards Timewalk_Angle degrees)
                Unit - Move Timewalk_Unit instantly to Timewalk_Point
                Set Timewalk_DistanceTraveled = (Timewalk_DistanceTraveled + 20.00)
                Custom script:   call RemoveLocation(udg_Timewalk_UnitPoint)
                Custom script:   call RemoveLocation(udg_Timewalk_Point)
 
Trigger 1 dùng Events là Eplased game time is 0 xem
 
mọi người cho mình hỏi skill này bị lỗi ở đâu mà cast thỉnh thoảng gây Fatal Disconect ra ngoài.
Mã:
KimThienThoatVariable
    Events
        Map initialization
    Conditions
    Actions
        Set TiAbilityDummy = KimThienThoatSlow (Slow)
        Set TiAbilityMain = Kiem ThiÒn Tho¸t 
        Set DummyCaster = KiemThienThoatDummy
Tringger 2
Mã:
KimThienThoat
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to TiAbilityMain
    Actions
        Set Timewalk_Unit = (Triggering unit)
        Set Timewalk_UnitPoint = (Position of Timewalk_Unit)
        Set Timewalk_Point = (Target point of ability being cast)
        Set Timewalk_Angle = (Angle from Timewalk_UnitPoint to Timewalk_Point)
        Set Timewalk_MaxDistance = (Distance between Timewalk_UnitPoint and Timewalk_Point)
        Set Timewalk_DistanceTraveled = 0.00
        Unit - Turn collision for Timewalk_Unit Off
        Unit - Pause Timewalk_Unit
        Unit - Make Timewalk_Unit Invulnerable
        Animation - Change Timewalk_Unit's animation speed to 150.00% of its original speed
        Animation - Play (Triggering unit)'s spell animation
        Animation - Change Timewalk_Unit's vertex coloring to (0.00%, 0.00%, 0.00%) with 0.00% transparency
        Custom script:   call RemoveLocation(udg_Timewalk_UnitPoint)
        Custom script:   call RemoveLocation(udg_Timewalk_Point)
        Trigger - Turn on KiemThienThoatLoop <gen>
Tringger 3
Mã:
KiemThienThoatLoop
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Timewalk_DistanceTraveled Greater than or equal to Timewalk_MaxDistance
            Then - Actions
                Set Timewalk_DistanceTraveled = 0.00
                Set Timewalk_Point = (Position of Timewalk_Unit)
                Unit - Turn collision for Timewalk_Unit On
                Animation - Change Timewalk_Unit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
                [COLOR="#FF0000"]Environment - Create a 0.50 second random deformation at Timewalk_Point with radius 200.00, using depths between -10.00 and 10.00, updating every 0.10 seconds[/COLOR]
                Unit - Create 1 DummyCaster for (Owner of Timewalk_Unit) at Timewalk_Point facing Default building facing degrees
                Unit - Set level of TiAbilityDummy for (Last created unit) to (Level of TiAbilityMain for Timewalk_Unit)
                Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
                Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
                Animation - Change Timewalk_Unit's animation speed to 100.00% of its original speed
                Animation - Reset Timewalk_Unit's animation
                Unit - Unpause Timewalk_Unit
                Unit - Make Timewalk_Unit Vulnerable
                Unit - Order Timewalk_Unit to Stop
                Custom script:   call RemoveLocation(udg_Timewalk_Point)
                Trigger - Turn off (This trigger)
            Else - Actions
                Set Timewalk_UnitPoint = (Position of Timewalk_Unit)
                Set Timewalk_Point = (Timewalk_UnitPoint offset by 20.00 towards Timewalk_Angle degrees)
                Unit - Move Timewalk_Unit instantly to Timewalk_Point
                Set Timewalk_DistanceTraveled = (Timewalk_DistanceTraveled + 20.00)
                Custom script:   call RemoveLocation(udg_Timewalk_UnitPoint)
                Custom script:   call RemoveLocation(udg_Timewalk_Point)
Đổi 0.01s thành 1 số lớn hơn thử xem, có thể bạn cho nó chạy liên tục nên gây lag và dis ra ngoài đấy.

TOM: đừng có dùng cái deformation random kia, dùng crater/ripple/wave thôi. Làm đất lún một cái như Thunder Clap thì dùng crater là đc rồi

Trigger 1 dùng Events là Eplased game time is 0 xem
Eplased time is 0 để làm zì ?

Cho em quote cái này , khỏi fải quote lại nữa :

cho hỏi lỗi 5 trigger này:
2 Trigger đầu của skill Cage Of Eden
[spoil]
Mã:
Cage of Eden
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Cage Of Eden 
    Actions
        Set MUI[9] = (MUI[9] + 1)
        Set Loc[9] = (Position of (Triggering unit))
        Set LevelMUI[MUI[9]] = (Level of Cage Of Eden  for (Triggering unit))
        Set RealMUI[MUI[9]] = 5.00
        Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at Loc[9] facing Default building facing degrees
        Set DummyMUI[MUI[9]] = (Last created unit)
        Unit - Add Cage Dummy   to DummyMUI[MUI[9]]
        Unit - Set level of Cage Dummy   for DummyMUI[MUI[9]] to LevelMUI[MUI[9]]
        Set Group[2] = (Units within 500.00 of Loc[9] matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
        Unit Group - Pick every unit in Group[2] and do (Actions)
            Loop - Actions
                Unit - Order DummyMUI[MUI[9]] to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
        Custom script:   call DestroyGroup( udg_Group[2] )
        For each (Integer A) from 1 to 18, do (Actions)
            Loop - Actions
                Set Loc[10] = (Loc[9] offset by 500.00 towards ((Real((Integer A))) x 20.00) degrees)
                Destructible - Create a Summer Tree Wall at Loc[10] facing (Random angle) with scale 1.00 and variation 0
        Trigger - Turn on CoE Loop <gen>
        EGUI Leak - Remove Loc[9]
        EGUI Leak - Remove Loc[10]
Mã:
CoE Loop
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer MUI2[9]) from 1 to MUI[9], do (Actions)
            Loop - Actions
                Set LocMUI[MUI2[9]] = (Position of DummyMUI[MUI2[9]])
                Set RealMUI[MUI2[9]] = (RealMUI[MUI2[9]] - 1.00)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        [B]RealMUI[MUI2[9]] Equal to 0.00[/B]
                    Then - Actions
                        Unit - Remove DummyMUI[MUI2[9]] from the game
                        Destructible - Pick every destructible within 600.00 of LocMUI[MUI2[9]] and do (Actions)
                            Loop - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Destructible-type of (Picked destructible)) Equal to Summer Tree Wall
                                    Then - Actions
                                        Destructible - Remove (Picked destructible)
                                    Else - Actions
                        Set MUI[9] = (MUI[9] - 1)
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                MUI[9] Equal to 0
                            Then - Actions
                                Set MUI2[9] = 0
                                Trigger - Turn off (This trigger)
                            Else - Actions
                    Else - Actions
                EGUI Leak - Remove LocMUI[MUI2[9]]
[/spoil]
3 trigger tiếp theo của skill Narural Order :
[spoil]
Mã:
Nature Order
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Natural Order (Spell)
    Actions
        Set MUI[10] = (MUI[10] + 1)
        Set Destructibles[MUI[10]] = (Target destructible of ability being cast)
        Set LocMUI[MUI[10]] = (Position of Destructibles[MUI[10]])
        Set CasterMUI[MUI[10]] = (Triggering unit)
        Set RealMUI[MUI[10]] = 2.00
        Set LevelMUI[MUI[10]] = (Level of Natural Order (Spell) for CasterMUI[MUI[10]])
        Unit - Add Release  to CasterMUI[MUI[10]]
        Unit - Set level of Release  for CasterMUI[MUI[10]] to LevelMUI[MUI[10]]
        Player - Disable Natural Order (Spell) for (Owner of CasterMUI[MUI[10]])
        Trigger - Turn on Release Order <gen>
        Trigger - Turn on Nature Loop <gen>
Mã:
Nature Loop
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer MUI2[10]) from 1 to MUI[10], do (Actions)
            Loop - Actions
                Set RealMUI[MUI2[10]] = (RealMUI[MUI2[10]] - 1.00)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        RealMUI[MUI2[10]] Less than or equal to 0.00
                    Then - Actions
                        Set MUI[10] = (MUI[10] - 1)
                        Unit - Remove Release  from CasterMUI[MUI2[10]]
                        Player - Enable Natural Order (Spell) for (Owner of CasterMUI[MUI2[10]])
                        EGUI Leak - Remove Loc[12]
                        EGUI Leak - Remove Loc[13]
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                MUI[10] Equal to 0
                            Then - Actions
                                Set MUI2[10] = 0
                                Trigger - Turn off (This trigger)
                            Else - Actions
                    Else - Actions
Mã:
Release Order
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Release 
    Actions
        For each (Integer MUI2[10]) from 1 to MUI[10], do (Actions)
            Loop - Actions
                Set Loc[13] = (Target point of ability being cast)
                Unit - Create 1 Dummy Caster for (Owner of CasterMUI[MUI2[10]]) at LocMUI[MUI2[10]] facing Default building facing degrees
                Set Dummy[8] = (Last created unit)
                Unit - Add a 0.50 second Generic expiration timer to Dummy[8]
                Unit - Add Nature's Order  to Dummy[8]
                Unit - Set level of Nature's Order  for Dummy[8] to LevelMUI[MUI2[10]]
                Unit - Order Dummy[8] to Orc Tauren Chieftain - Shockwave Loc[13]
                [B]Set RealMUI[MUI2[10]] = 0.00[/B]
                EGUI Leak - Remove LocMUI[MUI2[10]]
                EGUI Leak - Remove Loc[13]
                Trigger - Turn off (This trigger)
[/spoil]

Skill Cage Of Eden: dùng để tạo ra 1 vòng tròn cây nhốt đối thủ lại trong 5s. Sau 5s sẽ tiêu diệt hết các cây đã tạo:
Skill Natural Order : target vào 1 cái cây sẽ cho skill dummy ( Release ) trong 2s. trong 2s đó nếu target vào ground sẽ bắn ra 1 đường shockwave r bỏ skill dummy, sau 2s nếu k target vào ground sẽ mất skill dummy.
Vấn đề : Khi sử dụng Cage Of Eden r` target Natural Order vào 1 trong n~ cái cây từ Cage Of Eden thì lập lức các cây đó biến mất. Mặc dù e đã set Loop là 2 biến For MUI2[9] ...... và For MUI2[10] riêng biệt nhau. vậy s vẫn bị đụng về biến RealMUI ở 2 trigger
 
Last edited by a moderator:
Đổi 0.01s thành 1 số lớn hơn thử xem, có thể bạn cho nó chạy liên tục nên gây lag và dis ra ngoài đấy.

TOM: đừng có dùng cái deformation random kia, dùng crater/ripple/wave thôi. Làm đất lún một cái như Thunder Clap thì dùng crater là đc rồi:
cụ thể là thế nào anh chỉ kĩ hơn cho em được không ạ :D
 
Status
Không mở trả lời sau này.
Back
Top