Stork[gm]
Donkey Kong
- 29/5/09
- 438
- 22
Stork[gm];22319757 nói:Tình hình là mình đang vướng skill Pit of Malice của pit lord (dota). lúc đi vào unit ko bị entangle mặc dù đã chỉnh thế này.
Sai ở chỗ lúc đầu khi cast thì set group = unit trong phạm vi đó, sau đó khi lặp thì vẫn lặp với group đó mà không set lại hoặc add thêm unit nào nữa thì nó vẫn không ảnh hưởng tới những unit đi vàoMã:Pit of Malice Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Pit of Malice Actions For each (Integer A) from 1 to 24, do (Actions) Loop - Actions Special Effect - Destroy PitOfMalice[(Integer A)] Set PitInteger = (PitInteger + 1) Set PitInteger2[PitInteger] = (PitInteger2[PitInteger] + 1) Set PitCaster = (Casting unit) Set PitPosition = (Target point of ability being cast) [COLOR="#FF0000"]Set PitGroupDamage = (Units within 350.00 of PitPosition matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of PitCaster)) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is in PitG[/COLOR] Set PitDuration[PitInteger] = 7.00 Sound - Play TempleOfTheDamnedWhat <gen> at 100.00% volume, located at PitPosition with Z offset 0.00 [COLOR="#FF0000"]Unit Group - Pick every unit in PitGroupDamage and do (Actions)[/COLOR] Loop - Actions Unit - Create 1 Dummy Unit for (Owner of PitCaster) at PitPosition facing Default building facing degrees Unit - Add Pit Roots (Passive) to (Last created unit) Unit - Order (Last created unit) to Night Elf Tree Of Life - Entangle (Picked unit) Unit - Add a 1.00 second Generic expiration timer to (Last created unit) For each (Integer A) from 1 to 24, do (Actions) Loop - Actions Set PitTargetPosition = (PitPosition offset by 350.00 towards (15.00 x (Real((Integer A)))) degrees) Special Effect - Create a special effect at PitTargetPosition using Abilities\Spells\Undead\Graveyard\GraveMarker.mdl Set PitOfMalice[(Integer A)] = (Last created special effect) Trigger - Turn on Pit of Malice lock <gen> Pit of Malice lock Events Time - Every 0.10 seconds of game time Conditions Actions Set PitDuration[PitInteger] = (PitDuration[PitInteger] - 0.10) Unit Group - Pick every unit in PitGroupDamage and do (Actions) Loop - Actions Unit - Create 1 Dummy Unit for (Owner of PitCaster) at PitPosition facing Default building facing degrees Unit - Add Pit Roots (Passive) to (Last created unit) Unit - Order (Last created unit) to Night Elf Tree Of Life - Entangle (Picked unit) Unit - Add a 1.00 second Generic expiration timer to (Last created unit) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions PitDuration[PitInteger] Less than or equal to 0.00 Then - Actions For each (Integer A) from 1 to 24, do (Actions) Loop - Actions Special Effect - Destroy PitOfMalice[(Integer A)] Trigger - Turn off (This trigger) Unit Group - Remove all units from PitGroupDamageDone Custom script: call DestroyGroup( udg_PitGroupDamage ) Custom script: call DestroyGroup( udg_PitGroupDamageDone ) Custom script: call RemoveLocation( udg_PitPosition ) Custom script: call RemoveLocation( udg_PitTargetPosition ) Else - Actions
- - - Updated - - -
sặc! bôi nhầm chỗ rồi, bôi lại nè, mod xóa dùm bài kia dùm em ạ!
- - - Updated - - -
sặc! bôi nhầm chỗ rồi, bôi lại nè, mod xóa dùm bài kia dùm em ạ!
Mình fix xong rồi, ở trên chẳng có vấn đề gì cả, chả cần set đi set lại cho nó lag ra ca ok? sai ở chỗ là cái order nó bị lỗi chứ chả liên quan gì đến group, mình để group y nguyên như cũ và thay lệnh Unit - Order (Last created unit) to Night Elf Tree Of Life - Entangle (Picked unit) = Unit - Order (Last created unit) to Night Elf Tree Of Life - Entangling Roots (Picked unit). Bây giờ mình mới nhận ra là mình set nhầm Entangle và Entangling Roots, 2 cái này nó khác nhau khiến dummy ko cast skill vào con bị pick, sau khi sửa lại mình thấy lại ngon như bt :). Thân
) ,cách mình thường sử dụng nhất là mỗi lần move thì + distance ,bao h đến giới hạn thì dừng lại .Hoặc thực tế hơn là có thể làm skill này né được bằng Blink nếu là 1 skill cast vào 1 unit di chuyển