FlameDrake
Dragon Quest
- 1/12/10
- 1,298
- 132
Mình xin phép code lại cái trigger đó
Phần màu tím ko hề có set 1 biến Unit Group nào, nhưng trong vòng loop thì lại xóa leak 
Phần màu đó là 1 biến Unit Group ẩn ko hề đc set mà chỉ dùng ẩn vậy thì cần gì remove
Biến Unit random mà sao dính Unit Group trong đó ( xanh lá cây)
Nên mình ko biết remove leak là remove cái nào trong này
phương thức xóa leak này cũng ko ghi rõ tên biến nên ko biết mà lần 
Mong các ĐK HD kỹ phần leak này T_T
Mã:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mind Burn
Actions
[COLOR="#4B0082"]Set TempUnit = (Triggering unit)
Set TempInt = (Level of Mind Burn for TempUnit)
Set TempUnit2 = (Target unit of ability being cast)
Set TempLoc = (Position of TempUnit2)[/COLOR]
[COLOR="#FF0000"]Unit Group - Add TempUnit2 to TempGroup[/COLOR] //mục tiêu chắc chắn là bị burn rồi nên add vào group luôn
For each (Integer LoopInteger) from 1 to 4, do (Actions) //1 -> 4 -> jump 4 lần
Loop - Actions
Wait 0.10 seconds //đợi 1 tí :)
[COLOR="#FF0000"]Custom script: set bj_wantDestroyGroup = true[/COLOR] //cái này để group mà sau khi pick random sẽ bị destroy, remove leak thôi
Set TempUnit2 = (Random unit from [COLOR="#006400"](Units within 600.00 of TempLoc matching ((((((Matching unit) is alive) Equal to True) and (((Matching unit) is in TempGroup) Equal to False)) and (((Matching unit) is Magic Immune) Equal to False)) and ((((Matching unit) belongs to an enemy[/COLOR]
//Chú ý điều kiện nha
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TempUnit2 Equal to No unit
Then - Actions
Set LoopInteger = 10 //ko có unit nào thì thoát khỏi vòng lặp
Custom script: call RemoveLocation( udg_TempLoc )
Else - Actions
//Có unit, pick đc, vậy thì tạo dummy unit ở vị trí unit cũ đã bị burn (TempLoc) và burn unit này
Unit - Create 1 Dummy Unit for (Owner of TempUnit) at TempLoc facing 0.00 degrees // tạo dummy unit
Set Dummy = (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to Dummy
Unit - Add Mana Burn (Dummy) to Dummy
Unit - Set level of Mana Burn (Dummy) for Dummy to (((TempInt - 1) x 5) + LoopInteger)
Unit - Order Dummy to Night Elf Demon Hunter - Mana Burn TempUnit2 //cast mana burn
Custom script: call RemoveLocation( udg_TempLoc )
Unit Group - Add TempUnit2 to TempGroup //bị burn thì add vào group
Set TempLoc = (Position of TempUnit2) //lưu lại vị trí unit vừa bị burn
[COLOR="#FF0000"]Unit Group - Remove all units from TempGroup //xóa các unit trong TempGroup[/COLOR]

Phần màu đó là 1 biến Unit Group ẩn ko hề đc set mà chỉ dùng ẩn vậy thì cần gì remove
Biến Unit random mà sao dính Unit Group trong đó ( xanh lá cây)
Nên mình ko biết remove leak là remove cái nào trong này
phương thức xóa leak này cũng ko ghi rõ tên biến nên ko biết mà lần 
Mong các ĐK HD kỹ phần leak này T_T
Chỉnh sửa cuối:
.

. model của em là hero cầm chùy nên đặt Animation chuẩn 1 tý hộ em. chứ em cũng chả biết làm 
