Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Làm theo như Leo, vậy trong map có bao nhiêu Hero thì phải set hết bấy nhiu à @@, item nữa chứ @@Demo thì có đây. Xài thì copy qua map, sửa lại cái trigger Setup chút là xong. Nhớ để tên LeoNguyen nhéLink download
Tất nhiên, không set thì biết item nào của agility, item nào của strength, cái gì cũng phải đăng kí thôi bạn ơiLàm theo như Leo, vậy trong map có bao nhiêu Hero thì phải set hết bấy nhiu à @@, item nữa chứ @@

hơn 1 tí
destroy, custom script cũng không xong.
Leo cho cái map demo lun nhá. Leo làm cái item Flame Armor và Water Armor, khi mạng Flame thì upgrade đổi wa armor Large Armor, còn Water thì đổi wa Medium Armor giúp nhá
Thanks nhiều !function Effect takes location Loc, unit Dummy returns nothing
local real x1 = GetUnitX( Dummy )
local real x1t = GetRandomReal( x1 - 100, x1 + 100 )
local real y1 = GetUnitY( Dummy )
local real y1t = GetRandomReal( y1 - 100, y1 + 100 )
local real z1 = GetUnitFlyHeight( Dummy )
local real z1t = GetRandomReal( z1 - 50, z1 + 50 )
local real x2 = GetLocationX( Loc )
local real y2 = GetLocationY( Loc )
local lightning Light = AddLightningEx( "FORK", true, x1t, y1t, z1t, x2, y2, 0)
[B][COLOR="Red"] call TriggerSleepAction(0.05)[/COLOR][/B]
call DestroyLightningBJ( Light )
endfunction
effect
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in TS_Group and do (Actions)
Loop - Actions
Set TS_TempInt = (Custom value of (Picked unit))
Set TS_Count[TS_TempInt] = (TS_Count[TS_TempInt] - 1)
Set TS_TLoc[TS_TempInt] = (TS_MLoc[TS_TempInt] offset by 200.00 towards 360.00 degrees)
[B][COLOR="Red"]Custom script: call Effect( udg_TS_TLoc[udg_TS_TempInt], GetEnumUnit() )[/COLOR][/B]
Unit - Create 1 Ground Effect for Player 1 (Red) at TS_TLoc[TS_TempInt] facing Default building facing degrees
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_TS_TLoc[udg_TS_TempInt])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TS_Count[TS_TempInt] Equal to 0
Then - Actions
Unit Group - Remove (Picked unit) from TS_Group
Unit - Kill (Picked unit)
Custom script: call RemoveLocation(udg_TS_MLoc[udg_TS_TempInt])
Else - Actions
effect
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in TS_Group and do (Actions)
Loop - Actions
Set TS_TempInt = (Custom value of (Picked unit))
Set TS_Count[TS_TempInt] = (TS_Count[TS_TempInt] - 1)
Set TS_TLoc[TS_TempInt] = (TS_MLoc[TS_TempInt] offset by 200.00 towards 360.00 degrees)
[B]Custom script: call Effect[COLOR="Blue"].execute[/COLOR]( udg_TS_TLoc[udg_TS_TempInt], GetEnumUnit() )[/B]
Unit - Create 1 Ground Effect for Player 1 (Red) at TS_TLoc[TS_TempInt] facing Default building facing degrees
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_TS_TLoc[udg_TS_TempInt])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TS_Count[TS_TempInt] Equal to 0
Then - Actions
Unit Group - Remove (Picked unit) from TS_Group
Unit - Kill (Picked unit)
Custom script: call RemoveLocation(udg_TS_MLoc[udg_TS_TempInt])
Else - Actions
function Trig_DestroyLightWait_Actions takes nothing returns nothing
local unit Dummy = udg_TempUnit
local location Loc = udg_TS_TLoc[udg_TS_TempInt]
local real x1 = GetUnitX( Dummy )
local real x1t = GetRandomReal( x1 - 100, x1 + 100 )
local real y1 = GetUnitY( Dummy )
local real y1t = GetRandomReal( y1 - 100, y1 + 100 )
local real z1 = GetUnitFlyHeight( Dummy )
local real z1t = GetRandomReal( z1 - 50, z1 + 50 )
local real x2 = GetLocationX( Loc )
local real y2 = GetLocationY( Loc )
local lightning Light = AddLightningEx( "FORK", true, x1t, y1t, z1t, x2, y2, 0)
call TriggerSleepAction(0.05)
call DestroyLightningBJ( Light )
set Light = null
set Dummy = null
set Loc = null // chi la null chu ko la remove
endfunction
//===========================================================================
function InitTrig_DestroyLightWait takes nothing returns nothing
set gg_trg_DestroyLightWait = CreateTrigger( )
call TriggerAddAction( gg_trg_DestroyLightWait, function Trig_DestroyLightWait_Actions )
endfunction
effect
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in TS_Group and do (Actions)
Loop - Actions
Set TS_TempInt = (Custom value of (Picked unit))
Set TS_Count[TS_TempInt] = (TS_Count[TS_TempInt] - 1)
Set TS_TLoc[TS_TempInt] = (TS_MLoc[TS_TempInt] offset by 200.00 towards 360.00 degrees)
[B][COLOR="Blue"]Set TempUnit = (Picked Unit)
Trigger - Run DestroyLightWait <gen> (ignoring conditions)[/COLOR][/B]
Unit - Create 1 Ground Effect for Player 1 (Red) at TS_TLoc[TS_TempInt] facing Default building facing degrees
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_TS_TLoc[udg_TS_TempInt])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TS_Count[TS_TempInt] Equal to 0
Then - Actions
Unit Group - Remove (Picked unit) from TS_Group
Unit - Kill (Picked unit)
Custom script: call RemoveLocation(udg_TS_MLoc[udg_TS_TempInt])
Else - Actions
không được anh Kul ơi,syntax error, nó còn bắn ra khỏi loading screen nữa :(Thunder Cloud Effect
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 50, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ThunderCloud_Unit[(Integer A)] Not equal to No unit
Then - Actions
Lightning - Destroy ThunderCloud_LE[(Integer A)]
Set TempPoint = (ThunderCloud_Point[(Integer A)] offset by (Random real number between 0.00 and 150.00) towards (Random angle) degrees)
Set ThunderCloud_X = (X of TempPoint)
Set ThunderCloud_Y = (Y of TempPoint)
Lightning - Create a Lightning Attack, Visible lightning effect from source (ThunderCloud_X,ThunderCloud_Y,500.00) to target (ThunderCloud_X,ThunderCloud_Y,0.00)
Set ThunderCloud_LE[(Integer A)] = (Last created lightning effect)
Custom script: call RemoveLocation(udg_TempPoint)
Else - Actions