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

Status
Không mở trả lời sau này.
Cần người giúp đỡ system Revive unit tại vị trí ban đầu của unit khi unit đó bị giết. Làm cứ chập chập hoài :( làm mãi mà ko đc, có ai giúp hộ cái .
 
Mình học cái tut này lâu rồi :( nhưng làm theo kiểu này, mình đưa vào map mình thì ko dùng đc, nhưng vẫn cái trig đấy map khác lại đc :(. Nên mình cần system khác, kể nó dài hơn cũng không sao.
 
Không dùng được là sao hả bạn? trigger không hoạt động hay hoạt động lỗi? Bạn nói thử xem giúp được mình sẽ giúp
 
Full mà lượm dc thì chỉ có class powerup thôi

Mọi người cho hỏi, 2 skill dạng trượt nhưng skill 2 tui lại ko tạo special effect nhưng khi cast thì lại rất lag, cả 2 skill thì chưa remove leak triệt để, nhưng khi vào game cast lần đầu skill 1 bt, nhưng skill 2 thì giật banh máy, ai làm ơn cho biết nguyên nhân!

Đã chỉnh rồi mà không được thì mới lên đây hỏi đấy chứ == "
...Cái phần đó là chỉ chỉnh dạng Class hay cần chỉnh gì thêm không nhỉ...
 
Đã chỉnh rồi mà không được thì mới lên đây hỏi đấy chứ == "
...Cái phần đó là chỉ chỉnh dạng Class hay cần chỉnh gì thêm không nhỉ...
Để mình đưa cậu xem cái trig :(
2.jpg

1.jpg
 
Chỉnh sửa cuối:
Đã chỉnh rồi mà không được thì mới lên đây hỏi đấy chứ == "
...Cái phần đó là chỉ chỉnh dạng Class hay cần chỉnh gì thêm không nhỉ...
Cái 9x của mình full hòm vẫn mua đc là do đồ đó từ Class Power Up, nên khi full vẫn mua đc, chứ ko có System gì đâu @@
 
Cái 9x của mình full hòm vẫn mua đc là do đồ đó từ Class Power Up, nên khi full vẫn mua đc, chứ ko có System gì đâu @@
1 cái là power up sẵn (Đc làm từ item gốc thuộc loại power up) còn 1 cái thì sửa từ loại khác. Lí do từ đây?
 
Để mình đưa cậu xem cái trig :(
2.jpg

1.jpg
Bạn thử thay point = tọa độ x,y xem. Nghĩa là chỗ Set Creep_Loc (bỏ array đi nhé) thêm các dòng này:
Mã:
Set CreepX[Integer] = X of Creep_Loc
Set CreepY[Integer] = Y of Creep_Loc
Custom Script: call RemoveLocation(udg_Creep_Loc)
Và trigger revive creep thay dòng create unit = dòng này:
Mã:
Unit - Create 1 Unit for Player at (Point(CreepX[custom value of triggering unit], CreepY[custom value of triggering unit])) facing Creep_Face_Angle[custom value of triggering unit] degrees
Chúc bạn thành công :)

Đã chỉnh rồi mà không được thì mới lên đây hỏi đấy chứ == "
...Cái phần đó là chỉ chỉnh dạng Class hay cần chỉnh gì thêm không nhỉ...
Không phải chỉnh dạng class mà base từ class Power Up mới được.
 
Chỉnh sửa cuối:
Bạn thử thay point = tọa độ x,y xem. Nghĩa là chỗ Set Creep_Loc (bỏ array đi nhé) thêm các dòng này:
Mã:
Set CreepX[Integer] = X of Creep_Loc
Set CreepY[Integer] = Y of Creep_Loc
Custom Script: call RemoveLocation(udg_Creep_Loc)
Và trigger revive creep thay dòng create unit = dòng này:
Mã:
Unit - Create 1 Unit for Player at (Point(CreepX[custom value of triggering unit], CreepY[custom value of triggering unit])) facing Creep_Face_Angle[custom value of triggering unit] degrees
Chúc bạn thành công :)


Không phải chỉnh dạng class mà base từ class Power Up mới được.
Không được rồi Leo ơi, mình thêm mấy cái đấy vào. Tuy creep có hồi sinh nhưng nó hồi sinh cùng 1 chỗ với nhau :( dù đặt mỗi con 1 nơi mà khi giết tất cả lại bay vào cùng 1 chỗ :)) có thể nào là vì dòng
Custom Script: call RemoveLocation(udg_Creep_Loc) không ?
 
Nếu chỉ lỗi khi dùng map đó thì bạn thử cách khác xem...
-Tạo 1 fake skill (ko effect)...skill gì cũng đc
Khi 1 con creep die...tạo ngay lập tức 1 con khác cùng type, cùng hướng nhìn, cùng địa điểm, cùng owner...add Generic time cho nó, add fake skill cho nó, hide nó đi.
Tạo 1 trigger: Khi unit thuộc type đó die, unit có fake skill thì action là tạo 1 unit creep...y chang trên...có điều ko hide, ko add Time và Fake Skill cho nó thôi
 
Không được rồi Leo ơi, mình thêm mấy cái đấy vào. Tuy creep có hồi sinh nhưng nó hồi sinh cùng 1 chỗ với nhau :( dù đặt mỗi con 1 nơi mà khi giết tất cả lại bay vào cùng 1 chỗ :)) có thể nào là vì dòng
Custom Script: call RemoveLocation(udg_Creep_Loc) không ?
- Dòng đó để xóa leak cái point thôi đâu có ảnh hưởng gì. Bạn phải chắc chắn rằng trong map không có trigger nào thay đổi custom value của unit đấy nhé. Bạn kiểm tra lại xem.
- Nếu không được thì đây là demo. Chúc bạn thành công.
 
@WordEditor: ...Cái phần đó là chỉ chỉnh dạng Class hay cần chỉnh gì thêm không nhỉ...


@FlameDrake: Cái 9x của mình full hòm vẫn mua đc là do đồ đó từ Class Power Up, nên khi full vẫn mua đc, chứ ko có System gì đâu @@
Chưa đủ

@LeoNguyen112:
Không phải chỉnh dạng class mà base từ class Power Up mới được.
Sai

@Jun Naital: 1 cái là power up sẵn (Đc làm từ item gốc thuộc loại power up) còn 1 cái thì sửa từ loại khác. Lí do từ đây?
Ko

Muốn được như kiểu sách (Tome Of Agility chả hạn) thì cần đảm bảo các thuộc tính sau:
Stats - Active Used = True ~ có thể kích vào để dùng - nếu ko có active ability thì chả có chuyện gì xảy ra trừ 1 dòng tooltip là "Left click to use ..."
Stats - Perishable = True ~~ Mất đi sau khi dùng ...
Stats - Use Automatically When Acquires = True ~ Tự dùng ngay sau khi được nhặt hoặc mua


Đơn giản nhất là cứ lấy 1 cái cơ bản trong Class Power Up, copy ra và chỉnh hết cái cần chỉnh. Còn Class có ảnh hưởng gì á ? chả để làm gì ngoài để phân loại cả ..........
 
- Dòng đó để xóa leak cái point thôi đâu có ảnh hưởng gì. Bạn phải chắc chắn rằng trong map không có trigger nào thay đổi custom value của unit đấy nhé. Bạn kiểm tra lại xem.
- Nếu không được thì đây là demo. Chúc bạn thành công.
quên mất đấy là dòng xóa leak point =)) mình dùng egui toàn dùng lệnh của nó để xóa leak thôi =))
Mà quên không bảo, cái trig đầu tiên của mình. Khi đưa vào map demo của cậu thì vẫn hồi sinh đc =))
Vẫn không được Leo à :( dù copy nguyên cái trig vào nhưng sau khi kill creep vẫn return cùng 1 chỗ với nhau :(

---------- Post added at 23:02 ---------- Previous post was at 22:50 ----------

@WordEditor: ...Cái phần đó là chỉ chỉnh dạng Class hay cần chỉnh gì thêm không nhỉ...


@FlameDrake: Cái 9x của mình full hòm vẫn mua đc là do đồ đó từ Class Power Up, nên khi full vẫn mua đc, chứ ko có System gì đâu @@
Chưa đủ

@LeoNguyen112:
Không phải chỉnh dạng class mà base từ class Power Up mới được.
Sai

@Jun Naital: 1 cái là power up sẵn (Đc làm từ item gốc thuộc loại power up) còn 1 cái thì sửa từ loại khác. Lí do từ đây?
Ko

Muốn được như kiểu sách (Tome Of Agility chả hạn) thì cần đảm bảo các thuộc tính sau:
Stats - Active Used = True ~ có thể kích vào để dùng - nếu ko có active ability thì chả có chuyện gì xảy ra trừ 1 dòng tooltip là "Left click to use ..."
Stats - Perishable = True ~~ Mất đi sau khi dùng ...
Stats - Use Automatically When Acquires = True ~ Tự dùng ngay sau khi được nhặt hoặc mua


Đơn giản nhất là cứ lấy 1 cái cơ bản trong Class Power Up, copy ra và chỉnh hết cái cần chỉnh. Còn Class có ảnh hưởng gì á ? chả để làm gì ngoài để phân loại cả ..........
Ủa, mình không hiểu vụ Tome ảnh hưởng gì đến cái nhặt đc item max slot cho lắm :(
Có nghĩa 3 dòng kia phải để True ?
 
Chỉnh sửa cuối:
@Jun Naital: Có nghĩa 3 dòng kia phải để True ?
ừa

@LeoNguyen112: Bạn phải chắc chắn rằng trong map không có trigger nào thay đổi custom value của unit

@Jun Naital: quên mất đấy là dòng xóa leak point mình dùng egui toàn dùng lệnh của nó để xóa leak thôi
Mà quên không bảo, cái trig đầu tiên của mình. Khi đưa vào map demo của cậu thì vẫn hồi sinh đc

Như Leo đã nói, h mình xin nói rõ hơn là nếu cậu chỉ dùng EGUI để xóa leak thì các trigger của EGUI mà cậu import vào vẫn có trigger có dùng custom value của unit đó chứ ko phải là cậu ko dùng thì ko có đâu nha. Đó là library UnitIndexingUtils trong trigger Knockback dùng để hỗ trợ library knockback đó cậu ạ
 
Chỉnh sửa cuối:
@Jun Naital: Có nghĩa 3 dòng kia phải để True ?
ừa

@LeoNguyen112: Bạn phải chắc chắn rằng trong map không có trigger nào thay đổi custom value của unit

@Jun Naital: quên mất đấy là dòng xóa leak point mình dùng egui toàn dùng lệnh của nó để xóa leak thôi
Mà quên không bảo, cái trig đầu tiên của mình. Khi đưa vào map demo của cậu thì vẫn hồi sinh đc

Như Leo đã nói, h mình xin nói rõ hơn là nếu cậu chỉ dùng EGUI để xóa leak thì các trigger của EGUI mà cậu import vào vẫn có trigger có dùng custom value của unit đó chứ ko phải là cậu ko dùng thì ko có đâu nha. Đó là library UnitIndexingUtils trong trigger Knockback dùng để hỗ trợ library knockback đó cậu ạ

Cách sửa?
Ko dùng các thứ gì khác của EGUI ngoài remove leak thì xóa hết trigger của EGUI trừ EGUI Core ra
Tức là cả Knockback, Jump,recipe và Effect? Thế thì cũng may là chủ yếu mình chỉ dùng để xóa leak thôi.
 
Chỉnh sửa cuối:
^Cách sửa mà ko làm ảnh hưởng đến các thứ khác
Xóa đi 3 library của EGUI là UnitIndexingUtils, LastOrder, Knockback
Còn Jump với Effect hoàn toàn chả ảnh hưởng gì cả....

@Jun Naital: Ủa, mình không hiểu vụ Tome ảnh hưởng gì đến cái nhặt đc item max slot cho lắm
Nếu full slot rồi thì cậu có thể để ý rằng khi mua hay nhặt item thì nó sẽ báo full hòm đồ. Nhưng = cách thay bằng fake item với những thuộc tính nói trên thì cậu có thể dùng trigger kiểm tra nếu fake item phù hợp thì ghép đồ hoặc cho đồ vào hòm hay tạo fake item khác ....
 
---------- Post added at 02:08 ---------- Previous post was at 02:03 ----------

Thì kết quả cho thấy đúng là bug S không còn,nhưng mà lại bị lỗi là thỉnh thoảng trigger mới hoạt động mặc dù không để random integer. Nếu bỏ Turn off trigger trước và Turn on trigger sau - thì lại phát sinh lag,mất điều khiển nhân vật,càng đánh càng mất điều khiển.

Có lẽ do khả năng của mình còn hạn chế,nên hy vọng bạn chỉ cách cho mình khắc phục vụ này với :(

À,mình làm được rồi,sorry mọi người,sau mình sẽ nghiên cứu kỹ,bí quá mới post bài hỏi :H

Có 1 cách rất đơn giản là với sử dụng skill Envenomed Weapons, chỉnh sửa buff cho nó. Cứ mỗi lần target nhận dmg thì check, nếu có cái buff kia thì remove buff đó và bắt đầu thực hiện các actions cần thiết. Còn ko thì ko làm gì cả. (Giống như bài hướng dẫn auto-cast skill nhưng ko sử dụng skill auto cast mà sử dụng passive có buff)
 
Theo gợi ý của bạn LeoNguyen mình làm trigger như này để khắc phục bug phím s. Kết quả khắc phục tốt nhưng mà gây ra lag,càng chơi càng lag,càng dùng skill càng làm lag thêm =_= máy mình khá khỏe,chơi đến phút 30-40 là đã thấy phiền rồi,mốt số người khác chơi mới được vài phút đã la ầm trời :((. Mình làm sai ở điểm nào,ai có cách khắc phục thì chỉ mình với :(

P/S: mình cũng chưa khẳng định là do trigger này vì mình turn off trigger đi rồi mà dường như kết quả vẫn vậy,không biết có phải do mình dùng Wc3 Ultimate Optimizer nén map không nữa. Cũng mơ hồ quá,hix :-s


Events
Unit - A unit Is attacked

Conditions
((Attacking unit) is A Hero) Equal to (==) True

Actions
Set UnitArray[33] = (Attacking unit)
Trigger - Add to Fix bug SS Take <gen> the event (Unit - (Triggering unit) Takes damage)

Mã:
Events

Conditions

Actions
    Trigger - Turn off (This trigger)
    Set UnitArray[31] = (Triggering unit)
    Set UnitArray[33] = UnitArray[32]
    Set UnitArray[32] = (Damage source)
    Set RealArray[26] = (Damage taken)
    -------- Loi Than --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (UnitArray[32] is an illusion) Not equal to (!=) True
            (Level of Hoanh Loi Cong  for UnitArray[32]) Greater than (>) 0
            (Random integer number between 1 and 100) Less than or equal to (<=) 20
        Then - Actions
            Set PointArray[42] = (Position of UnitArray[32])
            Unit - Create 1 Dummy (hoanhloi) for (Owner of UnitArray[32]) at PointArray[42] facing Default building facing (270.0) degrees
            Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
            Unit - Add Hoanh Loi  to (Last created unit)
            Unit - Set level of Hoanh Loi  for (Last created unit) to (Level of Hoanh Loi Cong  for UnitArray[32])
            Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning UnitArray[31]
            Custom script:   call RemoveLocation (udg_PointArray[42])
        Else - Actions
            Do nothing
    -------- Phu Thuy Thoi Gian --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Level of Tia Sang Thoi Gian  for UnitArray[32]) Greater than (>) 0
        Then - Actions
            Wait 0.40 seconds
            Unit - Cause UnitArray[32] to damage UnitArray[31], dealing ((Real((Intelligence of UnitArray[32] (Include bonuses)))) x (0.10 + (0.10 x (Real((Level of Tia Sang Thoi Gian  for UnitArray[32])))))) damage of attack type Hero and damage type Divine
        Else - Actions
            Do nothing
    -------- Ma Nu Vo Tinh --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Level of Ngung Suong Thuc  for UnitArray[32]) Greater than (>) 0
            (Random integer number between 1 and 100) Less than or equal to (<=) 21
            (Mana of UnitArray[31]) Greater than (>) 0.00
        Then - Actions
            Set PointArray[43] = (Position of UnitArray[32])
            Unit - Create 1 Dummy (ngungsuong) for (Owner of UnitArray[32]) at PointArray[43] facing Default building facing (270.0) degrees
            Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
            Unit - Add Ngung Suong  to (Last created unit)
            Unit - Set level of Ngung Suong  for (Last created unit) to (Level of Ngung Suong Thuc  for UnitArray[32])
            Unit - Order (Last created unit) to Night Elf Demon Hunter - Mana Burn UnitArray[31]
            Unit - Set mana of UnitArray[32] to ((Mana of UnitArray[32]) + (20.00 x (Real((Level of Ngung Suong Thuc  for UnitArray[32])))))
            Special Effect - Create a special effect attached to the origin of UnitArray[32] using Abilities\Spells\Items\AIma\AImaTarget.mdl
            Special Effect - Destroy (Last created special effect)
            Custom script:   call RemoveLocation (udg_PointArray[43])
        Else - Actions
            Do nothing
    -------- Dua Con Cua Bien --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Level of Giang Hanh So Tuc  for UnitArray[32]) Greater than (>) 0
        Then - Actions
             Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Agility of UnitArray[32] (Include bonuses)) Greater than (>) (Agility of UnitArray[31] (Include bonuses))
                Then - Actions
                    Wait 1.00 seconds
                    Unit - Cause UnitArray[32] to damage UnitArray[31], dealing (((Real((Agility of UnitArray[32] (Include bonuses)))) - (Real((Agility of UnitArray[31] (Include bonuses))))) x (0.40 + (0.10 x (Real((Level of Giang Hanh So Tuc  for UnitArray[32])))))) damage of attack type Hero and damage type Normal
                Else - Actions
                    Wait 1.00 seconds
                    Unit - Cause UnitArray[32] to damage UnitArray[31], dealing (((Real((Agility of UnitArray[31] (Include bonuses)))) - (Real((Agility of UnitArray[32] (Include bonuses))))) x (0.40 + (0.10 x (Real((Level of Giang Hanh So Tuc  for UnitArray[32])))))) damage of attack type Hero and damage type Normal
        Else - Actions
            Do nothing
    -------- Mang Xa Vuong --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (UnitArray[31] is A structure) Not equal to (!=) True
            (Unit-type of UnitArray[31]) Not equal to (!=) |cffff0000Qñy v­¬ng|r (Level 1)
            (Unit-type of UnitArray[31]) Not equal to (!=) |cffff0000Qñy v­¬ng|r (Level 2)
            (Unit-type of UnitArray[31]) Not equal to (!=) |cffff0000Qñy v­¬ng|r (Level 3)
        Then - Actions
            Wait 0.50 seconds
            Unit - Cause UnitArray[32] to damage UnitArray[31], dealing (((Max life of UnitArray[31]) - (Life of UnitArray[31])) x (0.02 + (0.01 x (Real((Level of Toi Doc Thuat  for UnitArray[32])))))) damage of attack type Hero and damage type Poison
        Else - Actions
            Do nothing
    -------- Voi Ma Mut --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Level of Khai Son Thuc  for UnitArray[32]) Greater than (>) 0
            (UnitArray[32] is an illusion) Not equal to (!=) True
            (UnitArray[31] belongs to an enemy of (Owner of UnitArray[32])) Equal to (==) True
            (UnitArray[31] is A structure) Not equal to (!=) True
            (Random integer number between 1 and 100) Less than or equal to (<=) 20
        Then - Actions
            Set PointArray[44] = (Position of UnitArray[31])
            Unit - Create 1 Dummy (common) for (Owner of UnitArray[32]) at PointArray[44] facing Default building facing (270.0) degrees
            Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
            Unit - Add Khai Son  to (Last created unit)
            Unit - Set level of Khai Son  for (Last created unit) to (Level of Khai Son Thuc  for UnitArray[32])
            Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
            Custom script:   call RemoveLocation (udg_PointArray[44])
        Else - Actions
            Do nothing
    -------- Cuong Bao Dai Vuong --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Unit-type of UnitArray[32]) Equal to (==) |cffff0000Cuång b¹o ®¹i v­¬ng|r
        Then - Actions
            Unit - Cause UnitArray[32] to damage UnitArray[31], dealing (((Max life of UnitArray[32]) - (Life of UnitArray[32])) x (0.04 + (0.02 x (Real((Level of Hoanh Son Phu  for UnitArray[32])))))) damage of attack type Hero and damage type Normal
        Else - Actions
    -------- Gau Do Vat --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Level of Phieu Duc Tan Thu  for UnitArray[32]) Greater than (>) 0
            (UnitArray[32] is an illusion) Not equal to (!=) True
            (UnitArray[31] is A structure) Not equal to (!=) True
            (UnitArray[31] belongs to an enemy of (Owner of UnitArray[32])) Equal to (==) True
        Then - Actions
            Wait 0.30 seconds
            Unit - Cause UnitArray[32] to damage UnitArray[31], dealing ((0.01 x (Real((Level of Phieu Duc Tan Thu  for UnitArray[32])))) x (Life of UnitArray[32])) damage of attack type Hero and damage type Divine
        Else - Actions
            Do nothing
    -------- Loi Ma --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Unit-type of UnitArray[32]) Equal to (==) |cff00ffffL«i ma|r
            (UnitArray[31] is A structure) Not equal to (!=) True
        Then - Actions
            Wait 0.50 seconds
            Unit - Cause UnitArray[32] to damage UnitArray[31], dealing ((Distance between (Position of UnitArray[32]) and (Position of UnitArray[31])) x (0.05 x (Real((Level of Ngu Loi Cong  for UnitArray[32]))))) damage of attack type Hero and damage type Normal
        Else - Actions
            Do nothing
    -------- Ke Xau So --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Unit-type of UnitArray[32]) Equal to (==) |cff008000KÎ xÊu sè|r
            (Level of Thanh Guom Hac Am  for UnitArray[32]) Greater than (>) 0
        Then - Actions
            Wait 0.03 seconds
            Unit - Cause UnitArray[32] to damage UnitArray[31], dealing (3.00 x (Real(LinhHon_Number))) damage of attack type Hero and damage type Divine
        Else - Actions
            Do nothing
    -------- Kho Lau Song --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Unit-type of UnitArray[32]) Equal to (==) |cffc0c0c0Kh« l©u sèng|r
            (UnitArray[31] is A structure) Not equal to (!=) True
            (Unit-type of UnitArray[31]) Not equal to (!=) |cffff0000Qñy v­¬ng|r (Level 1)
            (Unit-type of UnitArray[31]) Not equal to (!=) |cffff0000Qñy v­¬ng|r (Level 2)
            (Unit-type of UnitArray[31]) Not equal to (!=) |cffff0000Qñy v­¬ng|r (Level 3)
        Then - Actions
            Set Real_NgoCong = ((Life of UnitArray[31]) x (0.03 + (0.01 x (Real((Level of Ngo Cong Tran  for UnitArray[32]))))))
            Unit - Cause UnitArray[32] to damage UnitArray[31], dealing Real_NgoCong damage of attack type Hero and damage type Divine
            Unit - Set life of UnitArray[32] to ((Life of UnitArray[32]) + (Real_NgoCong x 0.50))
        Else - Actions
            Do nothing
    -------- Khoai Lang --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
             Multiple ConditionsOr - Any (Conditions) are true
                Conditions
                    (Unit-type of UnitArray[32]) Equal to (==) |cffff0000Kho¸i lang|r
                    (Unit-type of UnitArray[32]) Equal to (==) |cffff0000Kho¸i lang|r (level 1)
                    (Unit-type of UnitArray[32]) Equal to (==) |cffff0000Kho¸i lang|r (level 2)
                    (Unit-type of UnitArray[32]) Equal to (==) |cffff0000Kho¸i lang|r (level 3)
            (Level of Cuong Trao Thu  for UnitArray[32]) Greater than (>) 0
            (UnitArray[31] is A structure) Not equal to (!=) True
        Then - Actions
            Unit - Cause UnitArray[32] to damage UnitArray[31], dealing (15.00 x (Real((Level of Cuong Trao Thu  for UnitArray[32])))) damage of attack type Hero and damage type Normal
        Else - Actions
            Do nothing
    -------- Sinh Vat La --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Unit-type of UnitArray[32]) Equal to (==) |cff0080c0Sinh vËt l¹|r
            (Level of Da Dai Dao Cuong  for UnitArray[32]) Greater than (>) 0
            (UnitArray[32] is A structure) Not equal to (!=) True
        Then - Actions
            Unit - Cause UnitArray[32] to damage UnitArray[31], dealing ((Real((Agility of UnitArray[32] (Include bonuses)))) x (0.20 + (0.10 x (Real((Level of Da Dai Dao Cuong  for UnitArray[32])))))) damage of attack type Hero and damage type Divine
        Else - Actions
            Do nothing
    -------- Thuy Quai --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Unit-type of UnitArray[32]) Equal to (==) |cff0080ffThñy qu¸i|r
            (Level of Da Ne Doi Thuy  for UnitArray[32]) Greater than (>) 0
            (UnitArray[31] is A structure) Not equal to (!=) True
            (Random integer number between 1 and 100) Less than or equal to (<=) 20
            (UnitArray[31] belongs to an enemy of (Owner of UnitArray[32])) Equal to (==) True
        Then - Actions
            Set Unt_DaNe1 = UnitArray[32]
            Set Unt_DaNe2 = UnitArray[31]
            Set Loc_DaNe1 = (Position of Unt_DaNe1)
            Set Loc_DaNe2 = (Position of Unt_DaNe2)
            Set Deg_DaNe = (Angle from Loc_DaNe1 to Loc_DaNe2)
            If ((Level of Da Ne Doi Thuy  for Unt_DaNe1) Equal to (==) 1) then do (Set Tik_DaNe = 16) else do (Do nothing)
            If ((Level of Da Ne Doi Thuy  for Unt_DaNe1) Equal to (==) 2) then do (Set Tik_DaNe = 24) else do (Do nothing)
            If ((Level of Da Ne Doi Thuy  for Unt_DaNe1) Equal to (==) 3) then do (Set Tik_DaNe = 32) else do (Do nothing)
            If ((Level of Da Ne Doi Thuy  for Unt_DaNe1) Equal to (==) 4) then do (Set Tik_DaNe = 40) else do (Do nothing)
            Unit - Cause Unt_DaNe1 to damage Unt_DaNe2, dealing (10.00 + (30.00 x (Real((Level of Da Ne Doi Thuy  for Unt_DaNe1))))) damage of attack type Hero and damage type Divine
            Trigger - Turn on Da Ne Slide <gen>
        Else - Actions
            Do nothing
    -------- Thay Phap --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Level of Ta Phi Thuc Fix  for UnitArray[32]) Greater than (>) 0
        Then - Actions
            Set Point_ThayPhap = (Position of UnitArray[31])
            Unit - Create 1 DummyOther for (Owner of UnitArray[32]) at Point_ThayPhap facing Default building facing (270.0) degrees
            Unit - Add Thay Phap  to (Last created unit)
            Unit - Set level of Thay Phap  for (Last created unit) to (Level of Ta Phi Thuc Fix  for UnitArray[32])
            Unit - Order (Last created unit) to Orc Shaman - Purge UnitArray[31]
            Unit - Remove (Last created unit) from the game
            Unit - Set mana of UnitArray[32] to ((Mana of UnitArray[32]) + (15.00 x (Real((Level of Ta Phi Thuc Fix  for UnitArray[32])))))
            Custom script:   call RemoveLocation (udg_Point_ThayPhap)
        Else - Actions
            Do nothing
    -------- Xen Bo Hung --------
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Unit-type of UnitArray[32]) Equal to (==) |cff00ff80Xªn bä hung|r
            (Level of Nanh Vuot  for UnitArray[32]) Greater than (>) 0
        Then - Actions
            Set UntG_NanhVuot = (Units in (Region centered at (Position of UnitArray[32]) with size (1000.00, 1000.00)) matching ((((Matching unit) is A Hero) Equal to (==) True) and (((Matching unit) belongs to an enemy of (Owner of UnitArray[32])) Equal to (==) True)))
             Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Number of units in UntG_NanhVuot) Greater than or equal to (>=) 1
                Then - Actions
                    Unit - Cause UnitArray[32] to damage UnitArray[31], dealing ((Real((Number of units in UntG_NanhVuot))) x (5.00 + (5.00 x (Real((Level of Nanh Vuot  for UnitArray[32])))))) damage of attack type Chaos and damage type Divine
                    Special Effect - Create a special effect attached to the (hand + left) of UnitArray[32] using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
                    Special Effect - Destroy (Last created special effect)
                    Special Effect - Create a special effect attached to the (hand + right) of UnitArray[32] using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
                    Special Effect - Destroy (Last created special effect)
                    Special Effect - Create a special effect attached to the chest of UnitArray[31] using Objects\Spawnmodels\Critters\Albatross\CritterBloodAlbatross.mdl
                    Special Effect - Destroy (Last created special effect)
                    Unit - Add Xen - Armor (+1) to UnitArray[32]
                    Unit - Set level of Xen - Armor (+1) for UnitArray[32] to (Number of units in UntG_NanhVuot)
                Else - Actions
                    Do nothing
            Custom script:   call DestroyGroup (udg_UntG_NanhVuot)
        Else - Actions
            Do nothing
    Trigger - Turn on (This trigger)
 
Chỉnh sửa cuối:
Làm như cách ở trên lợi bất cập hại, lag khó mà tránh khỏi. Phù thủy thời gian sao lại fix kiểu kia. Để wait như thế nó lên attack speed cũng bằng thừa à?
h có 2 giải pháp:
1. add cho con hero cần khắc phục lỗi nháy s 1 skill orb attack dạng như "evenom", Dùng 1 cái damage system nào đó đăng kí sự kiện "Generic unit takes damage event" check xem trên người con unit bị dính dam có buff của skill orb attack kia ko, nếu có thì chứng tỏ là damage gây ra bởi attack. Giờ thì clear cái buff đó rồi làm gì thì làm thôi (Cách này chưa từng thử);
2. Cách này tốn công hơn nhưng hay hơn. Sử dụng system damage của jesus4lyf (hoặc IDDS của rising) để biết được damage type. Có điều tất cả damage gây ra từ skill đều phải dùng trigger.
 
Status
Không mở trả lời sau này.
Back
Top