// Map modified by Reppe (Version 2009-09-16)
Name | Type | is_array | initial_value |
boolean01 | boolean | No | |
force01 | force | No | |
force02 | force | No | |
group01 | group | No | |
group02 | group | No | |
group03 | group | No | |
group04 | group | No | |
integer01 | integer | No | |
integer02 | integer | No | |
integer03 | integer | No | |
integer04 | integer | No | |
integers01 | integer | Yes | |
integers02 | integer | Yes | |
random | integer | Yes | 25 |
randomgroup1 | unitcode | Yes | |
rect01 | rect | No | |
rect02 | rect | No | |
rect03 | rect | No | |
rect04 | rect | No | |
rect05 | rect | No | |
rect06 | rect | No | |
rect07 | rect | No | |
rect08 | rect | No | |
rect09 | rect | No | |
rect10 | rect | No | |
rect11 | rect | No | |
rect12 | rect | No | |
rect13 | rect | No | |
rect14 | rect | No | |
rect15 | rect | No | |
rect16 | rect | No | |
sound01 | sound | No | |
sound02 | sound | No | |
sound03 | sound | No | |
sound04 | sound | No | |
sound05 | sound | No | |
sound06 | sound | No | |
sound07 | sound | No | |
sound08 | sound | No | |
sound09 | sound | No | |
sound10 | sound | No | |
timer01 | timer | No | |
trigger01 | trigger | No | |
trigger02 | trigger | No | |
trigger03 | trigger | No | |
trigger04 | trigger | No | |
trigger05 | trigger | No | |
trigger06 | trigger | No | |
trigger07 | trigger | No | |
trigger08 | trigger | No | |
trigger09 | trigger | No | |
trigger10 | trigger | No | |
trigger11 | trigger | No | |
trigger12 | trigger | No | |
trigger13 | trigger | No | |
trigger14 | trigger | No | |
trigger15 | trigger | No | |
trigger16 | trigger | No | |
trigger17 | trigger | No | |
trigger18 | trigger | No | |
trigger19 | trigger | No | |
trigger20 | trigger | No | |
trigger21 | trigger | No | |
trigger22 | trigger | No | |
trigger23 | trigger | No | |
trigger24 | trigger | No | |
trigger25 | trigger | No | |
trigger26 | trigger | No | |
trigger27 | trigger | No | |
trigger28 | trigger | No | |
trigger29 | trigger | No | |
trigger30 | trigger | No | |
trigger31 | trigger | No | |
trigger32 | trigger | No | |
trigger33 | trigger | No | |
trigger34 | trigger | No | |
trigger35 | trigger | No | |
trigger36 | trigger | No | |
trigger37 | trigger | No | |
trigger38 | trigger | No | |
trigger39 | trigger | No | |
trigger40 | trigger | No | |
trigger41 | trigger | No | |
trigger42 | trigger | No | |
trigger43 | trigger | No | |
trigger44 | trigger | No | |
trigger45 | trigger | No | |
trigger46 | trigger | No | |
trigger47 | trigger | No | |
trigger48 | trigger | No | |
trigger49 | trigger | No | |
trigger50 | trigger | No | |
trigger51 | trigger | No | |
trigger52 | trigger | No | |
trigger53 | trigger | No | |
trigger54 | trigger | No | |
unit01 | unit | No | |
unit02 | unit | No | |
unit03 | unit | No | |
unit04 | unit | No | |
unit05 | unit | No | |
unit06 | unit | No | |
unit07 | unit | No | |
unit08 | unit | No | |
unit09 | unit | No | |
unit10 | unit | No | |
unit11 | unit | No | |
unit12 | unit | No | |
unit13 | unit | No | |
unit14 | unit | No |
// Map modified by Reppe (Version 2009-09-16)
function InitGlobals2 takes nothing returns nothing
local integer i=0
set udg_timer01=CreateTimer()
set udg_force01=CreateForce()
set udg_boolean01=false
set udg_integer01='nC57'
set udg_force02=CreateForce()
set udg_integer02=25
set udg_integer03=25
set i=0
loop
exitwhen(i>1)
set udg_integers01[i]=0
set i=i+1
endloop
set udg_group01=CreateGroup()
set udg_group02=CreateGroup()
set udg_group03=CreateGroup()
set udg_group04=CreateGroup()
set udg_integer04=0
set i=0
loop
exitwhen(i>1)
set udg_integers02[i]=0
set i=i+1
endloop
endfunction
function CreateBuildingsForPlayer0 takes nothing returns nothing
local player p=Player(0)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit04=CreateUnit(p,'hC15',-2624.,1472.,270.)
set u=CreateUnit(p,'hC15',-2112.,1472.,270.)
set u=CreateUnit(p,'h01G',-3904.,4800.,270.)
set u=CreateUnit(p,'h01C',-3392.,4800.,270.)
set udg_unit12=CreateUnit(p,'h02P',-2368.,1984.,270.)
endfunction
function CreateBuildingsForPlayer1 takes nothing returns nothing
local player p=Player(1)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit06=CreateUnit(p,'hC15',64.,1472.,270.)
set u=CreateUnit(p,'hC15',-448.,1472.,270.)
set u=CreateUnit(p,'h01G',-1600.,5376.,270.)
set u=CreateUnit(p,'h01C',-1600.,4864.,270.)
set udg_unit11=CreateUnit(p,'h02P',-192.,1984.,270.)
endfunction
function CreateBuildingsForPlayer2 takes nothing returns nothing
local player p=Player(2)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit05=CreateUnit(p,'hC15',2112.,1472.,270.)
set u=CreateUnit(p,'hC15',2624.,1472.,270.)
set u=CreateUnit(p,'h01G',3904.,4800.,270.)
set u=CreateUnit(p,'h01C',3392.,4800.,270.)
set udg_unit13=CreateUnit(p,'h02P',2368.,1984.,270.)
endfunction
function CreateBuildingsForPlayer3 takes nothing returns nothing
local player p=Player(3)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit07=CreateUnit(p,'hC15',2624.,-1088.,270.)
set u=CreateUnit(p,'hC15',2112.,-1088.,270.)
set u=CreateUnit(p,'h01G',3840.,-4480.,270.)
set u=CreateUnit(p,'h01C',3328.,-4480.,270.)
set udg_unit14=CreateUnit(p,'h02P',2368.,-1600.,270.)
endfunction
function CreateBuildingsForPlayer4 takes nothing returns nothing
local player p=Player(4)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit01=CreateUnit(p,'hC15',64.,-1088.,270.)
set u=CreateUnit(p,'hC15',-448.,-1088.,270.)
set u=CreateUnit(p,'h01G',-1472.,-4864.,270.)
set u=CreateUnit(p,'h01C',-1472.,-5376.,270.)
set udg_unit09=CreateUnit(p,'h02P',-192.,-1600.,270.)
endfunction
function CreateBuildingsForPlayer5 takes nothing returns nothing
local player p=Player(5)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit08=CreateUnit(p,'hC15',-2624.,-1088.,270.)
set u=CreateUnit(p,'hC15',-2112.,-1088.,270.)
set u=CreateUnit(p,'h01G',-3904.,-4416.,270.)
set u=CreateUnit(p,'h01C',-3392.,-4416.,270.)
set udg_unit10=CreateUnit(p,'h02P',-2368.,-1600.,270.)
endfunction
function CreateUnitsForPlayer11 takes nothing returns nothing
local player p=Player(11)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit02=CreateUnit(p,'nbsp',-197.3,5628.5,350.83)
set udg_unit03=CreateUnit(p,'nbsp',-263.1,-5238.9,350.83)
endfunction
function CreateRegions2 takes nothing returns nothing
local weathereffect we
set udg_rect01=Rect(-288.,-3104.,-224.,-3040.)
set udg_rect02=Rect(-3872.,-3360.,-3808.,-3296.)
set udg_rect03=Rect(3808.,-3360.,3872.,-3296.)
set udg_rect04=Rect(-480.,-5088.,.0,-4864.)
set udg_rect05=Rect(-384.,5280.,96.,5504.)
set udg_rect06=Rect(-4096.,-256.,-3456.,640.)
set udg_rect07=Rect(3584.,-256.,4160.,640.)
set udg_rect08=Rect(-3008.,-2048.,3040.,-736.)
set udg_rect09=Rect(-3008.,1088.,3040.,2304.)
set udg_rect10=Rect(-160.,3296.,-96.,3360.)
set udg_rect11=Rect(-3872.,3808.,-3808.,3872.)
set udg_rect12=Rect(3808.,3808.,3872.,3872.)
set udg_rect13=Rect(-64.,-192.,224.,96.)
set udg_rect14=Rect(-64.,160.,224.,480.)
set udg_rect15=Rect(-480.,-192.,-192.,96.)
set udg_rect16=Rect(-480.,160.,-192.,480.)
endfunction
function Trig_Int_WinTD_Copy_Func006002 takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetPlayableMapRect())
endfunction
function Trig_Int_WinTD_Copy_Func014001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Int_WinTD_Copy_Func015001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Int_WinTD_Copy_Func016001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Int_WinTD_Copy_Func017001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Int_WinTD_Copy_Func018001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Int_WinTD_Copy_Func019001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Int_WinTD_Copy_Func020002 takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD,30)
endfunction
function Trig_Int_WinTD_Copy_Func021002 takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
endfunction
function Trig_Int_WinTD_Copy_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound10)
call DisplayTextToForce(GetPlayersAll(),"|cffff0000Welcome to |r|cff7777aaReppe's|r|cffff0000 Map |r")
call SetSkyModel("Environment\\Sky\\BlizzardSky\\BlizzardSky.mdl")
call ForForce(GetPlayersAll(),function Trig_Int_WinTD_Copy_Func006002)
call SetGameSpeed(MAP_SPEED_FASTEST)
call LockGameSpeedBJ()
call SetTimeOfDay(18.01)
call SetTimeOfDayScalePercentBJ(.01)
if(Trig_Int_WinTD_Copy_Func014001())then
call ForceAddPlayerSimple(Player(0),udg_force01)
endif
if(Trig_Int_WinTD_Copy_Func015001())then
call ForceAddPlayerSimple(Player(1),udg_force01)
endif
if(Trig_Int_WinTD_Copy_Func016001())then
call ForceAddPlayerSimple(Player(2),udg_force01)
endif
if(Trig_Int_WinTD_Copy_Func017001())then
call ForceAddPlayerSimple(Player(3),udg_force02)
endif
if(Trig_Int_WinTD_Copy_Func018001())then
call ForceAddPlayerSimple(Player(4),udg_force02)
endif
if(Trig_Int_WinTD_Copy_Func019001())then
call ForceAddPlayerSimple(Player(5),udg_force02)
endif
call ForForce(GetPlayersAll(),function Trig_Int_WinTD_Copy_Func020002)
call ForForce(GetPlayersAll(),function Trig_Int_WinTD_Copy_Func021002)
call SetUnitInvulnerable(udg_unit02,true)
call SetUnitInvulnerable(udg_unit03,true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers01[GetForLoopIndexA()]=25
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers02[GetForLoopIndexA()]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(10))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))
endfunction
function Trig_Player_Units_Create_Func003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func004001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func005001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func006001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func007001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func008001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func010001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func010003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_Units_Create_Func011001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func011003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_Units_Create_Func012001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func012003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_Units_Create_Func013001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func013003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_Units_Create_Func014001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func014003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_Units_Create_Func015001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Units_Create_Func015003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_Units_Create_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound01)
if(Trig_Player_Units_Create_Func003001())then
else
call SetUnitOwner(udg_unit04,Player(10),true)
endif
if(Trig_Player_Units_Create_Func004001())then
else
call SetUnitOwner(udg_unit06,Player(10),true)
endif
if(Trig_Player_Units_Create_Func005001())then
else
call SetUnitOwner(udg_unit05,Player(10),true)
endif
if(Trig_Player_Units_Create_Func006001())then
else
call SetUnitOwner(udg_unit07,Player(11),true)
endif
if(Trig_Player_Units_Create_Func007001())then
else
call SetUnitOwner(udg_unit01,Player(11),true)
endif
if(Trig_Player_Units_Create_Func008001())then
else
call SetUnitOwner(udg_unit08,Player(11),true)
endif
if(Trig_Player_Units_Create_Func010001())then
else
call ForGroupBJ(GetUnitsOfPlayerAll(Player(0)),function Trig_Player_Units_Create_Func010003002)
endif
if(Trig_Player_Units_Create_Func011001())then
else
call ForGroupBJ(GetUnitsOfPlayerAll(Player(1)),function Trig_Player_Units_Create_Func011003002)
endif
if(Trig_Player_Units_Create_Func012001())then
else
call ForGroupBJ(GetUnitsOfPlayerAll(Player(2)),function Trig_Player_Units_Create_Func012003002)
endif
if(Trig_Player_Units_Create_Func013001())then
else
call ForGroupBJ(GetUnitsOfPlayerAll(Player(3)),function Trig_Player_Units_Create_Func013003002)
endif
if(Trig_Player_Units_Create_Func014001())then
else
call ForGroupBJ(GetUnitsOfPlayerAll(Player(4)),function Trig_Player_Units_Create_Func014003002)
endif
if(Trig_Player_Units_Create_Func015001())then
else
call ForGroupBJ(GetUnitsOfPlayerAll(Player(5)),function Trig_Player_Units_Create_Func015003002)
endif
call StartTimerBJ(udg_timer01,true,25.)
call CreateTimerDialogBJ(udg_timer01,("Next Level"+" in..."))
call DisplayTimedTextToForce(GetPlayersAll(),25.,"|c0000cdf9Build Attackers in your Shrine!|r")
call TriggerExecute(udg_trigger54)
endfunction
function Trig_Updates_Actions takes nothing returns nothing
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Wintermaul Wars","TRIGSTR_525","UI\\Widgets\\Console\\Human\\infocard-banshee.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Works in Progress..","TRIGSTR_1859","ReplaceableTextures\\CommandButtons\\BTNTemp.blp")
endfunction
function Trig_No_Air_Expires_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger05)
endfunction
function Trig_No_Air_Actions takes nothing returns nothing
call RemoveUnit(udg_unit12)
call RemoveUnit(udg_unit11)
call RemoveUnit(udg_unit13)
call RemoveUnit(udg_unit10)
call RemoveUnit(udg_unit09)
call RemoveUnit(udg_unit14)
call DisplayTextToForce(GetPlayersAll(),"Red has chosen... |cffffcc00No Air|r")
endfunction
function Trig_Next_Level_Conditions takes nothing returns boolean
return(udg_boolean01==false)
endfunction
function Trig_Next_Level_Func005002 takes nothing returns nothing
call AdjustPlayerStateBJ(udg_integers01[GetConvertedPlayerId(GetEnumPlayer())],GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Next_Level_Func006002 takes nothing returns nothing
call AdjustPlayerStateBJ(udg_integers02[GetConvertedPlayerId(GetEnumPlayer())],GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function Trig_Next_Level_Func007001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Next_Level_Func008001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Next_Level_Func009001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Next_Level_Func010001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Next_Level_Func011001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Next_Level_Func012001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Next_Level_Actions takes nothing returns nothing
call DestroyTimerDialogBJ(GetLastCreatedTimerDialogBJ())
call CreateTimerDialogBJ(udg_timer01,"Next Round in...")
call ForForce(GetPlayersAll(),function Trig_Next_Level_Func005002)
call ForForce(GetPlayersAll(),function Trig_Next_Level_Func006002)
if(Trig_Next_Level_Func007001())then
call ConditionalTriggerExecute(udg_trigger07)
endif
if(Trig_Next_Level_Func008001())then
call ConditionalTriggerExecute(udg_trigger08)
endif
if(Trig_Next_Level_Func009001())then
call ConditionalTriggerExecute(udg_trigger09)
endif
if(Trig_Next_Level_Func010001())then
call ConditionalTriggerExecute(udg_trigger10)
endif
if(Trig_Next_Level_Func011001())then
call ConditionalTriggerExecute(udg_trigger11)
endif
if(Trig_Next_Level_Func012001())then
call ConditionalTriggerExecute(udg_trigger12)
endif
call ConditionalTriggerExecute(udg_trigger47)
endfunction
function Trig_Show_Stats_Red_Func003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Red_Func004001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Red_Func005001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Red_Func006001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Red_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.,("|c00ff0000Your Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(0))])))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.,("|c00ff0000Your Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(0))])))
if(Trig_Show_Stats_Red_Func003001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.,(("|c000000ff"+GetPlayerName(Player(1)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(1))]))))
endif
if(Trig_Show_Stats_Red_Func004001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.,(("|c000000ff"+GetPlayerName(Player(1)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(1))]))))
endif
if(Trig_Show_Stats_Red_Func005001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.,(("|c00008080"+GetPlayerName(Player(2)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(2))]))))
endif
if(Trig_Show_Stats_Red_Func006001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.,(("|c00008080"+GetPlayerName(Player(2)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(2))]))))
endif
endfunction
function Trig_Show_Stats_Blue_Func003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Blue_Func004001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Blue_Func005001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Blue_Func006001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Blue_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.,("|c000000ffYour Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(1))])))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.,("|c000000ffYour Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(1))])))
if(Trig_Show_Stats_Blue_Func003001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.,(("|c00ff0000"+GetPlayerName(Player(0)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(0))]))))
endif
if(Trig_Show_Stats_Blue_Func004001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.,(("|c00ff0000"+GetPlayerName(Player(0)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(0))]))))
endif
if(Trig_Show_Stats_Blue_Func005001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.,(("|c00008080"+GetPlayerName(Player(2)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(2))]))))
endif
if(Trig_Show_Stats_Blue_Func006001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.,(("|c00008080"+GetPlayerName(Player(2)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(2))]))))
endif
endfunction
function Trig_Show_Stats_Teal_Func003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Teal_Func004001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Teal_Func005001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Teal_Func006001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Teal_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.,("|c00008080Your Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(2))])))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.,("|c00008080Your Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(2))])))
if(Trig_Show_Stats_Teal_Func003001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.,(("|c00ff0000"+GetPlayerName(Player(0)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(0))]))))
endif
if(Trig_Show_Stats_Teal_Func004001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.,(("|c00ff0000"+GetPlayerName(Player(0)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(0))]))))
endif
if(Trig_Show_Stats_Teal_Func005001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.,(("|c000000ff"+GetPlayerName(Player(1)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(1))]))))
endif
if(Trig_Show_Stats_Teal_Func006001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.,(("|c000000ff"+GetPlayerName(Player(1)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(1))]))))
endif
endfunction
function Trig_Show_Stats_Purple_Func003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Purple_Func004001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Purple_Func005001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Purple_Func006001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Purple_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],10.,("|c00800080Your Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(3))])))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],10.,("|c00800080Your Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(3))])))
if(Trig_Show_Stats_Purple_Func003001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],10.,(("|c00ffff00"+GetPlayerName(Player(4)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(4))]))))
endif
if(Trig_Show_Stats_Purple_Func004001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],10.,(("|c00ffff00"+GetPlayerName(Player(4)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(4))]))))
endif
if(Trig_Show_Stats_Purple_Func005001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],10.,(("|c00ff8040"+GetPlayerName(Player(5)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(5))]))))
endif
if(Trig_Show_Stats_Purple_Func006001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],10.,(("|c00ff8040"+GetPlayerName(Player(5)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(5))]))))
endif
endfunction
function Trig_Show_Stats_Yellow_Func003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Yellow_Func004001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Yellow_Func005001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Yellow_Func006001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Yellow_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],10.,("|c00ffff00Your Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(4))])))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],10.,("|c00ffff00Your Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(4))])))
if(Trig_Show_Stats_Yellow_Func003001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],10.,(("|c00800080"+GetPlayerName(Player(3)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(3))]))))
endif
if(Trig_Show_Stats_Yellow_Func004001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],10.,(("|c00800080"+GetPlayerName(Player(3)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(3))]))))
endif
if(Trig_Show_Stats_Yellow_Func005001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],10.,(("|c00ff8040"+GetPlayerName(Player(5)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(5))]))))
endif
if(Trig_Show_Stats_Yellow_Func006001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],10.,(("|c00ff8040"+GetPlayerName(Player(5)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(5))]))))
endif
endfunction
function Trig_Show_Stats_Orange_Func003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Orange_Func004001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Orange_Func005001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Orange_Func006001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_Orange_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],10.,("|c00ff8040Your Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(5))])))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],10.,("|c00ff8040Your Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(5))])))
if(Trig_Show_Stats_Orange_Func003001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],10.,(("|c00800080"+GetPlayerName(Player(3)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(3))]))))
endif
if(Trig_Show_Stats_Orange_Func004001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],10.,(("|c00800080"+GetPlayerName(Player(3)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(3))]))))
endif
if(Trig_Show_Stats_Orange_Func005001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],10.,(("|c00ffff00"+GetPlayerName(Player(4)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(4))]))))
endif
if(Trig_Show_Stats_Orange_Func006001())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],10.,(("|c00ffff00"+GetPlayerName(Player(4)))+("'s Wood Income:|r "+I2S(udg_integers02[GetConvertedPlayerId(Player(4))]))))
endif
endfunction
function Trig_Show_Stats_All_Func003001 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_All_Func004001 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_All_Func005001 takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_All_Func007001 takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_All_Func008001 takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_All_Func009001 takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Show_Stats_All_Actions takes nothing returns nothing
local integer Income
set Income=0
call DisplayTimedTextToForce(GetPlayersAll(),10.," ")
call DisplayTimedTextToForce(GetPlayersAll(),10.,"|c00ff80c0Force 1:|r")
if(Trig_Show_Stats_All_Func003001())then
call DisplayTimedTextToForce(GetPlayersAll(),10.,((" |c00ff0000"+GetPlayerName(Player(0)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(0))]))))
set Income=udg_integers01[GetConvertedPlayerId(Player(0))]
endif
if(Trig_Show_Stats_All_Func004001())then
call DisplayTimedTextToForce(GetPlayersAll(),10.,((" |c000000ff"+GetPlayerName(Player(1)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(1))]))))
set Income=Income+udg_integers01[GetConvertedPlayerId(Player(1))]
endif
if(Trig_Show_Stats_All_Func005001())then
call DisplayTimedTextToForce(GetPlayersAll(),10.,((" |c00008080"+GetPlayerName(Player(2)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(2))]))))
set Income=Income+udg_integers01[GetConvertedPlayerId(Player(2))]
endif
call DisplayTimedTextToForce(GetPlayersAll(),10.," Force 1 Total Income: "+I2S(Income))
call DisplayTimedTextToForce(GetPlayersAll(),10.," ")
set Income=0
call DisplayTimedTextToForce(GetPlayersAll(),10.,"|c00ff80c0Force 2:|r")
if(Trig_Show_Stats_All_Func007001())then
call DisplayTimedTextToForce(GetPlayersAll(),10.,((" |c00800080"+GetPlayerName(Player(3)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(3))]))))
set Income=udg_integers01[GetConvertedPlayerId(Player(3))]
endif
if(Trig_Show_Stats_All_Func008001())then
call DisplayTimedTextToForce(GetPlayersAll(),10.,((" |c00ffff00"+GetPlayerName(Player(4)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(4))]))))
set Income=Income+udg_integers01[GetConvertedPlayerId(Player(4))]
endif
if(Trig_Show_Stats_All_Func009001())then
call DisplayTimedTextToForce(GetPlayersAll(),10.,((" |c00ff8040"+GetPlayerName(Player(5)))+("'s Income:|r "+I2S(udg_integers01[GetConvertedPlayerId(Player(5))]))))
set Income=Income+udg_integers01[GetConvertedPlayerId(Player(5))]
endif
call DisplayTimedTextToForce(GetPlayersAll(),10.," Force 2 Total Income: "+I2S(Income))
endfunction
function Trig_Sell_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTrainedUnit())==udg_integer01)
endfunction
function Trig_Sell_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call RemoveUnit(GetTriggerUnit())
call RemoveUnit(GetTrainedUnit())
call AdjustPlayerStateBJ(GetUnitPointValue(GetTriggerUnit()),GetOwningPlayer(GetTrainedUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTrainedUnit())),(("|c0000cdf9You recieved |r"+I2S(GetUnitPointValue(GetTriggerUnit())))+("|c0000cdf9 gold for selling a |r"+GetUnitName(GetTriggerUnit()))))
endfunction
function Trig_Sell_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTrainedUnit())=='n001')
endfunction
function Trig_Sell_Copy_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\TargetArtLumber\\TargetArtLumber.mdl")
call RemoveUnit(GetTrainedUnit())
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTrainedUnit())),"You bought 1 lumber")
endfunction
function Trig_Build_Unit_Top_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Top_Func003001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Top_Func003002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect15),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Top_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect09,Condition(function Trig_Build_Unit_Top_Func003001002)),function Trig_Build_Unit_Top_Func003002)
set udg_integers01[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers01[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(10),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect13))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group01)
call SetUnitOwner(GetLastCreatedUnit(),Player(10),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group02)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Build_Unit_Top_Upper_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(GetUnitTypeId(GetTriggerUnit())=='h00P')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Top_Upper_Func004001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Top_Upper_Func004002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect15),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Top_Upper_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect09,Condition(function Trig_Build_Unit_Top_Upper_Func004001002)),function Trig_Build_Unit_Top_Upper_Func004002)
set udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(10),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect13))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group01)
call SetUnitOwner(GetLastCreatedUnit(),Player(10),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group02)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Build_Unit_Top_Pure_Life_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(GetUnitTypeId(GetTriggerUnit())=='h010')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Top_Pure_Life_Func004001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Top_Pure_Life_Func004002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect15),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Top_Pure_Life_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect09,Condition(function Trig_Build_Unit_Top_Pure_Life_Func004001002)),function Trig_Build_Unit_Top_Pure_Life_Func004002)
set udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(10),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect13))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group01)
call SetUnitOwner(GetLastCreatedUnit(),Player(10),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group02)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Build_Unit_Top_God_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(GetUnitTypeId(GetTriggerUnit())=='h01D')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Top_God_Func004001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Top_God_Func004002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect15),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Top_God_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect09,Condition(function Trig_Build_Unit_Top_God_Func004001002)),function Trig_Build_Unit_Top_God_Func004002)
set udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(10),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect13))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group01)
call SetUnitOwner(GetLastCreatedUnit(),Player(10),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group02)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Build_Unit_Top_T_God_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(GetUnitTypeId(GetTriggerUnit())=='h02A')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Top_T_God_Func004001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Top_T_God_Func004002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect15),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Top_T_God_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect09,Condition(function Trig_Build_Unit_Top_T_God_Func004001002)),function Trig_Build_Unit_Top_T_God_Func004002)
set udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(10),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect13))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group01)
call SetUnitOwner(GetLastCreatedUnit(),Player(10),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group02)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Build_Unit_Bottom_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Bottom_Func001001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Bottom_Func001002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect16),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Bottom_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect08,Condition(function Trig_Build_Unit_Bottom_Func001001002)),function Trig_Build_Unit_Bottom_Func001002)
set udg_integers01[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers01[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(11),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect14))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group03)
call SetUnitOwner(GetLastCreatedUnit(),Player(11),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group04)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Build_Unit_Bottom_Upper_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(GetUnitTypeId(GetTriggerUnit())=='h00P')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Bottom_Upper_Func001001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Bottom_Upper_Func001002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect16),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Bottom_Upper_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect08,Condition(function Trig_Build_Unit_Bottom_Upper_Func001001002)),function Trig_Build_Unit_Bottom_Upper_Func001002)
set udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(11),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect14))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group03)
call SetUnitOwner(GetLastCreatedUnit(),Player(11),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group04)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Build_Unit_Bottom_Pure_Life_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(GetUnitTypeId(GetTriggerUnit())=='h010')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Bottom_Pure_Life_Func001001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Bottom_Pure_Life_Func001002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect16),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Bottom_Pure_Life_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect08,Condition(function Trig_Build_Unit_Bottom_Pure_Life_Func001001002)),function Trig_Build_Unit_Bottom_Pure_Life_Func001002)
set udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(11),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect14))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group03)
call SetUnitOwner(GetLastCreatedUnit(),Player(11),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group04)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Build_Unit_Bottom_God_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(GetUnitTypeId(GetTriggerUnit())=='h01D')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Bottom_God_Func001001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Bottom_God_Func001002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect16),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Bottom_God_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect08,Condition(function Trig_Build_Unit_Bottom_God_Func001001002)),function Trig_Build_Unit_Bottom_God_Func001002)
set udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(11),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect14))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group03)
call SetUnitOwner(GetLastCreatedUnit(),Player(11),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group04)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Build_Unit_Bottom_T_God_Conditions takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)==false)and(GetUnitTypeId(GetTriggerUnit())=='h02A')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Build_Unit_Bottom_T_God_Func001001002 takes nothing returns boolean
return(GetFilterUnit()==GetEnteringUnit())
endfunction
function Trig_Build_Unit_Bottom_T_God_Func001002 takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnumUnit()),GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect16),bj_UNIT_FACING)
endfunction
function Trig_Build_Unit_Bottom_T_God_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect08,Condition(function Trig_Build_Unit_Bottom_T_God_Func001001002)),function Trig_Build_Unit_Bottom_T_God_Func001002)
set udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]=(udg_integers02[GetConvertedPlayerId(GetOwningPlayer(GetEnteringUnit()))]+GetUnitPointValue(GetEnteringUnit()))
call SetUnitOwner(GetEnteringUnit(),Player(11),false)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect14))
call GroupAddUnitSimple(GetEnteringUnit(),udg_group03)
call SetUnitOwner(GetLastCreatedUnit(),Player(11),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group04)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect07))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRectCenter(udg_rect06))
endfunction
function Trig_Prevent_Attack_Top_Conditions takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(11))
endfunction
function Trig_Prevent_Attack_Top_Actions takes nothing returns nothing
call TriggerSleepAction(1.)
call IssuePointOrderLocBJ(GetAttacker(),"move",GetRectCenter(udg_rect10))
endfunction
function Trig_Prevent_Attack_Bottom_Conditions takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(10))
endfunction
function Trig_Prevent_Attack_Bottom_Actions takes nothing returns nothing
call TriggerSleepAction(1.)
call IssuePointOrderLocBJ(GetAttacker(),"move",GetRectCenter(udg_rect01))
endfunction
function Trig_Victory_F1_Conditions takes nothing returns boolean
return(udg_boolean01==false)and(udg_integer03<=0)
endfunction
function Trig_Victory_F1_Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Victory_F1_Func008002 takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_Victory_F1_Func009002 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"Defeat!")
endfunction
function Trig_Victory_F1_Actions takes nothing returns nothing
set udg_boolean01=true
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_Victory_F1_Func002002)
call DisplayTimedTextToForce(GetPlayersAll(),15.,"TRIGSTR_682")
call TriggerExecute(udg_trigger13)
call TriggerSleepAction(7.)
call ForceRemovePlayerSimple(Player(10),udg_force01)
call ForceRemovePlayerSimple(Player(11),udg_force02)
call ForForce(udg_force01,function Trig_Victory_F1_Func008002)
call ForForce(udg_force02,function Trig_Victory_F1_Func009002)
endfunction
function Trig_Victory_F2_Conditions takes nothing returns boolean
return(udg_boolean01==false)and(udg_integer02<=0)
endfunction
function Trig_Victory_F2_Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Victory_F2_Func008002 takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_Victory_F2_Func009002 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"Defeat!")
endfunction
function Trig_Victory_F2_Actions takes nothing returns nothing
set udg_boolean01=true
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_Victory_F2_Func002002)
call DisplayTimedTextToForce(GetPlayersAll(),15.,"TRIGSTR_683")
call TriggerExecute(udg_trigger13)
call TriggerSleepAction(7.)
call ForceRemovePlayerSimple(Player(10),udg_force01)
call ForceRemovePlayerSimple(Player(11),udg_force02)
call ForForce(udg_force02,function Trig_Victory_F2_Func008002)
call ForForce(udg_force01,function Trig_Victory_F2_Func009002)
endfunction
function Trig_Upgrade_Shrine_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='hC80')
endfunction
function Trig_Upgrade_Shrine_Copy_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'hC80',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
endfunction
function Trig_Upgrade_Shrine_Copy_Copy_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='hcas')
endfunction
function Trig_Upgrade_Shrine_Copy_Copy_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'hcas',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
endfunction
function Trig_Remove_Corpses_Actions takes nothing returns nothing
call TriggerSleepAction(3.)
call RemoveUnit(GetDyingUnit())
endfunction
function Trig_Remind_for_Income_Func001003001 takes nothing returns boolean
return(udg_integers01[GetForLoopIndexA()]==25)
endfunction
function Trig_Remind_for_Income_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Remind_for_Income_Func001003001())then
call DisplayTimedTextToForce(GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())),20.,"|c00ff0000Build Attackers in your Shrine to get more Income!!!|r")
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_TopMoveMiddleLeft_Conditions takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group02))
endfunction
function Trig_TopMoveMiddleLeft_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect02))
endfunction
function Trig_TopMoveMiddleRight_Conditions takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group01))
endfunction
function Trig_TopMoveMiddleRight_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect03))
endfunction
function Trig_TopMoveBottomLeft_Conditions takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group02))
endfunction
function Trig_TopMoveBottomLeft_Actions takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnteringUnit(),udg_group02)
call GroupAddUnitSimple(GetEnteringUnit(),udg_group01)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect01))
endfunction
function Trig_TopMoveBottomRight_Conditions takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group01))
endfunction
function Trig_TopMoveBottomRight_Actions takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnteringUnit(),udg_group01)
call GroupAddUnitSimple(GetEnteringUnit(),udg_group02)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect01))
endfunction
function Trig_TopMoveBottomCenter_Func001001 takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group01))
endfunction
function Trig_TopMoveBottomCenter_Func001002 takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group02))
endfunction
function Trig_TopMoveBottomCenter_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_TopMoveBottomCenter_Func001001(),Trig_TopMoveBottomCenter_Func001002()))
endfunction
function Trig_TopMoveBottomCenter_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect04))
endfunction
function Trig_BottomMoveMiddleLeft_Conditions takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group04))
endfunction
function Trig_BottomMoveMiddleLeft_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect11))
endfunction
function Trig_BottomMoveMiddleRight_Conditions takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group03))
endfunction
function Trig_BottomMoveMiddleRight_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect12))
endfunction
function Trig_BottomMoveTopLeft_Conditions takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group04))
endfunction
function Trig_BottomMoveTopLeft_Actions takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnteringUnit(),udg_group04)
call GroupAddUnitSimple(GetEnteringUnit(),udg_group03)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect10))
endfunction
function Trig_BottomMoveTopRight_Conditions takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group03))
endfunction
function Trig_BottomMoveTopRight_Actions takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnteringUnit(),udg_group03)
call GroupAddUnitSimple(GetEnteringUnit(),udg_group04)
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect10))
endfunction
function Trig_BottomMoveTopCenter_Func001001 takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group03))
endfunction
function Trig_BottomMoveTopCenter_Func001002 takes nothing returns boolean
return(IsUnitInGroup(GetEnteringUnit(),udg_group04))
endfunction
function Trig_BottomMoveTopCenter_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_BottomMoveTopCenter_Func001001(),Trig_BottomMoveTopCenter_Func001002()))
endfunction
function Trig_BottomMoveTopCenter_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnteringUnit(),"move",GetRectCenter(udg_rect05))
endfunction
function Trig_Unit_Board_Ship_Bottom_Conditions takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(10))
endfunction
function Trig_Unit_Board_Ship_Bottom_Actions takes nothing returns nothing
set udg_integer03=(udg_integer03-1)
call RemoveUnit(GetEnteringUnit())
call PlaySoundBJ(udg_sound02)
call LeaderboardSetPlayerItemValueBJ(Player(11),GetLastCreatedLeaderboard(),udg_integer03)
call DisplayTextToForce(udg_force02,(("|c00ff0000"+(GetUnitName(GetEnteringUnit())+" has boarded the ship!|r "))+(I2S(udg_integer03)+" |c00ff0000chances left|r")))
call ConditionalTriggerExecute(udg_trigger28)
endfunction
function Trig_Unit_Board_Ship_Top_Conditions takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_Unit_Board_Ship_Top_Actions takes nothing returns nothing
set udg_integer02=(udg_integer02-1)
call RemoveUnit(GetEnteringUnit())
call PlaySoundBJ(udg_sound02)
call LeaderboardSetPlayerItemValueBJ(Player(10),GetLastCreatedLeaderboard(),udg_integer02)
call DisplayTextToForce(udg_force01,(("|c00ff0000"+(GetUnitName(GetEnteringUnit())+" has boarded the ship!|r "))+(I2S(udg_integer02)+" |c00ff0000chances left|r")))
call ConditionalTriggerExecute(udg_trigger29)
endfunction
function Trig_Setup_Leaderboard_Actions takes nothing returns nothing
call CreateLeaderboardBJ(GetPlayersAll(),"Stats")
call LeaderboardAddItemBJ(Player(0),GetLastCreatedLeaderboard(),"|c0000cdf9Highest Income:|r",0)
call LeaderboardSetPlayerItemStyleBJ(Player(0),GetLastCreatedLeaderboard(),true,false,false)
call LeaderboardAddItemBJ(Player(1),GetLastCreatedLeaderboard(),"",0)
call LeaderboardSetPlayerItemStyleBJ(Player(1),GetLastCreatedLeaderboard(),true,false,false)
call LeaderboardAddItemBJ(Player(9),GetLastCreatedLeaderboard(),"|c0000cdf9Lives:|r",0)
call LeaderboardSetPlayerItemStyleBJ(Player(9),GetLastCreatedLeaderboard(),true,false,false)
call LeaderboardAddItemBJ(Player(10),GetLastCreatedLeaderboard()," Force 1",udg_integer02)
call LeaderboardAddItemBJ(Player(11),GetLastCreatedLeaderboard()," Force 2",udg_integer03)
call LeaderboardSetLabelColorBJ(GetLastCreatedLeaderboard(),.0,'d',.0,0)
call LeaderboardSetValueColorBJ(GetLastCreatedLeaderboard(),'d',.0,.0,0)
endfunction
function Trig_Update_Leaderboard_Func001001 takes nothing returns boolean
return(((udg_integers01[1]+udg_integers01[2])+udg_integers01[3])>((udg_integers01[4]+udg_integers01[5])+udg_integers01[6]))
endfunction
function Trig_Update_Leaderboard_Actions takes nothing returns nothing
if(Trig_Update_Leaderboard_Func001001())then
call LeaderboardSetPlayerItemLabelBJ(Player(1),GetLastCreatedLeaderboard()," Force 1")
else
call LeaderboardSetPlayerItemLabelBJ(Player(1),GetLastCreatedLeaderboard()," Force2")
endif
endfunction
function Trig_Player_1_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_LEFT)and(udg_boolean01==false)
endfunction
function Trig_Player_1_Func005002 takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),ForcePickRandomPlayer(udg_force01),true)
endfunction
function Trig_Player_1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(GetPlayersAll(),15.,(GetPlayerName(Player(0))+"|c0000cdf9 has left the game|r"))
call ForceRemovePlayerSimple(Player(0),udg_force01)
call ForceRemovePlayerSimple(Player(10),udg_force01)
call ForGroupBJ(GetUnitsInRectOfPlayer(GetPlayableMapRect(),Player(0)),function Trig_Player_1_Func005002)
call ForceAddPlayerSimple(Player(10),udg_force01)
call TriggerExecute(udg_trigger54)
endfunction
function Trig_Player_2_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_LEFT)and(udg_boolean01==false)
endfunction
function Trig_Player_2_Func005002 takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),ForcePickRandomPlayer(udg_force01),true)
endfunction
function Trig_Player_2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(GetPlayersAll(),15.,(GetPlayerName(Player(1))+"|c0000cdf9 has left the game|r"))
call ForceRemovePlayerSimple(Player(1),udg_force01)
call ForceRemovePlayerSimple(Player(10),udg_force01)
call ForGroupBJ(GetUnitsInRectOfPlayer(GetPlayableMapRect(),Player(1)),function Trig_Player_2_Func005002)
call ForceAddPlayerSimple(Player(10),udg_force01)
call TriggerExecute(udg_trigger54)
endfunction
function Trig_Player_3_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_LEFT)and(udg_boolean01==false)
endfunction
function Trig_Player_3_Func005002 takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),ForcePickRandomPlayer(udg_force01),true)
endfunction
function Trig_Player_3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(GetPlayersAll(),15.,(GetPlayerName(Player(2))+"|c0000cdf9 has left the game|r"))
call ForceRemovePlayerSimple(Player(2),udg_force01)
call ForceRemovePlayerSimple(Player(10),udg_force01)
call ForGroupBJ(GetUnitsInRectOfPlayer(GetPlayableMapRect(),Player(2)),function Trig_Player_3_Func005002)
call ForceAddPlayerSimple(Player(10),udg_force01)
call TriggerExecute(udg_trigger54)
endfunction
function Trig_Player_4_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_LEFT)and(udg_boolean01==false)
endfunction
function Trig_Player_4_Func005002 takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),ForcePickRandomPlayer(udg_force02),true)
endfunction
function Trig_Player_4_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(GetPlayersAll(),15.,(GetPlayerName(Player(3))+"|c0000cdf9 has left the game|r"))
call ForceRemovePlayerSimple(Player(3),udg_force02)
call ForceRemovePlayerSimple(Player(11),udg_force02)
call ForGroupBJ(GetUnitsInRectOfPlayer(GetPlayableMapRect(),Player(3)),function Trig_Player_4_Func005002)
call ForceAddPlayerSimple(Player(11),udg_force02)
call TriggerExecute(udg_trigger54)
endfunction
function Trig_Player_5_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_LEFT)and(udg_boolean01==false)
endfunction
function Trig_Player_5_Func005002 takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),ForcePickRandomPlayer(udg_force02),true)
endfunction
function Trig_Player_5_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(GetPlayersAll(),15.,(GetPlayerName(Player(4))+"|c0000cdf9 has left the game|r"))
call ForceRemovePlayerSimple(Player(4),udg_force02)
call ForceRemovePlayerSimple(Player(11),udg_force02)
call ForGroupBJ(GetUnitsInRectOfPlayer(GetPlayableMapRect(),Player(4)),function Trig_Player_5_Func005002)
call ForceAddPlayerSimple(Player(11),udg_force02)
call TriggerExecute(udg_trigger54)
endfunction
function Trig_Player_6_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_LEFT)and(udg_boolean01==false)
endfunction
function Trig_Player_6_Func005002 takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),ForcePickRandomPlayer(udg_force02),true)
endfunction
function Trig_Player_6_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(GetPlayersAll(),15.,(GetPlayerName(Player(5))+"|c0000cdf9 has left the game|r"))
call ForceRemovePlayerSimple(Player(5),udg_force02)
call ForceRemovePlayerSimple(Player(11),udg_force02)
call ForGroupBJ(GetUnitsInRectOfPlayer(GetPlayableMapRect(),Player(5)),function Trig_Player_6_Func005002)
call ForceAddPlayerSimple(Player(11),udg_force02)
call TriggerExecute(udg_trigger54)
endfunction
function Trig_Check_All_Conditions takes nothing returns boolean
return(udg_boolean01==false)
endfunction
function Trig_Check_All_Func003003001 takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Check_All_Func004001 takes nothing returns boolean
return(udg_integer04==0)
endfunction
function Trig_Check_All_Func006003001 takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Check_All_Func007001 takes nothing returns boolean
return(udg_integer04==0)
endfunction
function Trig_Check_All_Actions takes nothing returns nothing
set udg_integer04=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Check_All_Func003003001())then
set udg_integer04=(udg_integer04+1)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_Check_All_Func004001())then
call TriggerExecute(udg_trigger29)
endif
set udg_integer04=0
set bj_forLoopAIndex=4
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Check_All_Func006003001())then
set udg_integer04=(udg_integer04+1)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_Check_All_Func007001())then
call TriggerExecute(udg_trigger28)
endif
endfunction
function main2 takes nothing returns nothing
call SetCameraBounds(-5376.+GetCameraMargin(CAMERA_MARGIN_LEFT),-5632.+GetCameraMargin(CAMERA_MARGIN_BOTTOM),5376.-GetCameraMargin(CAMERA_MARGIN_RIGHT),5760.-GetCameraMargin(CAMERA_MARGIN_TOP),-5376.+GetCameraMargin(CAMERA_MARGIN_LEFT),5760.-GetCameraMargin(CAMERA_MARGIN_TOP),5376.-GetCameraMargin(CAMERA_MARGIN_RIGHT),-5632.+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("NorthrendDay")
call SetAmbientNightSound("NorthrendNight")
call SetMapMusic("Music",true,0)
set udg_sound01=CreateSound("Buildings\\Other\\MageTower\\MageTowerWhat1.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound01,"MageTowerWhat")
call SetSoundDuration(udg_sound01,3274)
set udg_sound02=CreateSound("Abilities\\Spells\\Other\\LoadUnload\\Loading.wav",false,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound02,"LoadUnload")
call SetSoundDuration(udg_sound02,740)
set udg_sound03=CreateSound("Sound\\Interface\\GoodJob.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound03,"GoodJob")
call SetSoundDuration(udg_sound03,2548)
set udg_sound04=CreateSound("Sound\\Interface\\Hint.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound04,"Hint")
call SetSoundDuration(udg_sound04,2006)
set udg_sound05=CreateSound("Sound\\Interface\\AutoCastButtonClick1.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound05,"AutoCastButtonClick")
call SetSoundDuration(udg_sound05,1132)
set udg_sound06=CreateSound("Sound\\Units\\Death\\ArtilleryCorpseExplodeDeath1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound06,"ArtilleryExplodeDeath")
call SetSoundDuration(udg_sound06,1486)
call SetSoundChannel(udg_sound06,1)
set udg_sound07=CreateSound("Sound\\Dialogue\\Extra\\MuradinTaunt2.mp3",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound07,"MuradinTaunt2")
call SetSoundDuration(udg_sound07,2508)
set udg_sound08=CreateSound("Sound\\Interface\\ArrangedTeamInvitation.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound08,"ArrangedTeamInvitation")
call SetSoundDuration(udg_sound08,2914)
set udg_sound09=CreateSound("Sound\\Interface\\NewTournament.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound09,"NewTournament")
call SetSoundDuration(udg_sound09,7988)
set udg_sound10=CreateSound("Sound\\Interface\\ClanInvitation.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound10,"ClanInvitation")
call SetSoundDuration(udg_sound10,4296)
call CreateRegions2()
call SetPlayerTechResearched(Player(0),'Remg',1)
call SetPlayerTechResearched(Player(0),'Rowd',2)
call SetPlayerTechResearched(Player(1),'Rowd',2)
call SetPlayerTechResearched(Player(2),'Rowd',2)
call SetPlayerTechResearched(Player(3),'Rowd',2)
call SetPlayerTechResearched(Player(4),'Rowd',2)
call SetPlayerTechResearched(Player(5),'Rowd',2)
call SetPlayerTechResearched(Player(10),'Rowd',2)
call SetPlayerTechResearched(Player(11),'Rowd',2)
call CreateBuildingsForPlayer0()
call CreateBuildingsForPlayer1()
call CreateBuildingsForPlayer2()
call CreateBuildingsForPlayer3()
call CreateBuildingsForPlayer4()
call CreateBuildingsForPlayer5()
call CreateUnitsForPlayer11()
call InitGlobals2()
set udg_trigger01=CreateTrigger()
call TriggerAddAction(udg_trigger01,function Trig_Int_WinTD_Copy_Actions)
set udg_trigger02=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger02,2.)
call TriggerAddAction(udg_trigger02,function Trig_Player_Units_Create_Actions)
set udg_trigger03=CreateTrigger()
call TriggerAddAction(udg_trigger03,function Trig_Updates_Actions)
set udg_trigger04=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger04,120.)
call TriggerAddAction(udg_trigger04,function Trig_No_Air_Expires_Actions)
set udg_trigger05=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(0),"-noair",true)
call TriggerAddAction(udg_trigger05,function Trig_No_Air_Actions)
set udg_trigger06=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_trigger06,udg_timer01)
call TriggerAddCondition(udg_trigger06,Condition(function Trig_Next_Level_Conditions))
call TriggerAddAction(udg_trigger06,function Trig_Next_Level_Actions)
set udg_trigger07=CreateTrigger()
call TriggerAddAction(udg_trigger07,function Trig_Show_Stats_Red_Actions)
set udg_trigger08=CreateTrigger()
call TriggerAddAction(udg_trigger08,function Trig_Show_Stats_Blue_Actions)
set udg_trigger09=CreateTrigger()
call TriggerAddAction(udg_trigger09,function Trig_Show_Stats_Teal_Actions)
set udg_trigger10=CreateTrigger()
call TriggerAddAction(udg_trigger10,function Trig_Show_Stats_Purple_Actions)
set udg_trigger11=CreateTrigger()
call TriggerAddAction(udg_trigger11,function Trig_Show_Stats_Yellow_Actions)
set udg_trigger12=CreateTrigger()
call TriggerAddAction(udg_trigger12,function Trig_Show_Stats_Orange_Actions)
set udg_trigger13=CreateTrigger()
call TriggerAddAction(udg_trigger13,function Trig_Show_Stats_All_Actions)
set udg_trigger14=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger14,Player(0),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger14,Player(1),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger14,Player(2),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger14,Player(3),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger14,Player(4),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger14,Player(5),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger14,Player(6),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger14,Player(7),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger14,Player(8),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(udg_trigger14,Condition(function Trig_Sell_Conditions))
call TriggerAddAction(udg_trigger14,function Trig_Sell_Actions)
set udg_trigger15=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger15,Player(0),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger15,Player(1),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger15,Player(2),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger15,Player(3),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger15,Player(4),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger15,Player(5),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger15,Player(6),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger15,Player(7),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger15,Player(8),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(udg_trigger15,Condition(function Trig_Sell_Copy_Conditions))
call TriggerAddAction(udg_trigger15,function Trig_Sell_Copy_Actions)
set udg_trigger16=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger16,udg_rect09)
call TriggerAddCondition(udg_trigger16,Condition(function Trig_Build_Unit_Top_Conditions))
call TriggerAddAction(udg_trigger16,function Trig_Build_Unit_Top_Actions)
set udg_trigger17=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger17,udg_rect09)
call TriggerAddCondition(udg_trigger17,Condition(function Trig_Build_Unit_Top_Upper_Conditions))
call TriggerAddAction(udg_trigger17,function Trig_Build_Unit_Top_Upper_Actions)
set udg_trigger18=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger18,udg_rect09)
call TriggerAddCondition(udg_trigger18,Condition(function Trig_Build_Unit_Top_Pure_Life_Conditions))
call TriggerAddAction(udg_trigger18,function Trig_Build_Unit_Top_Pure_Life_Actions)
set udg_trigger19=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger19,udg_rect09)
call TriggerAddCondition(udg_trigger19,Condition(function Trig_Build_Unit_Top_God_Conditions))
call TriggerAddAction(udg_trigger19,function Trig_Build_Unit_Top_God_Actions)
set udg_trigger20=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger20,udg_rect09)
call TriggerAddCondition(udg_trigger20,Condition(function Trig_Build_Unit_Top_T_God_Conditions))
call TriggerAddAction(udg_trigger20,function Trig_Build_Unit_Top_T_God_Actions)
set udg_trigger21=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger21,udg_rect08)
call TriggerAddCondition(udg_trigger21,Condition(function Trig_Build_Unit_Bottom_Conditions))
call TriggerAddAction(udg_trigger21,function Trig_Build_Unit_Bottom_Actions)
set udg_trigger22=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger22,udg_rect08)
call TriggerAddCondition(udg_trigger22,Condition(function Trig_Build_Unit_Bottom_Upper_Conditions))
call TriggerAddAction(udg_trigger22,function Trig_Build_Unit_Bottom_Upper_Actions)
set udg_trigger23=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger23,udg_rect08)
call TriggerAddCondition(udg_trigger23,Condition(function Trig_Build_Unit_Bottom_Pure_Life_Conditions))
call TriggerAddAction(udg_trigger23,function Trig_Build_Unit_Bottom_Pure_Life_Actions)
set udg_trigger24=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger24,udg_rect08)
call TriggerAddCondition(udg_trigger24,Condition(function Trig_Build_Unit_Bottom_God_Conditions))
call TriggerAddAction(udg_trigger24,function Trig_Build_Unit_Bottom_God_Actions)
set udg_trigger25=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger25,udg_rect08)
call TriggerAddCondition(udg_trigger25,Condition(function Trig_Build_Unit_Bottom_T_God_Conditions))
call TriggerAddAction(udg_trigger25,function Trig_Build_Unit_Bottom_T_God_Actions)
set udg_trigger26=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger26,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger26,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger26,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger26,Condition(function Trig_Prevent_Attack_Top_Conditions))
call TriggerAddAction(udg_trigger26,function Trig_Prevent_Attack_Top_Actions)
set udg_trigger27=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger27,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger27,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger27,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger27,Condition(function Trig_Prevent_Attack_Bottom_Conditions))
call TriggerAddAction(udg_trigger27,function Trig_Prevent_Attack_Bottom_Actions)
set udg_trigger28=CreateTrigger()
call TriggerAddCondition(udg_trigger28,Condition(function Trig_Victory_F1_Conditions))
call TriggerAddAction(udg_trigger28,function Trig_Victory_F1_Actions)
set udg_trigger29=CreateTrigger()
call TriggerAddCondition(udg_trigger29,Condition(function Trig_Victory_F2_Conditions))
call TriggerAddAction(udg_trigger29,function Trig_Victory_F2_Actions)
set udg_trigger30=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger30,Player(0),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger30,Player(1),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger30,Player(2),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger30,Player(3),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger30,Player(4),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger30,Player(5),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(udg_trigger30,Condition(function Trig_Upgrade_Shrine_Copy_Conditions))
call TriggerAddAction(udg_trigger30,function Trig_Upgrade_Shrine_Copy_Actions)
set udg_trigger31=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger31,Player(0),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger31,Player(1),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger31,Player(2),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger31,Player(3),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger31,Player(4),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger31,Player(5),EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(udg_trigger31,Condition(function Trig_Upgrade_Shrine_Copy_Copy_Conditions))
call TriggerAddAction(udg_trigger31,function Trig_Upgrade_Shrine_Copy_Copy_Actions)
set udg_trigger32=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger32,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger32,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger32,function Trig_Remove_Corpses_Actions)
set udg_trigger33=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger33,60.)
call TriggerAddAction(udg_trigger33,function Trig_Remind_for_Income_Actions)
set udg_trigger34=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger34,udg_rect06)
call TriggerAddCondition(udg_trigger34,Condition(function Trig_TopMoveMiddleLeft_Conditions))
call TriggerAddAction(udg_trigger34,function Trig_TopMoveMiddleLeft_Actions)
set udg_trigger35=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger35,udg_rect07)
call TriggerAddCondition(udg_trigger35,Condition(function Trig_TopMoveMiddleRight_Conditions))
call TriggerAddAction(udg_trigger35,function Trig_TopMoveMiddleRight_Actions)
set udg_trigger36=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger36,udg_rect02)
call TriggerAddCondition(udg_trigger36,Condition(function Trig_TopMoveBottomLeft_Conditions))
call TriggerAddAction(udg_trigger36,function Trig_TopMoveBottomLeft_Actions)
set udg_trigger37=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger37,udg_rect03)
call TriggerAddCondition(udg_trigger37,Condition(function Trig_TopMoveBottomRight_Conditions))
call TriggerAddAction(udg_trigger37,function Trig_TopMoveBottomRight_Actions)
set udg_trigger38=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger38,udg_rect01)
call TriggerAddCondition(udg_trigger38,Condition(function Trig_TopMoveBottomCenter_Conditions))
call TriggerAddAction(udg_trigger38,function Trig_TopMoveBottomCenter_Actions)
set udg_trigger39=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger39,udg_rect06)
call TriggerAddCondition(udg_trigger39,Condition(function Trig_BottomMoveMiddleLeft_Conditions))
call TriggerAddAction(udg_trigger39,function Trig_BottomMoveMiddleLeft_Actions)
set udg_trigger40=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger40,udg_rect07)
call TriggerAddCondition(udg_trigger40,Condition(function Trig_BottomMoveMiddleRight_Conditions))
call TriggerAddAction(udg_trigger40,function Trig_BottomMoveMiddleRight_Actions)
set udg_trigger41=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger41,udg_rect11)
call TriggerAddCondition(udg_trigger41,Condition(function Trig_BottomMoveTopLeft_Conditions))
call TriggerAddAction(udg_trigger41,function Trig_BottomMoveTopLeft_Actions)
set udg_trigger42=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger42,udg_rect12)
call TriggerAddCondition(udg_trigger42,Condition(function Trig_BottomMoveTopRight_Conditions))
call TriggerAddAction(udg_trigger42,function Trig_BottomMoveTopRight_Actions)
set udg_trigger43=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger43,udg_rect10)
call TriggerAddCondition(udg_trigger43,Condition(function Trig_BottomMoveTopCenter_Conditions))
call TriggerAddAction(udg_trigger43,function Trig_BottomMoveTopCenter_Actions)
set udg_trigger44=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger44,udg_rect04)
call TriggerAddCondition(udg_trigger44,Condition(function Trig_Unit_Board_Ship_Bottom_Conditions))
call TriggerAddAction(udg_trigger44,function Trig_Unit_Board_Ship_Bottom_Actions)
set udg_trigger45=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger45,udg_rect05)
call TriggerAddCondition(udg_trigger45,Condition(function Trig_Unit_Board_Ship_Top_Conditions))
call TriggerAddAction(udg_trigger45,function Trig_Unit_Board_Ship_Top_Actions)
set udg_trigger46=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger46,2.)
call TriggerAddAction(udg_trigger46,function Trig_Setup_Leaderboard_Actions)
set udg_trigger47=CreateTrigger()
call TriggerAddAction(udg_trigger47,function Trig_Update_Leaderboard_Actions)
set udg_trigger48=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger48,5.)
call TriggerAddCondition(udg_trigger48,Condition(function Trig_Player_1_Conditions))
call TriggerAddAction(udg_trigger48,function Trig_Player_1_Actions)
set udg_trigger49=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger49,5.)
call TriggerAddCondition(udg_trigger49,Condition(function Trig_Player_2_Conditions))
call TriggerAddAction(udg_trigger49,function Trig_Player_2_Actions)
set udg_trigger50=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger50,5.)
call TriggerAddCondition(udg_trigger50,Condition(function Trig_Player_3_Conditions))
call TriggerAddAction(udg_trigger50,function Trig_Player_3_Actions)
set udg_trigger51=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger51,5.)
call TriggerAddCondition(udg_trigger51,Condition(function Trig_Player_4_Conditions))
call TriggerAddAction(udg_trigger51,function Trig_Player_4_Actions)
set udg_trigger52=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger52,5.)
call TriggerAddCondition(udg_trigger52,Condition(function Trig_Player_5_Conditions))
call TriggerAddAction(udg_trigger52,function Trig_Player_5_Actions)
set udg_trigger53=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger53,5.)
call TriggerAddCondition(udg_trigger53,Condition(function Trig_Player_6_Conditions))
call TriggerAddAction(udg_trigger53,function Trig_Player_6_Actions)
set udg_trigger54=CreateTrigger()
call TriggerAddCondition(udg_trigger54,Condition(function Trig_Check_All_Conditions))
call TriggerAddAction(udg_trigger54,function Trig_Check_All_Actions)
call ConditionalTriggerExecute(udg_trigger01)
call ConditionalTriggerExecute(udg_trigger03)
endfunction
function InitTrig_init takes nothing returns nothing
call ExecuteFunc("main2")
endfunction