YAN[asian]
Mario & Luigi
FrostWyrm biết làm AI tạo 1 topic hướng dẫn anh em làm đi
cho mình hỏi 2 trinnger này làm sao để xóa leck . mình chơi thử trên GG cứ cast 1 cái delays 1s. ai giúp với.
đây là skill như hook của butcher
tringger 2Mã:TruyTinhTrucNguyet Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Truy Tinh Trôc NguyÖt Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions MUI[0] Equal to 0 Then - Actions Trigger - Turn on TruyTinhTrucNguyetLoop <gen> Else - Actions Set MUI[0] = (MUI[0] + 1) Set MUI[1] = (MUI[1] + 1) Set Caster_BoxHok[MUI[1]] = (Triggering unit) [COLOR="#FF0000"]Set Point1[MUI[1]] = (Position of Caster_BoxHok[MUI[1]])[/COLOR] Set Point2 = (Target point of ability being cast) [COLOR="#FF0000"]Set Point3[MUI[1]] = ((Position of Caster_BoxHok[MUI[1]]) offset by 50.00 towards ((Facing of Caster_BoxHok[MUI[1]]) + 70.00) degrees)[/COLOR] Set Angle[MUI[1]] = (Angle from Point1[MUI[1]] to Point2) Set AreaOfEffect = 125.00 Set Velocity = 30.00 Set Distance[MUI[1]] = 0.00 Set Damage[MUI[1]] = (100.00 x (Real((Level of Truy Tinh Trôc NguyÖt for (Triggering unit))))) Set BooleanCome[MUI[1]] = False Set Range[MUI[1]] = (300.00 + (200.00 x (Real((Level of Truy Tinh Trôc NguyÖt for (Triggering unit)))))) Set Loop[MUI[1]] = 0 Set Target_Boxhok[MUI[1]] = No unit Set BooleanOn_Off[MUI[1]] = True Custom script: call RemoveLocation(udg_Point2)
Mã:TruyTinhTrucNguyetLoop Events Time - Every 0.03 seconds of game time Conditions Actions For each (Integer MUI[2]) from 1 to MUI[1], do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions BooleanOn_Off[MUI[2]] Equal to True Then - Actions [COLOR="#FF0000"]Set Point3[MUI[1]] = ((Position of Caster_BoxHok[MUI[1]]) offset by 50.00 towards ((Facing of Caster_BoxHok[MUI[1]]) + 70.00) degrees)[/COLOR] If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions BooleanCome[MUI[2]] Equal to False Then - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Distance[MUI[2]] Less than Range[MUI[2]] Then - Actions Set Distance[MUI[2]] = (Distance[MUI[2]] + Velocity) Else - Actions Set BooleanCome[MUI[2]] = True Set TempPoint = (Point3[MUI[2]] offset by Distance[MUI[2]] towards Angle[MUI[2]] degrees) Unit - Create 1 TruyTinhTrucNguyet [Dummy] for (Owner of Caster_BoxHok[MUI[2]]) at TempPoint facing Angle[MUI[2]] degrees Set Dummy[Loop[MUI[2]]] = (Last created unit) [COLOR="#FF0000"]Set Target_Boxhok[MUI[2]] = (Random unit from (Units within AreaOfEffect of (Position of Dummy[Loop[MUI[2]]]) matching (((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is Mechanical) Not equal to True))) and ((Matc[/COLOR] If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Target_Boxhok[MUI[2]] Not equal to No unit Then - Actions Unit - Turn collision for Target_Boxhok[MUI[2]] Off If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Target_Boxhok[MUI[2]] belongs to an ally of (Owner of Caster_BoxHok[MUI[2]])) Equal to False Then - Actions Unit - Cause Caster_BoxHok[MUI[2]] to damage Target_Boxhok[MUI[2]], dealing Damage[MUI[2]] damage of attack type Spells and damage type Normal [COLOR="#FF0000"]Unit - Create 1 TruyTinhTrucNguyet [Caster] for (Owner of Caster_BoxHok[MUI[2]]) at (Position of Target_Boxhok[2]) facing Default building facing degrees[/COLOR] Set DummyCaster_Boxhok = (Last created unit) Unit - Add a 0.50 second Generic expiration timer to DummyCaster_Boxhok Unit - Order DummyCaster_Boxhok to Human Mountain King - Storm Bolt Target_Boxhok[MUI[2]] Set DummyCaster_Boxhok = No unit Else - Actions Set BooleanCome[MUI[2]] = True Else - Actions Custom script: call RemoveLocation(udg_TempPoint) Set Loop[MUI[2]] = (Loop[MUI[2]] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions BooleanCome[MUI[2]] Equal to True Loop[MUI[2]] Greater than or equal to 1 Then - Actions Set Loop[MUI[2]] = (Loop[MUI[2]] - 1) Unit - Remove Dummy[Loop[MUI[2]]] from the game Set Distance[MUI[2]] = (Distance[MUI[2]] - Velocity) Set TempPoint = (Point3[MUI[2]] offset by Distance[MUI[2]] towards Angle[MUI[2]] degrees) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Target_Boxhok[MUI[2]] Not equal to No unit Then - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Target_Boxhok[MUI[2]] belongs to an enemy of (Owner of Caster_BoxHok[MUI[2]])) Equal to True Then - Actions Else - Actions Unit - Move Target_Boxhok[MUI[2]] instantly to TempPoint Else - Actions Custom script: call RemoveLocation(udg_TempPoint) Else - Actions Unit - Turn collision for Target_Boxhok[MUI[2]] On Set BooleanOn_Off[MUI[2]] = False If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions BooleanOn_Off[MUI[2]] Equal to False Then - Actions Set MUI[0] = (MUI[0] - 1) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions MUI[0] Equal to 0 Then - Actions Set MUI[1] = 0 Trigger - Turn off (This trigger) Else - Actions Else - Actions Else - Actions
Cả 2 trigger đều bị leak point, trigger 2 bị leak cả point lẫn group.
Cách xóa leak thì ngay đây :
Xóa point : Thay cái màu đỏ bằng point cần xóa
Mã:
Custom script: call RemoveLocation(udg_[COLOR="#FF0000"]Point2[/COLOR])
Mã:
Custom script: call DestroyGroup(udg_[COLOR="#FF0000"]TempGroup[/COLOR])
Chỉnh sửa cuối:

.
.

. Hữu ích ra phết đấy.
.
kiêm tra giùm
