Name | Type | is_array | initial_value |
AlphaBases | integer | No | 0 |
AlphaTarget | unit | Yes | |
AlphaTeam | player | Yes | |
BaseBuilder | unit | Yes | |
BaseLeaderboard | leaderboard | No | |
BaseTimer | timer | No | |
BaseTimerWindow | timerdialog | No | |
GunPodSound | sound | No | |
LumberRefinery | integer | Yes | |
MissileIndex | integer | No | 0 |
MMAlphaAttack | timer | No | |
MMAlphaAttackWindow | timerdialog | No | |
MMOmegaAttack | timer | No | |
MMOmegaAttackWindow | timerdialog | No | |
NumPlayers | integer | No | 0 |
OmegaBases | integer | No | 0 |
OmegaTeam | player | Yes | |
SupplyHeadquarters | integer | Yes | |
TempMissile | unit | Yes | |
TempTarget | unit | Yes | |
UnderConstruction | group | No | |
UserNames | string | Yes | |
Users | player | Yes |
function Trig_Create_Base_Builders_Func004001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func005001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func006001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func007001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func008001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func011001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func012001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func013001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func014001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func015001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func018001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func019001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func020001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func021001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func022001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func025001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func026001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func027001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func028001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func029001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func032001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func033001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func034001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func035001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func036001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func039001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func040001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func041001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func042001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func043001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func046001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func047001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func048001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func049001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func050001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func053001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func054001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func055001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func056001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Func057001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Create_Base_Builders_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_BaseBuilder[GetForLoopIndexA()] = null
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call CommentString( "Blue, Player 2" )
if ( Trig_Create_Base_Builders_Func004001() ) then
call CreateNUnitsAtLoc( 1, 'nC01', Player(1), GetPlayerStartLocationLoc(Player(1)), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func005001() ) then
set udg_BaseBuilder[2] = GetLastCreatedUnit()
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func006001() ) then
set udg_Users[2] = Player(1)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func007001() ) then
set udg_OmegaTeam[2] = Player(1)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func008001() ) then
set udg_NumPlayers = ( udg_NumPlayers + 1 )
else
call DoNothing( )
endif
set udg_UserNames[2] = GetPlayerName(Player(1))
call CommentString( "Teal, Player 3" )
if ( Trig_Create_Base_Builders_Func011001() ) then
call CreateNUnitsAtLoc( 1, 'nC01', Player(2), GetPlayerStartLocationLoc(Player(2)), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func012001() ) then
set udg_BaseBuilder[3] = GetLastCreatedUnit()
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func013001() ) then
set udg_Users[3] = Player(2)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func014001() ) then
set udg_OmegaTeam[3] = Player(2)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func015001() ) then
set udg_NumPlayers = ( udg_NumPlayers + 1 )
else
call DoNothing( )
endif
set udg_UserNames[3] = GetPlayerName(Player(2))
call CommentString( "Purple, Player 4" )
if ( Trig_Create_Base_Builders_Func018001() ) then
call CreateNUnitsAtLoc( 1, 'nC01', Player(3), GetPlayerStartLocationLoc(Player(3)), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func019001() ) then
set udg_BaseBuilder[4] = GetLastCreatedUnit()
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func020001() ) then
set udg_Users[4] = Player(3)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func021001() ) then
set udg_OmegaTeam[4] = Player(3)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func022001() ) then
set udg_NumPlayers = ( udg_NumPlayers + 1 )
else
call DoNothing( )
endif
set udg_UserNames[4] = GetPlayerName(Player(3))
call CommentString( "Yellow, Player 5" )
if ( Trig_Create_Base_Builders_Func025001() ) then
call CreateNUnitsAtLoc( 1, 'nC01', Player(4), GetPlayerStartLocationLoc(Player(4)), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func026001() ) then
set udg_BaseBuilder[5] = GetLastCreatedUnit()
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func027001() ) then
set udg_Users[5] = Player(4)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func028001() ) then
set udg_AlphaTeam[5] = Player(4)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func029001() ) then
set udg_NumPlayers = ( udg_NumPlayers + 1 )
else
call DoNothing( )
endif
set udg_UserNames[5] = GetPlayerName(Player(4))
call CommentString( "Oragne, Player 6" )
if ( Trig_Create_Base_Builders_Func032001() ) then
call CreateNUnitsAtLoc( 1, 'nC01', Player(5), GetPlayerStartLocationLoc(Player(5)), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func033001() ) then
set udg_BaseBuilder[6] = GetLastCreatedUnit()
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func034001() ) then
set udg_Users[6] = Player(5)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func035001() ) then
set udg_AlphaTeam[6] = Player(5)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func036001() ) then
set udg_NumPlayers = ( udg_NumPlayers + 1 )
else
call DoNothing( )
endif
set udg_UserNames[6] = GetPlayerName(Player(5))
call CommentString( "Green, Player 7" )
if ( Trig_Create_Base_Builders_Func039001() ) then
call CreateNUnitsAtLoc( 1, 'nC01', Player(6), GetPlayerStartLocationLoc(Player(6)), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func040001() ) then
set udg_BaseBuilder[7] = GetLastCreatedUnit()
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func041001() ) then
set udg_Users[7] = Player(6)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func042001() ) then
set udg_OmegaTeam[7] = Player(6)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func043001() ) then
set udg_NumPlayers = ( udg_NumPlayers + 1 )
else
call DoNothing( )
endif
set udg_UserNames[7] = GetPlayerName(Player(6))
call CommentString( "Pink, Player 8" )
if ( Trig_Create_Base_Builders_Func046001() ) then
call CreateNUnitsAtLoc( 1, 'nC01', Player(7), GetPlayerStartLocationLoc(Player(7)), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func047001() ) then
set udg_BaseBuilder[8] = GetLastCreatedUnit()
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func048001() ) then
set udg_Users[8] = Player(7)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func049001() ) then
set udg_AlphaTeam[8] = Player(7)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func050001() ) then
set udg_NumPlayers = ( udg_NumPlayers + 1 )
else
call DoNothing( )
endif
set udg_UserNames[8] = GetPlayerName(Player(7))
call CommentString( "Gray, Player 9" )
if ( Trig_Create_Base_Builders_Func053001() ) then
call CreateNUnitsAtLoc( 1, 'nC01', Player(8), GetPlayerStartLocationLoc(Player(8)), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func054001() ) then
set udg_BaseBuilder[9] = GetLastCreatedUnit()
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func055001() ) then
set udg_Users[9] = Player(8)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func056001() ) then
set udg_AlphaTeam[9] = Player(8)
else
call DoNothing( )
endif
if ( Trig_Create_Base_Builders_Func057001() ) then
set udg_NumPlayers = ( udg_NumPlayers + 1 )
else
call DoNothing( )
endif
set udg_UserNames[9] = GetPlayerName(Player(8))
call CommentString( "Extra stuff" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_SupplyHeadquarters[GetForLoopIndexA()] = 0
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetTimeOfDay( 6.00 )
call SetGameSpeed( MAP_SPEED_FASTEST )
call LockGameSpeedBJ( )
endfunction
//===========================================================================
function InitTrig_Create_Base_Builders takes nothing returns nothing
set gg_trg_Create_Base_Builders = CreateTrigger( )
call TriggerAddAction( gg_trg_Create_Base_Builders, function Trig_Create_Base_Builders_Actions )
endfunction
function Trig_Base_Timer_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 12.00, "TRIGSTR_025" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ( true, udg_AlphaTeam[GetForLoopIndexA()], FOG_OF_WAR_VISIBLE, GetRectCenter(gg_rct_AlphaBase), 3700.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ( true, udg_OmegaTeam[GetForLoopIndexA()], FOG_OF_WAR_VISIBLE, GetRectCenter(gg_rct_OmegaBase), 3700.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call StartTimerBJ( udg_BaseTimer, false, 45.00 )
set udg_BaseTimer = GetLastCreatedTimerBJ()
call CreateTimerDialogBJ( udg_BaseTimer, "TRIGSTR_024" )
set udg_BaseTimerWindow = GetLastCreatedTimerDialogBJ()
endfunction
//===========================================================================
function InitTrig_Base_Timer takes nothing returns nothing
set gg_trg_Base_Timer = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Base_Timer, 1.00 )
call TriggerAddAction( gg_trg_Base_Timer, function Trig_Base_Timer_Actions )
endfunction
function Trig_Secondary_Message_and_Quest_Func006002 takes nothing returns nothing
call QuestSetDiscoveredBJ( GetLastCreatedQuestBJ(), true )
endfunction
function Trig_Secondary_Message_and_Quest_Func009002 takes nothing returns nothing
call QuestSetDiscoveredBJ( GetLastCreatedQuestBJ(), true )
endfunction
function Trig_Secondary_Message_and_Quest_Func014002 takes nothing returns nothing
call QuestSetDiscoveredBJ( GetLastCreatedQuestBJ(), true )
endfunction
function Trig_Secondary_Message_and_Quest_Func016002 takes nothing returns nothing
call QuestSetDiscoveredBJ( GetLastCreatedQuestBJ(), true )
endfunction
function Trig_Secondary_Message_and_Quest_Func018002 takes nothing returns nothing
call QuestSetDiscoveredBJ( GetLastCreatedQuestBJ(), true )
endfunction
function Trig_Secondary_Message_and_Quest_Func020002 takes nothing returns nothing
call QuestSetDiscoveredBJ( GetLastCreatedQuestBJ(), true )
endfunction
function Trig_Secondary_Message_and_Quest_Func021002 takes nothing returns nothing
call FlashQuestDialogButtonBJ( )
endfunction
function Trig_Secondary_Message_and_Quest_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 16.00, "TRIGSTR_206" )
call TriggerSleepAction( 4.00 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_209", "TRIGSTR_210", "ReplaceableTextures\\CommandButtons\\BTNTrollBurrow.blp" )
call CreateQuestItemBJ( GetLastCreatedQuestBJ(), "TRIGSTR_211" )
call CreateQuestItemBJ( GetLastCreatedQuestBJ(), "TRIGSTR_212" )
call ForForce( GetPlayersAll(), function Trig_Secondary_Message_and_Quest_Func006002 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_213", "TRIGSTR_214", "ReplaceableTextures\\CommandButtons\\BTNArcaneSanctum.blp" )
call CreateQuestItemBJ( GetLastCreatedQuestBJ(), "TRIGSTR_215" )
call ForForce( GetPlayersAll(), function Trig_Secondary_Message_and_Quest_Func009002 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_247", "TRIGSTR_248", "ReplaceableTextures\\CommandButtons\\BTNScroll.blp" )
call CreateQuestItemBJ( GetLastCreatedQuestBJ(), "TRIGSTR_249" )
call CreateQuestItemBJ( GetLastCreatedQuestBJ(), "TRIGSTR_250" )
call CreateQuestItemBJ( GetLastCreatedQuestBJ(), "TRIGSTR_251" )
call ForForce( GetPlayersAll(), function Trig_Secondary_Message_and_Quest_Func014002 )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_218", "TRIGSTR_219", "ReplaceableTextures\\CommandButtons\\BTNHumanWatchTower.blp" )
call ForForce( GetPlayersAll(), function Trig_Secondary_Message_and_Quest_Func016002 )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_216", "TRIGSTR_217", "ReplaceableTextures\\CommandButtons\\BTNCannonTower.blp" )
call ForForce( GetPlayersAll(), function Trig_Secondary_Message_and_Quest_Func018002 )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_220", "TRIGSTR_221", "ReplaceableTextures\\CommandButtons\\BTNMarine.blp" )
call ForForce( GetPlayersAll(), function Trig_Secondary_Message_and_Quest_Func020002 )
call ForForce( GetPlayersAll(), function Trig_Secondary_Message_and_Quest_Func021002 )
endfunction
//===========================================================================
function InitTrig_Secondary_Message_and_Quest takes nothing returns nothing
set gg_trg_Secondary_Message_and_Quest = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Secondary_Message_and_Quest, 18.00 )
call TriggerAddAction( gg_trg_Secondary_Message_and_Quest, function Trig_Secondary_Message_and_Quest_Actions )
endfunction
function Trig_Remove_Base_Builders_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'oC00' ) ) then
return false
endif
return true
endfunction
function Trig_Remove_Base_Builders_Func002002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Remove_Base_Builders_Actions takes nothing returns nothing
call ForGroup( GetUnitsOfPlayerAndTypeId(GetTriggerPlayer(), 'nC01'), function Trig_Remove_Base_Builders_Func002002 )
endfunction
//===========================================================================
function InitTrig_Remove_Base_Builders takes nothing returns nothing
set gg_trg_Remove_Base_Builders = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Remove_Base_Builders, Player(1), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Remove_Base_Builders, Player(2), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Remove_Base_Builders, Player(3), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Remove_Base_Builders, Player(4), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Remove_Base_Builders, Player(5), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Remove_Base_Builders, Player(6), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Remove_Base_Builders, Player(7), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Remove_Base_Builders, Player(8), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddCondition( gg_trg_Remove_Base_Builders, Condition( function Trig_Remove_Base_Builders_Conditions ) )
call TriggerAddAction( gg_trg_Remove_Base_Builders, function Trig_Remove_Base_Builders_Actions )
endfunction
function Trig_Begin_Operations_Func004002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 75 )
endfunction
function Trig_Begin_Operations_Func007001 takes nothing returns boolean
return ( GetUnitTypeId(udg_BaseBuilder[2]) == 'nC01' )
endfunction
function Trig_Begin_Operations_Func008001 takes nothing returns boolean
return ( GetUnitTypeId(udg_BaseBuilder[3]) == 'nC01' )
endfunction
function Trig_Begin_Operations_Func009001 takes nothing returns boolean
return ( GetUnitTypeId(udg_BaseBuilder[4]) == 'nC01' )
endfunction
function Trig_Begin_Operations_Func010001 takes nothing returns boolean
return ( GetUnitTypeId(udg_BaseBuilder[5]) == 'nC01' )
endfunction
function Trig_Begin_Operations_Func011001 takes nothing returns boolean
return ( GetUnitTypeId(udg_BaseBuilder[6]) == 'nC01' )
endfunction
function Trig_Begin_Operations_Func012001 takes nothing returns boolean
return ( GetUnitTypeId(udg_BaseBuilder[7]) == 'nC01' )
endfunction
function Trig_Begin_Operations_Func013001 takes nothing returns boolean
return ( GetUnitTypeId(udg_BaseBuilder[8]) == 'nC01' )
endfunction
function Trig_Begin_Operations_Func014001 takes nothing returns boolean
return ( GetUnitTypeId(udg_BaseBuilder[9]) == 'nC01' )
endfunction
function Trig_Begin_Operations_Func015003001 takes nothing returns boolean
return ( GetUnitTypeId(udg_BaseBuilder[GetForLoopIndexA()]) == 'nC01' )
endfunction
function Trig_Begin_Operations_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Fund_Operations )
call DestroyTimerDialogBJ( udg_BaseTimerWindow )
call ForForce( GetPlayersAll(), function Trig_Begin_Operations_Func004002 )
call DisplayTimedTextToForce( GetPlayersAllies(Player(0)), 12.00, "TRIGSTR_208" )
call DisplayTimedTextToForce( GetPlayersAllies(Player(9)), 12.00, "TRIGSTR_207" )
if ( Trig_Begin_Operations_Func007001() ) then
set udg_OmegaBases = ( udg_OmegaBases + 1 )
else
call DoNothing( )
endif
if ( Trig_Begin_Operations_Func008001() ) then
set udg_OmegaBases = ( udg_OmegaBases + 1 )
else
call DoNothing( )
endif
if ( Trig_Begin_Operations_Func009001() ) then
set udg_OmegaBases = ( udg_OmegaBases + 1 )
else
call DoNothing( )
endif
if ( Trig_Begin_Operations_Func010001() ) then
set udg_AlphaBases = ( udg_AlphaBases + 1 )
else
call DoNothing( )
endif
if ( Trig_Begin_Operations_Func011001() ) then
set udg_AlphaBases = ( udg_AlphaBases + 1 )
else
call DoNothing( )
endif
if ( Trig_Begin_Operations_Func012001() ) then
set udg_OmegaBases = ( udg_OmegaBases + 1 )
else
call DoNothing( )
endif
if ( Trig_Begin_Operations_Func013001() ) then
set udg_AlphaBases = ( udg_AlphaBases + 1 )
else
call DoNothing( )
endif
if ( Trig_Begin_Operations_Func014001() ) then
set udg_AlphaBases = ( udg_AlphaBases + 1 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Begin_Operations_Func015003001() ) then
call CreateNUnitsAtLoc( 1, 'oC00', udg_Users[GetForLoopIndexA()], GetPlayerStartLocationLoc(udg_Users[GetForLoopIndexA()]), bj_UNIT_FACING )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call RemoveUnit( udg_BaseBuilder[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'uC02', udg_AlphaTeam[GetForLoopIndexA()], GetPlayerStartLocationLoc(udg_AlphaTeam[GetForLoopIndexA()]), bj_UNIT_FACING )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'oC03', udg_AlphaTeam[GetForLoopIndexA()], OffsetLocation(GetPlayerStartLocationLoc(udg_AlphaTeam[GetForLoopIndexA()]), -10.00, -10.00), bj_UNIT_FACING )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'uC02', udg_OmegaTeam[GetForLoopIndexA()], GetPlayerStartLocationLoc(udg_OmegaTeam[GetForLoopIndexA()]), bj_UNIT_FACING )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'oC03', udg_OmegaTeam[GetForLoopIndexA()], OffsetLocation(GetPlayerStartLocationLoc(udg_OmegaTeam[GetForLoopIndexA()]), -10.00, -10.00), bj_UNIT_FACING )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer( udg_AlphaTeam[GetForLoopIndexA()], OffsetLocation(GetPlayerStartLocationLoc(udg_AlphaTeam[GetForLoopIndexA()]), 0, 0), 0 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer( udg_OmegaTeam[GetForLoopIndexA()], OffsetLocation(GetPlayerStartLocationLoc(udg_OmegaTeam[GetForLoopIndexA()]), 0, 0), 0 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call LeaderboardSetPlayerItemValueBJ( Player(0), udg_BaseLeaderboard, udg_AlphaBases )
call LeaderboardSetPlayerItemValueBJ( Player(9), udg_BaseLeaderboard, udg_OmegaBases )
endfunction
//===========================================================================
function InitTrig_Begin_Operations takes nothing returns nothing
set gg_trg_Begin_Operations = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Begin_Operations, udg_BaseTimer )
call TriggerAddAction( gg_trg_Begin_Operations, function Trig_Begin_Operations_Actions )
endfunction
function Trig_Bases_Leaderboard_Actions takes nothing returns nothing
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_168" )
set udg_BaseLeaderboard = GetLastCreatedLeaderboard()
call LeaderboardDisplayBJ( true, udg_BaseLeaderboard )
call LeaderboardAddItemBJ( Player(0), udg_BaseLeaderboard, "TRIGSTR_162", udg_AlphaBases )
call LeaderboardAddItemBJ( Player(9), udg_BaseLeaderboard, "TRIGSTR_163", udg_OmegaBases )
call LeaderboardSetPlayerItemLabelColorBJ( Player(9), GetLastCreatedLeaderboard(), 14.11, 14.11, 100, 0 )
call LeaderboardSetPlayerItemValueColorBJ( Player(9), GetLastCreatedLeaderboard(), 14.11, 14.11, 100, 0 )
endfunction
//===========================================================================
function InitTrig_Bases_Leaderboard takes nothing returns nothing
set gg_trg_Bases_Leaderboard = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Bases_Leaderboard, 1.00 )
call TriggerAddAction( gg_trg_Bases_Leaderboard, function Trig_Bases_Leaderboard_Actions )
endfunction
function Trig_Hold_back_Alpha_Base_Builder_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nC01' ) ) then
return false
endif
return true
endfunction
function Trig_Hold_back_Alpha_Base_Builder_Func003002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == GetEnumPlayer() )
endfunction
function Trig_Hold_back_Alpha_Base_Builder_Func003002 takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersMatching(Condition(function Trig_Hold_back_Alpha_Base_Builder_Func003002001001)), 6.00, "TRIGSTR_171" )
endfunction
function Trig_Hold_back_Alpha_Base_Builder_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_AlphaBase) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_AlphaBase), 0 )
call ForForce( GetPlayersAll(), function Trig_Hold_back_Alpha_Base_Builder_Func003002 )
endfunction
//===========================================================================
function InitTrig_Hold_back_Alpha_Base_Builder takes nothing returns nothing
set gg_trg_Hold_back_Alpha_Base_Builder = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Hold_back_Alpha_Base_Builder, gg_rct_AlphaBase )
call TriggerAddCondition( gg_trg_Hold_back_Alpha_Base_Builder, Condition( function Trig_Hold_back_Alpha_Base_Builder_Conditions ) )
call TriggerAddAction( gg_trg_Hold_back_Alpha_Base_Builder, function Trig_Hold_back_Alpha_Base_Builder_Actions )
endfunction
function Trig_Hold_back_Omega_Base_Builder_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nC01' ) ) then
return false
endif
return true
endfunction
function Trig_Hold_back_Omega_Base_Builder_Func003002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == GetEnumPlayer() )
endfunction
function Trig_Hold_back_Omega_Base_Builder_Func003002 takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersMatching(Condition(function Trig_Hold_back_Omega_Base_Builder_Func003002001001)), 6.00, "TRIGSTR_182" )
endfunction
function Trig_Hold_back_Omega_Base_Builder_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_OmegaBase) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_OmegaBase), 0 )
call ForForce( GetPlayersAll(), function Trig_Hold_back_Omega_Base_Builder_Func003002 )
endfunction
//===========================================================================
function InitTrig_Hold_back_Omega_Base_Builder takes nothing returns nothing
set gg_trg_Hold_back_Omega_Base_Builder = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Hold_back_Omega_Base_Builder, gg_rct_OmegaBase )
call TriggerAddCondition( gg_trg_Hold_back_Omega_Base_Builder, Condition( function Trig_Hold_back_Omega_Base_Builder_Conditions ) )
call TriggerAddAction( gg_trg_Hold_back_Omega_Base_Builder, function Trig_Hold_back_Omega_Base_Builder_Actions )
endfunction
function Trig_Hold_back_Alpha_Builder_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'uC02' ) ) then
return false
endif
return true
endfunction
function Trig_Hold_back_Alpha_Builder_Func003002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == GetEnumPlayer() )
endfunction
function Trig_Hold_back_Alpha_Builder_Func003002 takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersMatching(Condition(function Trig_Hold_back_Alpha_Builder_Func003002001001)), 6.00, "TRIGSTR_141" )
endfunction
function Trig_Hold_back_Alpha_Builder_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_AlphaBase) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_AlphaBase), 0 )
call ForForce( GetPlayersAll(), function Trig_Hold_back_Alpha_Builder_Func003002 )
endfunction
//===========================================================================
function InitTrig_Hold_back_Alpha_Builder takes nothing returns nothing
set gg_trg_Hold_back_Alpha_Builder = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Hold_back_Alpha_Builder, gg_rct_AlphaBase )
call TriggerAddCondition( gg_trg_Hold_back_Alpha_Builder, Condition( function Trig_Hold_back_Alpha_Builder_Conditions ) )
call TriggerAddAction( gg_trg_Hold_back_Alpha_Builder, function Trig_Hold_back_Alpha_Builder_Actions )
endfunction
function Trig_Hold_back_Omega_Builder_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'uC02' ) ) then
return false
endif
return true
endfunction
function Trig_Hold_back_Omega_Builder_Func003002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == GetEnumPlayer() )
endfunction
function Trig_Hold_back_Omega_Builder_Func003002 takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersMatching(Condition(function Trig_Hold_back_Omega_Builder_Func003002001001)), 6.00, "TRIGSTR_144" )
endfunction
function Trig_Hold_back_Omega_Builder_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_OmegaBase) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_OmegaBase), 0 )
call ForForce( GetPlayersAll(), function Trig_Hold_back_Omega_Builder_Func003002 )
endfunction
//===========================================================================
function InitTrig_Hold_back_Omega_Builder takes nothing returns nothing
set gg_trg_Hold_back_Omega_Builder = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Hold_back_Omega_Builder, gg_rct_OmegaBase )
call TriggerAddCondition( gg_trg_Hold_back_Omega_Builder, Condition( function Trig_Hold_back_Omega_Builder_Conditions ) )
call TriggerAddAction( gg_trg_Hold_back_Omega_Builder, function Trig_Hold_back_Omega_Builder_Actions )
endfunction
function Trig_Hold_back_Alpha_Metal_Marine_Builder_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'oC03' ) ) then
return false
endif
return true
endfunction
function Trig_Hold_back_Alpha_Metal_Marine_Builder_Func003002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == GetEnumPlayer() )
endfunction
function Trig_Hold_back_Alpha_Metal_Marine_Builder_Func003002 takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersMatching(Condition(function Trig_Hold_back_Alpha_Metal_Marine_Builder_Func003002001001)), 6.00, "TRIGSTR_147" )
endfunction
function Trig_Hold_back_Alpha_Metal_Marine_Builder_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_AlphaBase) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_AlphaBase), 0 )
call ForForce( GetPlayersAll(), function Trig_Hold_back_Alpha_Metal_Marine_Builder_Func003002 )
endfunction
//===========================================================================
function InitTrig_Hold_back_Alpha_Metal_Marine_Builder takes nothing returns nothing
set gg_trg_Hold_back_Alpha_Metal_Marine_Builder = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Hold_back_Alpha_Metal_Marine_Builder, gg_rct_AlphaBase )
call TriggerAddCondition( gg_trg_Hold_back_Alpha_Metal_Marine_Builder, Condition( function Trig_Hold_back_Alpha_Metal_Marine_Builder_Conditions ) )
call TriggerAddAction( gg_trg_Hold_back_Alpha_Metal_Marine_Builder, function Trig_Hold_back_Alpha_Metal_Marine_Builder_Actions )
endfunction
function Trig_Hold_back_Omega_Metal_Marine_Builder_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'oC03' ) ) then
return false
endif
return true
endfunction
function Trig_Hold_back_Omega_Metal_Marine_Builder_Func003002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == GetEnumPlayer() )
endfunction
function Trig_Hold_back_Omega_Metal_Marine_Builder_Func003002 takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersMatching(Condition(function Trig_Hold_back_Omega_Metal_Marine_Builder_Func003002001001)), 6.00, "TRIGSTR_150" )
endfunction
function Trig_Hold_back_Omega_Metal_Marine_Builder_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_OmegaBase) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_OmegaBase), 0 )
call ForForce( GetPlayersAll(), function Trig_Hold_back_Omega_Metal_Marine_Builder_Func003002 )
endfunction
//===========================================================================
function InitTrig_Hold_back_Omega_Metal_Marine_Builder takes nothing returns nothing
set gg_trg_Hold_back_Omega_Metal_Marine_Builder = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Hold_back_Omega_Metal_Marine_Builder, gg_rct_OmegaBase )
call TriggerAddCondition( gg_trg_Hold_back_Omega_Metal_Marine_Builder, Condition( function Trig_Hold_back_Omega_Metal_Marine_Builder_Conditions ) )
call TriggerAddAction( gg_trg_Hold_back_Omega_Metal_Marine_Builder, function Trig_Hold_back_Omega_Metal_Marine_Builder_Actions )
endfunction
function Trig_Fund_Operations_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Fund_Operations_Func002002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_Fund_Operations_Func005002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) - 2.00 ) )
endfunction
function Trig_Fund_Operations_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Fund_Operations_Func001002 )
call ForForce( GetPlayersAll(), function Trig_Fund_Operations_Func002002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AdjustPlayerStateBJ( udg_SupplyHeadquarters[GetForLoopIndexA()], udg_Users[GetForLoopIndexA()], PLAYER_STATE_RESOURCE_GOLD )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AdjustPlayerStateBJ( udg_LumberRefinery[GetForLoopIndexA()], udg_Users[GetForLoopIndexA()], PLAYER_STATE_RESOURCE_LUMBER )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroup( GetUnitsOfTypeIdAll('uC11'), function Trig_Fund_Operations_Func005002 )
endfunction
//===========================================================================
function InitTrig_Fund_Operations takes nothing returns nothing
set gg_trg_Fund_Operations = CreateTrigger( )
call DisableTrigger( gg_trg_Fund_Operations )
call TriggerRegisterTimerEventPeriodic( gg_trg_Fund_Operations, 2.00 )
call TriggerAddAction( gg_trg_Fund_Operations, function Trig_Fund_Operations_Actions )
endfunction
function Trig_ICMB_is_being_built_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'oC22' ) ) then
return false
endif
return true
endfunction
function Trig_ICMB_is_being_built_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_151" )
endfunction
//===========================================================================
function InitTrig_ICMB_is_being_built takes nothing returns nothing
set gg_trg_ICMB_is_being_built = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICMB_is_being_built, Player(1), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICMB_is_being_built, Player(2), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICMB_is_being_built, Player(3), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICMB_is_being_built, Player(4), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICMB_is_being_built, Player(5), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICMB_is_being_built, Player(6), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICMB_is_being_built, Player(7), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICMB_is_being_built, Player(8), EVENT_PLAYER_UNIT_TRAIN_START )
call TriggerAddCondition( gg_trg_ICMB_is_being_built, Condition( function Trig_ICMB_is_being_built_Conditions ) )
call TriggerAddAction( gg_trg_ICMB_is_being_built, function Trig_ICMB_is_being_built_Actions )
endfunction
function Trig_Start_Alpha_MM_attack_Func008001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(4) )
endfunction
function Trig_Start_Alpha_MM_attack_Func008002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(5) )
endfunction
function Trig_Start_Alpha_MM_attack_Func008002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(7) )
endfunction
function Trig_Start_Alpha_MM_attack_Func008002002002 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(8) )
endfunction
function Trig_Start_Alpha_MM_attack_Func008002002 takes nothing returns boolean
return GetBooleanOr( Trig_Start_Alpha_MM_attack_Func008002002001(), Trig_Start_Alpha_MM_attack_Func008002002002() )
endfunction
function Trig_Start_Alpha_MM_attack_Func008002 takes nothing returns boolean
return GetBooleanOr( Trig_Start_Alpha_MM_attack_Func008002001(), Trig_Start_Alpha_MM_attack_Func008002002() )
endfunction
function Trig_Start_Alpha_MM_attack_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nC04' ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Start_Alpha_MM_attack_Func008001(), Trig_Start_Alpha_MM_attack_Func008002() ) ) then
return false
endif
return true
endfunction
function Trig_Start_Alpha_MM_attack_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call StartTimerBJ( udg_MMAlphaAttack, false, 90.00 )
set udg_MMAlphaAttack = GetLastCreatedTimerBJ()
call CreateTimerDialogBJ( udg_MMAlphaAttack, "TRIGSTR_184" )
set udg_MMAlphaAttackWindow = GetLastCreatedTimerDialogBJ()
call DisplayTimedTextToForce( GetPlayersAll(), 12.00, "TRIGSTR_185" )
endfunction
//===========================================================================
function InitTrig_Start_Alpha_MM_attack takes nothing returns nothing
set gg_trg_Start_Alpha_MM_attack = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Start_Alpha_MM_attack, gg_rct_OmegaBase )
call TriggerAddCondition( gg_trg_Start_Alpha_MM_attack, Condition( function Trig_Start_Alpha_MM_attack_Conditions ) )
call TriggerAddAction( gg_trg_Start_Alpha_MM_attack, function Trig_Start_Alpha_MM_attack_Actions )
endfunction
function Trig_End_Alpha_MM_attack_Func003003002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_AlphaReturn) )
endfunction
function Trig_End_Alpha_MM_attack_Func004003002001001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'nC04' )
endfunction
function Trig_End_Alpha_MM_attack_Func004003002001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == udg_AlphaTeam[GetForLoopIndexA()] )
endfunction
function Trig_End_Alpha_MM_attack_Func004003002001 takes nothing returns boolean
return GetBooleanAnd( Trig_End_Alpha_MM_attack_Func004003002001001(), Trig_End_Alpha_MM_attack_Func004003002001002() )
endfunction
function Trig_End_Alpha_MM_attack_Func004003002 takes nothing returns nothing
if ( Trig_End_Alpha_MM_attack_Func004003002001() ) then
call KillUnit( GetTriggerUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_End_Alpha_MM_attack_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Start_Alpha_MM_attack )
call DestroyTimerDialogBJ( udg_MMAlphaAttackWindow )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ForGroup( GetUnitsInRectOfPlayer(gg_rct_OmegaBase, udg_AlphaTeam[GetForLoopIndexA()]), function Trig_End_Alpha_MM_attack_Func003003002 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ForGroup( GetUnitsInRectAll(gg_rct_OmegaBase), function Trig_End_Alpha_MM_attack_Func004003002 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisplayTimedTextToForce( GetPlayersAll(), 6.00, "TRIGSTR_204" )
call PingMinimapLocForForce( GetPlayersAllies(Player(0)), GetRectCenter(gg_rct_AlphaReturn), 5.00 )
endfunction
//===========================================================================
function InitTrig_End_Alpha_MM_attack takes nothing returns nothing
set gg_trg_End_Alpha_MM_attack = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_End_Alpha_MM_attack, udg_MMAlphaAttack )
call TriggerAddAction( gg_trg_End_Alpha_MM_attack, function Trig_End_Alpha_MM_attack_Actions )
endfunction
function Trig_Start_Omega_MM_attack_Func008001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(1) )
endfunction
function Trig_Start_Omega_MM_attack_Func008002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(2) )
endfunction
function Trig_Start_Omega_MM_attack_Func008002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(3) )
endfunction
function Trig_Start_Omega_MM_attack_Func008002002002 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(6) )
endfunction
function Trig_Start_Omega_MM_attack_Func008002002 takes nothing returns boolean
return GetBooleanOr( Trig_Start_Omega_MM_attack_Func008002002001(), Trig_Start_Omega_MM_attack_Func008002002002() )
endfunction
function Trig_Start_Omega_MM_attack_Func008002 takes nothing returns boolean
return GetBooleanOr( Trig_Start_Omega_MM_attack_Func008002001(), Trig_Start_Omega_MM_attack_Func008002002() )
endfunction
function Trig_Start_Omega_MM_attack_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nC04' ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Start_Omega_MM_attack_Func008001(), Trig_Start_Omega_MM_attack_Func008002() ) ) then
return false
endif
return true
endfunction
function Trig_Start_Omega_MM_attack_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call StartTimerBJ( udg_MMOmegaAttack, false, 90.00 )
set udg_MMOmegaAttack = GetLastCreatedTimerBJ()
call CreateTimerDialogBJ( udg_MMOmegaAttack, "TRIGSTR_202" )
set udg_MMOmegaAttackWindow = GetLastCreatedTimerDialogBJ()
call DisplayTimedTextToForce( GetPlayersAll(), 12.00, "TRIGSTR_203" )
endfunction
//===========================================================================
function InitTrig_Start_Omega_MM_attack takes nothing returns nothing
set gg_trg_Start_Omega_MM_attack = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Start_Omega_MM_attack, gg_rct_AlphaBase )
call TriggerAddCondition( gg_trg_Start_Omega_MM_attack, Condition( function Trig_Start_Omega_MM_attack_Conditions ) )
call TriggerAddAction( gg_trg_Start_Omega_MM_attack, function Trig_Start_Omega_MM_attack_Actions )
endfunction
function Trig_End_Omega_MM_attack_Func003003002 takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_OmegaReturn) )
endfunction
function Trig_End_Omega_MM_attack_Func004003002001001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'nC04' )
endfunction
function Trig_End_Omega_MM_attack_Func004003002001002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == udg_OmegaTeam[GetForLoopIndexA()] )
endfunction
function Trig_End_Omega_MM_attack_Func004003002001 takes nothing returns boolean
return GetBooleanAnd( Trig_End_Omega_MM_attack_Func004003002001001(), Trig_End_Omega_MM_attack_Func004003002001002() )
endfunction
function Trig_End_Omega_MM_attack_Func004003002 takes nothing returns nothing
if ( Trig_End_Omega_MM_attack_Func004003002001() ) then
call KillUnit( GetTriggerUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_End_Omega_MM_attack_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Start_Omega_MM_attack )
call DestroyTimerDialogBJ( udg_MMOmegaAttackWindow )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ForGroup( GetUnitsInRectOfPlayer(gg_rct_AlphaBase, udg_OmegaTeam[GetForLoopIndexA()]), function Trig_End_Omega_MM_attack_Func003003002 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ForGroup( GetUnitsInRectAll(gg_rct_AlphaBase), function Trig_End_Omega_MM_attack_Func004003002 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisplayTimedTextToForce( GetPlayersAll(), 6.00, "TRIGSTR_205" )
call PingMinimapLocForForce( GetPlayersAllies(Player(9)), GetRectCenter(gg_rct_OmegaReturn), 5.00 )
endfunction
//===========================================================================
function InitTrig_End_Omega_MM_attack takes nothing returns nothing
set gg_trg_End_Omega_MM_attack = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_End_Omega_MM_attack, udg_MMOmegaAttack )
call TriggerAddAction( gg_trg_End_Omega_MM_attack, function Trig_End_Omega_MM_attack_Actions )
endfunction
function Trig_Destroy_Alpha_Dropships_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(4) )
endfunction
function Trig_Destroy_Alpha_Dropships_Func004002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(5) )
endfunction
function Trig_Destroy_Alpha_Dropships_Func004002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(7) )
endfunction
function Trig_Destroy_Alpha_Dropships_Func004002002002 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(8) )
endfunction
function Trig_Destroy_Alpha_Dropships_Func004002002 takes nothing returns boolean
return GetBooleanOr( Trig_Destroy_Alpha_Dropships_Func004002002001(), Trig_Destroy_Alpha_Dropships_Func004002002002() )
endfunction
function Trig_Destroy_Alpha_Dropships_Func004002 takes nothing returns boolean
return GetBooleanOr( Trig_Destroy_Alpha_Dropships_Func004002001(), Trig_Destroy_Alpha_Dropships_Func004002002() )
endfunction
function Trig_Destroy_Alpha_Dropships_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nC04' ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Destroy_Alpha_Dropships_Func004001(), Trig_Destroy_Alpha_Dropships_Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_Destroy_Alpha_Dropships_Actions takes nothing returns nothing
call KillUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Destroy_Alpha_Dropships takes nothing returns nothing
set gg_trg_Destroy_Alpha_Dropships = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Destroy_Alpha_Dropships, gg_rct_OmegaBase )
call TriggerAddCondition( gg_trg_Destroy_Alpha_Dropships, Condition( function Trig_Destroy_Alpha_Dropships_Conditions ) )
call TriggerAddAction( gg_trg_Destroy_Alpha_Dropships, function Trig_Destroy_Alpha_Dropships_Actions )
endfunction
function Trig_Destroy_Omega_Dropships_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(1) )
endfunction
function Trig_Destroy_Omega_Dropships_Func004002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(2) )
endfunction
function Trig_Destroy_Omega_Dropships_Func004002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(3) )
endfunction
function Trig_Destroy_Omega_Dropships_Func004002002002 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(6) )
endfunction
function Trig_Destroy_Omega_Dropships_Func004002002 takes nothing returns boolean
return GetBooleanOr( Trig_Destroy_Omega_Dropships_Func004002002001(), Trig_Destroy_Omega_Dropships_Func004002002002() )
endfunction
function Trig_Destroy_Omega_Dropships_Func004002 takes nothing returns boolean
return GetBooleanOr( Trig_Destroy_Omega_Dropships_Func004002001(), Trig_Destroy_Omega_Dropships_Func004002002() )
endfunction
function Trig_Destroy_Omega_Dropships_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nC04' ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Destroy_Omega_Dropships_Func004001(), Trig_Destroy_Omega_Dropships_Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_Destroy_Omega_Dropships_Actions takes nothing returns nothing
call KillUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Destroy_Omega_Dropships takes nothing returns nothing
set gg_trg_Destroy_Omega_Dropships = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Destroy_Omega_Dropships, gg_rct_AlphaBase )
call TriggerAddCondition( gg_trg_Destroy_Omega_Dropships, Condition( function Trig_Destroy_Omega_Dropships_Conditions ) )
call TriggerAddAction( gg_trg_Destroy_Omega_Dropships, function Trig_Destroy_Omega_Dropships_Actions )
endfunction
function Trig_Alpha_Dropship_death_reminder_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(4) )
endfunction
function Trig_Alpha_Dropship_death_reminder_Func005002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(5) )
endfunction
function Trig_Alpha_Dropship_death_reminder_Func005002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(7) )
endfunction
function Trig_Alpha_Dropship_death_reminder_Func005002002002 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(8) )
endfunction
function Trig_Alpha_Dropship_death_reminder_Func005002002 takes nothing returns boolean
return GetBooleanOr( Trig_Alpha_Dropship_death_reminder_Func005002002001(), Trig_Alpha_Dropship_death_reminder_Func005002002002() )
endfunction
function Trig_Alpha_Dropship_death_reminder_Func005002 takes nothing returns boolean
return GetBooleanOr( Trig_Alpha_Dropship_death_reminder_Func005002001(), Trig_Alpha_Dropship_death_reminder_Func005002002() )
endfunction
function Trig_Alpha_Dropship_death_reminder_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nC04' ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Alpha_Dropship_death_reminder_Func005001(), Trig_Alpha_Dropship_death_reminder_Func005002() ) ) then
return false
endif
return true
endfunction
function Trig_Alpha_Dropship_death_reminder_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call DisplayTimedTextToForce( GetPlayersAll(), 12.00, "TRIGSTR_227" )
endfunction
//===========================================================================
function InitTrig_Alpha_Dropship_death_reminder takes nothing returns nothing
set gg_trg_Alpha_Dropship_death_reminder = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alpha_Dropship_death_reminder, gg_rct_OmegaBase )
call TriggerAddCondition( gg_trg_Alpha_Dropship_death_reminder, Condition( function Trig_Alpha_Dropship_death_reminder_Conditions ) )
call TriggerAddAction( gg_trg_Alpha_Dropship_death_reminder, function Trig_Alpha_Dropship_death_reminder_Actions )
endfunction
function Trig_Omega_Dropship_death_reminder_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(1) )
endfunction
function Trig_Omega_Dropship_death_reminder_Func005002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(2) )
endfunction
function Trig_Omega_Dropship_death_reminder_Func005002002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(3) )
endfunction
function Trig_Omega_Dropship_death_reminder_Func005002002002 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(6) )
endfunction
function Trig_Omega_Dropship_death_reminder_Func005002002 takes nothing returns boolean
return GetBooleanOr( Trig_Omega_Dropship_death_reminder_Func005002002001(), Trig_Omega_Dropship_death_reminder_Func005002002002() )
endfunction
function Trig_Omega_Dropship_death_reminder_Func005002 takes nothing returns boolean
return GetBooleanOr( Trig_Omega_Dropship_death_reminder_Func005002001(), Trig_Omega_Dropship_death_reminder_Func005002002() )
endfunction
function Trig_Omega_Dropship_death_reminder_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nC04' ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Omega_Dropship_death_reminder_Func005001(), Trig_Omega_Dropship_death_reminder_Func005002() ) ) then
return false
endif
return true
endfunction
function Trig_Omega_Dropship_death_reminder_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call DisplayTimedTextToForce( GetPlayersAll(), 12.00, "TRIGSTR_228" )
endfunction
//===========================================================================
function InitTrig_Omega_Dropship_death_reminder takes nothing returns nothing
set gg_trg_Omega_Dropship_death_reminder = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Omega_Dropship_death_reminder, gg_rct_AlphaBase )
call TriggerAddCondition( gg_trg_Omega_Dropship_death_reminder, Condition( function Trig_Omega_Dropship_death_reminder_Conditions ) )
call TriggerAddAction( gg_trg_Omega_Dropship_death_reminder, function Trig_Omega_Dropship_death_reminder_Actions )
endfunction
function Trig_SHQ_Under_Construction_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructingStructure()) == 'hC16' ) ) then
return false
endif
return true
endfunction
function Trig_SHQ_Under_Construction_Actions takes nothing returns nothing
call GroupAddUnitSimple( GetConstructingStructure(), udg_UnderConstruction )
endfunction
//===========================================================================
function InitTrig_SHQ_Under_Construction takes nothing returns nothing
set gg_trg_SHQ_Under_Construction = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_SHQ_Under_Construction, Player(1), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_SHQ_Under_Construction, Player(2), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_SHQ_Under_Construction, Player(3), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_SHQ_Under_Construction, Player(4), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_SHQ_Under_Construction, Player(5), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_SHQ_Under_Construction, Player(6), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_SHQ_Under_Construction, Player(7), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_SHQ_Under_Construction, Player(8), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerAddCondition( gg_trg_SHQ_Under_Construction, Condition( function Trig_SHQ_Under_Construction_Conditions ) )
call TriggerAddAction( gg_trg_SHQ_Under_Construction, function Trig_SHQ_Under_Construction_Actions )
endfunction
function Trig_LR_Under_Construction_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructingStructure()) == 'hC05' ) ) then
return false
endif
return true
endfunction
function Trig_LR_Under_Construction_Actions takes nothing returns nothing
call GroupAddUnitSimple( GetConstructingStructure(), udg_UnderConstruction )
endfunction
//===========================================================================
function InitTrig_LR_Under_Construction takes nothing returns nothing
set gg_trg_LR_Under_Construction = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LR_Under_Construction, Player(1), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LR_Under_Construction, Player(2), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LR_Under_Construction, Player(3), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LR_Under_Construction, Player(4), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LR_Under_Construction, Player(5), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LR_Under_Construction, Player(6), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LR_Under_Construction, Player(7), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_LR_Under_Construction, Player(8), EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerAddCondition( gg_trg_LR_Under_Construction, Condition( function Trig_LR_Under_Construction_Conditions ) )
call TriggerAddAction( gg_trg_LR_Under_Construction, function Trig_LR_Under_Construction_Actions )
endfunction
function Trig_Add_Supply_Headquarters_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hC16' ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetConstructedStructure(), udg_UnderConstruction) == true ) ) then
return false
endif
return true
endfunction
function Trig_Add_Supply_Headquarters_Func001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(1) )
endfunction
function Trig_Add_Supply_Headquarters_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(2) )
endfunction
function Trig_Add_Supply_Headquarters_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(3) )
endfunction
function Trig_Add_Supply_Headquarters_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(4) )
endfunction
function Trig_Add_Supply_Headquarters_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(5) )
endfunction
function Trig_Add_Supply_Headquarters_Func006001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(6) )
endfunction
function Trig_Add_Supply_Headquarters_Func007001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(7) )
endfunction
function Trig_Add_Supply_Headquarters_Func008001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(8) )
endfunction
function Trig_Add_Supply_Headquarters_Actions takes nothing returns nothing
if ( Trig_Add_Supply_Headquarters_Func001001() ) then
set udg_SupplyHeadquarters[2] = ( udg_SupplyHeadquarters[2] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Supply_Headquarters_Func002001() ) then
set udg_SupplyHeadquarters[3] = ( udg_SupplyHeadquarters[3] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Supply_Headquarters_Func003001() ) then
set udg_SupplyHeadquarters[4] = ( udg_SupplyHeadquarters[4] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Supply_Headquarters_Func004001() ) then
set udg_SupplyHeadquarters[5] = ( udg_SupplyHeadquarters[5] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Supply_Headquarters_Func005001() ) then
set udg_SupplyHeadquarters[6] = ( udg_SupplyHeadquarters[6] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Supply_Headquarters_Func006001() ) then
set udg_SupplyHeadquarters[7] = ( udg_SupplyHeadquarters[7] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Supply_Headquarters_Func007001() ) then
set udg_SupplyHeadquarters[8] = ( udg_SupplyHeadquarters[8] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Supply_Headquarters_Func008001() ) then
set udg_SupplyHeadquarters[9] = ( udg_SupplyHeadquarters[9] + 1 )
else
call DoNothing( )
endif
call GroupRemoveUnitSimple( GetConstructedStructure(), udg_UnderConstruction )
endfunction
//===========================================================================
function InitTrig_Add_Supply_Headquarters takes nothing returns nothing
set gg_trg_Add_Supply_Headquarters = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Supply_Headquarters, Player(1), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Supply_Headquarters, Player(2), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Supply_Headquarters, Player(3), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Supply_Headquarters, Player(4), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Supply_Headquarters, Player(5), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Supply_Headquarters, Player(6), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Supply_Headquarters, Player(7), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Supply_Headquarters, Player(8), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddCondition( gg_trg_Add_Supply_Headquarters, Condition( function Trig_Add_Supply_Headquarters_Conditions ) )
call TriggerAddAction( gg_trg_Add_Supply_Headquarters, function Trig_Add_Supply_Headquarters_Actions )
endfunction
function Trig_Subtract_Supply_Headquarters_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hC16' ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetDyingUnit(), udg_UnderConstruction) == false ) ) then
return false
endif
return true
endfunction
function Trig_Subtract_Supply_Headquarters_Func001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(1) )
endfunction
function Trig_Subtract_Supply_Headquarters_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(2) )
endfunction
function Trig_Subtract_Supply_Headquarters_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(3) )
endfunction
function Trig_Subtract_Supply_Headquarters_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(4) )
endfunction
function Trig_Subtract_Supply_Headquarters_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(5) )
endfunction
function Trig_Subtract_Supply_Headquarters_Func006001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(6) )
endfunction
function Trig_Subtract_Supply_Headquarters_Func007001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(7) )
endfunction
function Trig_Subtract_Supply_Headquarters_Func008001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(8) )
endfunction
function Trig_Subtract_Supply_Headquarters_Actions takes nothing returns nothing
if ( Trig_Subtract_Supply_Headquarters_Func001001() ) then
set udg_SupplyHeadquarters[2] = ( udg_SupplyHeadquarters[2] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Supply_Headquarters_Func002001() ) then
set udg_SupplyHeadquarters[3] = ( udg_SupplyHeadquarters[3] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Supply_Headquarters_Func003001() ) then
set udg_SupplyHeadquarters[4] = ( udg_SupplyHeadquarters[4] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Supply_Headquarters_Func004001() ) then
set udg_SupplyHeadquarters[5] = ( udg_SupplyHeadquarters[5] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Supply_Headquarters_Func005001() ) then
set udg_SupplyHeadquarters[6] = ( udg_SupplyHeadquarters[6] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Supply_Headquarters_Func006001() ) then
set udg_SupplyHeadquarters[7] = ( udg_SupplyHeadquarters[7] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Supply_Headquarters_Func007001() ) then
set udg_SupplyHeadquarters[8] = ( udg_SupplyHeadquarters[8] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Supply_Headquarters_Func008001() ) then
set udg_SupplyHeadquarters[9] = ( udg_SupplyHeadquarters[9] - 1 )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Subtract_Supply_Headquarters takes nothing returns nothing
set gg_trg_Subtract_Supply_Headquarters = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Supply_Headquarters, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Supply_Headquarters, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Supply_Headquarters, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Supply_Headquarters, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Supply_Headquarters, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Supply_Headquarters, Player(6), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Supply_Headquarters, Player(7), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Supply_Headquarters, Player(8), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Subtract_Supply_Headquarters, Condition( function Trig_Subtract_Supply_Headquarters_Conditions ) )
call TriggerAddAction( gg_trg_Subtract_Supply_Headquarters, function Trig_Subtract_Supply_Headquarters_Actions )
endfunction
function Trig_Add_Lumber_Refinery_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hC05' ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetConstructedStructure(), udg_UnderConstruction) == true ) ) then
return false
endif
return true
endfunction
function Trig_Add_Lumber_Refinery_Func001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(1) )
endfunction
function Trig_Add_Lumber_Refinery_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(2) )
endfunction
function Trig_Add_Lumber_Refinery_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(3) )
endfunction
function Trig_Add_Lumber_Refinery_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(4) )
endfunction
function Trig_Add_Lumber_Refinery_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(5) )
endfunction
function Trig_Add_Lumber_Refinery_Func006001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(6) )
endfunction
function Trig_Add_Lumber_Refinery_Func007001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(7) )
endfunction
function Trig_Add_Lumber_Refinery_Func008001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(8) )
endfunction
function Trig_Add_Lumber_Refinery_Actions takes nothing returns nothing
if ( Trig_Add_Lumber_Refinery_Func001001() ) then
set udg_LumberRefinery[2] = ( udg_LumberRefinery[2] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Lumber_Refinery_Func002001() ) then
set udg_LumberRefinery[3] = ( udg_LumberRefinery[3] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Lumber_Refinery_Func003001() ) then
set udg_LumberRefinery[4] = ( udg_LumberRefinery[4] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Lumber_Refinery_Func004001() ) then
set udg_LumberRefinery[5] = ( udg_LumberRefinery[5] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Lumber_Refinery_Func005001() ) then
set udg_LumberRefinery[6] = ( udg_LumberRefinery[6] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Lumber_Refinery_Func006001() ) then
set udg_LumberRefinery[7] = ( udg_LumberRefinery[7] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Lumber_Refinery_Func007001() ) then
set udg_LumberRefinery[8] = ( udg_LumberRefinery[8] + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Lumber_Refinery_Func008001() ) then
set udg_LumberRefinery[9] = ( udg_LumberRefinery[9] + 1 )
else
call DoNothing( )
endif
call GroupRemoveUnitSimple( GetConstructedStructure(), udg_UnderConstruction )
endfunction
//===========================================================================
function InitTrig_Add_Lumber_Refinery takes nothing returns nothing
set gg_trg_Add_Lumber_Refinery = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Lumber_Refinery, Player(1), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Lumber_Refinery, Player(2), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Lumber_Refinery, Player(3), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Lumber_Refinery, Player(4), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Lumber_Refinery, Player(5), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Lumber_Refinery, Player(6), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Lumber_Refinery, Player(7), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Lumber_Refinery, Player(8), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddCondition( gg_trg_Add_Lumber_Refinery, Condition( function Trig_Add_Lumber_Refinery_Conditions ) )
call TriggerAddAction( gg_trg_Add_Lumber_Refinery, function Trig_Add_Lumber_Refinery_Actions )
endfunction
function Trig_Subtract_Lumber_Refinery_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'hC05' ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetDyingUnit(), udg_UnderConstruction) == false ) ) then
return false
endif
return true
endfunction
function Trig_Subtract_Lumber_Refinery_Func001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(1) )
endfunction
function Trig_Subtract_Lumber_Refinery_Func002001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(2) )
endfunction
function Trig_Subtract_Lumber_Refinery_Func003001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(3) )
endfunction
function Trig_Subtract_Lumber_Refinery_Func004001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(4) )
endfunction
function Trig_Subtract_Lumber_Refinery_Func005001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(5) )
endfunction
function Trig_Subtract_Lumber_Refinery_Func006001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(6) )
endfunction
function Trig_Subtract_Lumber_Refinery_Func007001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(7) )
endfunction
function Trig_Subtract_Lumber_Refinery_Func008001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == Player(8) )
endfunction
function Trig_Subtract_Lumber_Refinery_Actions takes nothing returns nothing
if ( Trig_Subtract_Lumber_Refinery_Func001001() ) then
set udg_LumberRefinery[2] = ( udg_LumberRefinery[2] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Lumber_Refinery_Func002001() ) then
set udg_LumberRefinery[3] = ( udg_LumberRefinery[3] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Lumber_Refinery_Func003001() ) then
set udg_LumberRefinery[4] = ( udg_LumberRefinery[4] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Lumber_Refinery_Func004001() ) then
set udg_LumberRefinery[5] = ( udg_LumberRefinery[5] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Lumber_Refinery_Func005001() ) then
set udg_LumberRefinery[6] = ( udg_LumberRefinery[6] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Lumber_Refinery_Func006001() ) then
set udg_LumberRefinery[7] = ( udg_LumberRefinery[7] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Lumber_Refinery_Func007001() ) then
set udg_LumberRefinery[8] = ( udg_LumberRefinery[8] - 1 )
else
call DoNothing( )
endif
if ( Trig_Subtract_Lumber_Refinery_Func008001() ) then
set udg_LumberRefinery[9] = ( udg_LumberRefinery[9] - 1 )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Subtract_Lumber_Refinery takes nothing returns nothing
set gg_trg_Subtract_Lumber_Refinery = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Lumber_Refinery, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Lumber_Refinery, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Lumber_Refinery, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Lumber_Refinery, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Lumber_Refinery, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Lumber_Refinery, Player(6), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Lumber_Refinery, Player(7), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Lumber_Refinery, Player(8), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Subtract_Lumber_Refinery, Condition( function Trig_Subtract_Lumber_Refinery_Conditions ) )
call TriggerAddAction( gg_trg_Subtract_Lumber_Refinery, function Trig_Subtract_Lumber_Refinery_Actions )
endfunction
function Trig_Radar_Ability_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC23' ) ) then
return false
endif
return true
endfunction
function Trig_Radar_Ability_Actions takes nothing returns nothing
call ReplaceUnitBJ( GetTriggerUnit(), 'eC19', bj_UNIT_STATE_METHOD_RELATIVE )
endfunction
//===========================================================================
function InitTrig_Radar_Ability takes nothing returns nothing
set gg_trg_Radar_Ability = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Radar_Ability, Player(1), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Radar_Ability, Player(2), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Radar_Ability, Player(3), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Radar_Ability, Player(4), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Radar_Ability, Player(5), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Radar_Ability, Player(6), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Radar_Ability, Player(7), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Radar_Ability, Player(8), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddCondition( gg_trg_Radar_Ability, Condition( function Trig_Radar_Ability_Conditions ) )
call TriggerAddAction( gg_trg_Radar_Ability, function Trig_Radar_Ability_Actions )
endfunction
function Trig_Attack_Target_Func005001 takes nothing returns boolean
return ( GetIssuedOrderIdBJ() == String2OrderIdBJ("stop") )
endfunction
function Trig_Attack_Target_Func006003002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetTriggerUnit()) == udg_Users[GetForLoopIndexA()] )
endfunction
function Trig_Attack_Target_Func006003002001002 takes nothing returns boolean
return ( GetIssuedOrderIdBJ() == String2OrderIdBJ("stop") )
endfunction
function Trig_Attack_Target_Func006003002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Attack_Target_Func006003002001001(), Trig_Attack_Target_Func006003002001002() )
endfunction
function Trig_Attack_Target_Func006003002 takes nothing returns nothing
if ( Trig_Attack_Target_Func006003002001() ) then
call KillUnit( GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_Attack_Target_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 200
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call IssueTargetOrderBJ( udg_TempMissile[GetForLoopIndexA()], "attack", udg_TempTarget[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 200
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_TempMissile[GetForLoopIndexA()] = null
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 200
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_TempTarget[GetForLoopIndexA()] = null
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_MissileIndex = 0
if ( Trig_Attack_Target_Func005001() ) then
call KillUnit( GetTriggerUnit() )
else
call DoNothing( )
endif
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 9
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ForGroup( GetUnitsOfTypeIdAll('eC17'), function Trig_Attack_Target_Func006003002 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Attack_Target takes nothing returns nothing
set gg_trg_Attack_Target = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Attack_Target, 1.00 )
call TriggerAddAction( gg_trg_Attack_Target, function Trig_Attack_Target_Actions )
endfunction
function Trig_Missile_Launches_AlphaGround_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC17' ) ) then
return false
endif
return true
endfunction
function Trig_Missile_Launches_AlphaGround_Actions takes nothing returns nothing
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(0), GetOrderPointLoc(), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(0), true )
endfunction
//===========================================================================
function InitTrig_Missile_Launches_AlphaGround takes nothing returns nothing
set gg_trg_Missile_Launches_AlphaGround = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_AlphaGround, Player(4), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_AlphaGround, Player(5), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_AlphaGround, Player(7), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_AlphaGround, Player(8), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_Missile_Launches_AlphaGround, Condition( function Trig_Missile_Launches_AlphaGround_Conditions ) )
call TriggerAddAction( gg_trg_Missile_Launches_AlphaGround, function Trig_Missile_Launches_AlphaGround_Actions )
endfunction
function Trig_Missile_Launches_AlphaBuild_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC17' ) ) then
return false
endif
return true
endfunction
function Trig_Missile_Launches_AlphaBuild_Actions takes nothing returns nothing
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(0), GetUnitLoc(GetOrderTargetUnit()), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(0), true )
endfunction
//===========================================================================
function InitTrig_Missile_Launches_AlphaBuild takes nothing returns nothing
set gg_trg_Missile_Launches_AlphaBuild = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_AlphaBuild, Player(4), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_AlphaBuild, Player(5), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_AlphaBuild, Player(7), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_AlphaBuild, Player(8), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_Missile_Launches_AlphaBuild, Condition( function Trig_Missile_Launches_AlphaBuild_Conditions ) )
call TriggerAddAction( gg_trg_Missile_Launches_AlphaBuild, function Trig_Missile_Launches_AlphaBuild_Actions )
endfunction
function Trig_Missile_Launches_OmegaGround_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC17' ) ) then
return false
endif
return true
endfunction
function Trig_Missile_Launches_OmegaGround_Actions takes nothing returns nothing
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(9), GetOrderPointLoc(), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(9), true )
endfunction
//===========================================================================
function InitTrig_Missile_Launches_OmegaGround takes nothing returns nothing
set gg_trg_Missile_Launches_OmegaGround = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_OmegaGround, Player(1), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_OmegaGround, Player(2), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_OmegaGround, Player(3), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_OmegaGround, Player(6), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_Missile_Launches_OmegaGround, Condition( function Trig_Missile_Launches_OmegaGround_Conditions ) )
call TriggerAddAction( gg_trg_Missile_Launches_OmegaGround, function Trig_Missile_Launches_OmegaGround_Actions )
endfunction
function Trig_Missile_Launches_OmegaBuild_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC17' ) ) then
return false
endif
return true
endfunction
function Trig_Missile_Launches_OmegaBuild_Actions takes nothing returns nothing
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(9), GetUnitLoc(GetOrderTargetUnit()), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(9), true )
endfunction
//===========================================================================
function InitTrig_Missile_Launches_OmegaBuild takes nothing returns nothing
set gg_trg_Missile_Launches_OmegaBuild = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_OmegaBuild, Player(1), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_OmegaBuild, Player(2), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_OmegaBuild, Player(3), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Missile_Launches_OmegaBuild, Player(6), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_Missile_Launches_OmegaBuild, Condition( function Trig_Missile_Launches_OmegaBuild_Conditions ) )
call TriggerAddAction( gg_trg_Missile_Launches_OmegaBuild, function Trig_Missile_Launches_OmegaBuild_Actions )
endfunction
function Trig_AdvMissile_Launches_AlphaGround_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC18' ) ) then
return false
endif
return true
endfunction
function Trig_AdvMissile_Launches_AlphaGround_Actions takes nothing returns nothing
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(0), GetOrderPointLoc(), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(0), true )
endfunction
//===========================================================================
function InitTrig_AdvMissile_Launches_AlphaGround takes nothing returns nothing
set gg_trg_AdvMissile_Launches_AlphaGround = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_AlphaGround, Player(4), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_AlphaGround, Player(5), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_AlphaGround, Player(7), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_AlphaGround, Player(8), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_AdvMissile_Launches_AlphaGround, Condition( function Trig_AdvMissile_Launches_AlphaGround_Conditions ) )
call TriggerAddAction( gg_trg_AdvMissile_Launches_AlphaGround, function Trig_AdvMissile_Launches_AlphaGround_Actions )
endfunction
function Trig_AdvMissile_Launches_AlphaBuild_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC18' ) ) then
return false
endif
return true
endfunction
function Trig_AdvMissile_Launches_AlphaBuild_Actions takes nothing returns nothing
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(0), GetUnitLoc(GetOrderTargetUnit()), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(0), true )
endfunction
//===========================================================================
function InitTrig_AdvMissile_Launches_AlphaBuild takes nothing returns nothing
set gg_trg_AdvMissile_Launches_AlphaBuild = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_AlphaBuild, Player(4), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_AlphaBuild, Player(5), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_AlphaBuild, Player(7), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_AlphaBuild, Player(8), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_AdvMissile_Launches_AlphaBuild, Condition( function Trig_AdvMissile_Launches_AlphaBuild_Conditions ) )
call TriggerAddAction( gg_trg_AdvMissile_Launches_AlphaBuild, function Trig_AdvMissile_Launches_AlphaBuild_Actions )
endfunction
function Trig_AdvMissile_Launches_OmegaGround_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC18' ) ) then
return false
endif
return true
endfunction
function Trig_AdvMissile_Launches_OmegaGround_Actions takes nothing returns nothing
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(9), GetOrderPointLoc(), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(9), true )
endfunction
//===========================================================================
function InitTrig_AdvMissile_Launches_OmegaGround takes nothing returns nothing
set gg_trg_AdvMissile_Launches_OmegaGround = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_OmegaGround, Player(1), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_OmegaGround, Player(2), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_OmegaGround, Player(3), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_OmegaGround, Player(6), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_AdvMissile_Launches_OmegaGround, Condition( function Trig_AdvMissile_Launches_OmegaGround_Conditions ) )
call TriggerAddAction( gg_trg_AdvMissile_Launches_OmegaGround, function Trig_AdvMissile_Launches_OmegaGround_Actions )
endfunction
function Trig_AdvMissile_Launches_OmegaBuild_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC18' ) ) then
return false
endif
return true
endfunction
function Trig_AdvMissile_Launches_OmegaBuild_Actions takes nothing returns nothing
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(9), GetUnitLoc(GetOrderTargetUnit()), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(9), true )
endfunction
//===========================================================================
function InitTrig_AdvMissile_Launches_OmegaBuild takes nothing returns nothing
set gg_trg_AdvMissile_Launches_OmegaBuild = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_OmegaBuild, Player(1), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_OmegaBuild, Player(2), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_OmegaBuild, Player(3), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_AdvMissile_Launches_OmegaBuild, Player(6), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_AdvMissile_Launches_OmegaBuild, Condition( function Trig_AdvMissile_Launches_OmegaBuild_Conditions ) )
call TriggerAddAction( gg_trg_AdvMissile_Launches_OmegaBuild, function Trig_AdvMissile_Launches_OmegaBuild_Actions )
endfunction
function Trig_ICBM_Launches_AlphaGround_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC21' ) ) then
return false
endif
return true
endfunction
function Trig_ICBM_Launches_AlphaGround_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_153" )
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(0), GetOrderPointLoc(), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(0), true )
endfunction
//===========================================================================
function InitTrig_ICBM_Launches_AlphaGround takes nothing returns nothing
set gg_trg_ICBM_Launches_AlphaGround = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_AlphaGround, Player(4), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_AlphaGround, Player(5), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_AlphaGround, Player(7), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_AlphaGround, Player(8), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_ICBM_Launches_AlphaGround, Condition( function Trig_ICBM_Launches_AlphaGround_Conditions ) )
call TriggerAddAction( gg_trg_ICBM_Launches_AlphaGround, function Trig_ICBM_Launches_AlphaGround_Actions )
endfunction
function Trig_ICBM_Launches_AlphaBuild_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC21' ) ) then
return false
endif
return true
endfunction
function Trig_ICBM_Launches_AlphaBuild_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_164" )
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(0), GetUnitLoc(GetOrderTargetUnit()), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(0), true )
endfunction
//===========================================================================
function InitTrig_ICBM_Launches_AlphaBuild takes nothing returns nothing
set gg_trg_ICBM_Launches_AlphaBuild = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_AlphaBuild, Player(4), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_AlphaBuild, Player(5), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_AlphaBuild, Player(7), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_AlphaBuild, Player(8), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_ICBM_Launches_AlphaBuild, Condition( function Trig_ICBM_Launches_AlphaBuild_Conditions ) )
call TriggerAddAction( gg_trg_ICBM_Launches_AlphaBuild, function Trig_ICBM_Launches_AlphaBuild_Actions )
endfunction
function Trig_ICBM_Launches_OmegaGround_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC21' ) ) then
return false
endif
return true
endfunction
function Trig_ICBM_Launches_OmegaGround_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_165" )
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(9), GetOrderPointLoc(), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(9), true )
endfunction
//===========================================================================
function InitTrig_ICBM_Launches_OmegaGround takes nothing returns nothing
set gg_trg_ICBM_Launches_OmegaGround = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_OmegaGround, Player(1), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_OmegaGround, Player(2), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_OmegaGround, Player(3), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_OmegaGround, Player(6), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_ICBM_Launches_OmegaGround, Condition( function Trig_ICBM_Launches_OmegaGround_Conditions ) )
call TriggerAddAction( gg_trg_ICBM_Launches_OmegaGround, function Trig_ICBM_Launches_OmegaGround_Actions )
endfunction
function Trig_ICBM_Launches_OmegaBuild_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC21' ) ) then
return false
endif
return true
endfunction
function Trig_ICBM_Launches_OmegaBuild_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_166" )
set udg_MissileIndex = ( udg_MissileIndex + 1 )
set udg_TempMissile[udg_MissileIndex] = GetTriggerUnit()
call CreateNUnitsAtLoc( 1, 'uC11', Player(9), GetUnitLoc(GetOrderTargetUnit()), bj_UNIT_FACING )
set udg_TempTarget[udg_MissileIndex] = GetLastCreatedUnit()
call SetUnitPathing( udg_TempMissile[udg_MissileIndex], false )
call SetUnitPathing( udg_TempTarget[udg_MissileIndex], false )
call SetUnitOwner( GetTriggerUnit(), Player(9), true )
endfunction
//===========================================================================
function InitTrig_ICBM_Launches_OmegaBuild takes nothing returns nothing
set gg_trg_ICBM_Launches_OmegaBuild = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_OmegaBuild, Player(1), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_OmegaBuild, Player(2), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_OmegaBuild, Player(3), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_ICBM_Launches_OmegaBuild, Player(6), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_ICBM_Launches_OmegaBuild, Condition( function Trig_ICBM_Launches_OmegaBuild_Conditions ) )
call TriggerAddAction( gg_trg_ICBM_Launches_OmegaBuild, function Trig_ICBM_Launches_OmegaBuild_Actions )
endfunction
function Trig_Detonate_Missiles_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'uC11' ) ) then
return false
endif
return true
endfunction
function Trig_Detonate_Missiles_Actions takes nothing returns nothing
call TriggerSleepAction( 0.10 )
call KillUnit( GetAttacker() )
call RemoveUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Detonate_Missiles takes nothing returns nothing
set gg_trg_Detonate_Missiles = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Detonate_Missiles, Player(0), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Detonate_Missiles, Player(9), EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Detonate_Missiles, Condition( function Trig_Detonate_Missiles_Conditions ) )
call TriggerAddAction( gg_trg_Detonate_Missiles, function Trig_Detonate_Missiles_Actions )
endfunction
function Trig_Detonate_Missiles_not_aimed_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC17' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Detonate_Missiles_not_aimed_Actions takes nothing returns nothing
call KillUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Detonate_Missiles_not_aimed takes nothing returns nothing
set gg_trg_Detonate_Missiles_not_aimed = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_Missiles_not_aimed, Player(1), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_Missiles_not_aimed, Player(2), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_Missiles_not_aimed, Player(3), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_Missiles_not_aimed, Player(4), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_Missiles_not_aimed, Player(5), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_Missiles_not_aimed, Player(6), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_Missiles_not_aimed, Player(7), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_Missiles_not_aimed, Player(8), true )
call TriggerAddCondition( gg_trg_Detonate_Missiles_not_aimed, Condition( function Trig_Detonate_Missiles_not_aimed_Conditions ) )
call TriggerAddAction( gg_trg_Detonate_Missiles_not_aimed, function Trig_Detonate_Missiles_not_aimed_Actions )
endfunction
function Trig_Detonate_AdvMissiles_not_aimed_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC18' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Detonate_AdvMissiles_not_aimed_Actions takes nothing returns nothing
call KillUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Detonate_AdvMissiles_not_aimed takes nothing returns nothing
set gg_trg_Detonate_AdvMissiles_not_aimed = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_AdvMissiles_not_aimed, Player(1), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_AdvMissiles_not_aimed, Player(2), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_AdvMissiles_not_aimed, Player(3), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_AdvMissiles_not_aimed, Player(4), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_AdvMissiles_not_aimed, Player(5), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_AdvMissiles_not_aimed, Player(6), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_AdvMissiles_not_aimed, Player(7), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_AdvMissiles_not_aimed, Player(8), true )
call TriggerAddCondition( gg_trg_Detonate_AdvMissiles_not_aimed, Condition( function Trig_Detonate_AdvMissiles_not_aimed_Conditions ) )
call TriggerAddAction( gg_trg_Detonate_AdvMissiles_not_aimed, function Trig_Detonate_AdvMissiles_not_aimed_Actions )
endfunction
function Trig_Detonate_ICBM_not_aimed_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'eC21' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Detonate_ICBM_not_aimed_Actions takes nothing returns nothing
call KillUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Detonate_ICBM_not_aimed takes nothing returns nothing
set gg_trg_Detonate_ICBM_not_aimed = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_ICBM_not_aimed, Player(1), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_ICBM_not_aimed, Player(2), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_ICBM_not_aimed, Player(3), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_ICBM_not_aimed, Player(4), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_ICBM_not_aimed, Player(5), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_ICBM_not_aimed, Player(6), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_ICBM_not_aimed, Player(7), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_Detonate_ICBM_not_aimed, Player(8), true )
call TriggerAddCondition( gg_trg_Detonate_ICBM_not_aimed, Condition( function Trig_Detonate_ICBM_not_aimed_Conditions ) )
call TriggerAddAction( gg_trg_Detonate_ICBM_not_aimed, function Trig_Detonate_ICBM_not_aimed_Actions )
endfunction
function Trig_Add_Bases_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetConstructedStructure()) == 'oC00' ) ) then
return false
endif
return true
endfunction
function Trig_Add_Bases_Func001001 takes nothing returns boolean
return ( IsUnitAlly(GetTriggerUnit(), Player(0)) == true )
endfunction
function Trig_Add_Bases_Func002001 takes nothing returns boolean
return ( IsUnitAlly(GetTriggerUnit(), Player(9)) == true )
endfunction
function Trig_Add_Bases_Actions takes nothing returns nothing
if ( Trig_Add_Bases_Func001001() ) then
set udg_AlphaBases = ( udg_AlphaBases + 1 )
else
call DoNothing( )
endif
if ( Trig_Add_Bases_Func002001() ) then
set udg_OmegaBases = ( udg_OmegaBases + 1 )
else
call DoNothing( )
endif
call LeaderboardSetPlayerItemValueBJ( Player(0), udg_BaseLeaderboard, udg_AlphaBases )
call LeaderboardSetPlayerItemValueBJ( Player(9), udg_BaseLeaderboard, udg_OmegaBases )
endfunction
//===========================================================================
function InitTrig_Add_Bases takes nothing returns nothing
set gg_trg_Add_Bases = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Bases, Player(1), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Bases, Player(2), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Bases, Player(3), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Bases, Player(4), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Bases, Player(5), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Bases, Player(6), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Bases, Player(7), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Add_Bases, Player(8), EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddCondition( gg_trg_Add_Bases, Condition( function Trig_Add_Bases_Conditions ) )
call TriggerAddAction( gg_trg_Add_Bases, function Trig_Add_Bases_Actions )
endfunction
function Trig_Subtract_Alpha_Bases_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'oC00' ) ) then
return false
endif
return true
endfunction
function Trig_Subtract_Alpha_Bases_Actions takes nothing returns nothing
set udg_AlphaBases = ( udg_AlphaBases - 1 )
call LeaderboardSetPlayerItemValueBJ( Player(0), udg_BaseLeaderboard, udg_AlphaBases )
call TriggerSleepAction( 2.00 )
call ConditionalTriggerExecute( gg_trg_Is_Alpha_Game_Over )
endfunction
//===========================================================================
function InitTrig_Subtract_Alpha_Bases takes nothing returns nothing
set gg_trg_Subtract_Alpha_Bases = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Alpha_Bases, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Alpha_Bases, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Alpha_Bases, Player(7), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Alpha_Bases, Player(8), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Subtract_Alpha_Bases, Condition( function Trig_Subtract_Alpha_Bases_Conditions ) )
call TriggerAddAction( gg_trg_Subtract_Alpha_Bases, function Trig_Subtract_Alpha_Bases_Actions )
endfunction
function Trig_Subtract_Omega_Bases_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'oC00' ) ) then
return false
endif
return true
endfunction
function Trig_Subtract_Omega_Bases_Actions takes nothing returns nothing
set udg_OmegaBases = ( udg_OmegaBases - 1 )
call LeaderboardSetPlayerItemValueBJ( Player(9), udg_BaseLeaderboard, udg_OmegaBases )
call TriggerSleepAction( 2.00 )
call ConditionalTriggerExecute( gg_trg_Is_Omega_Game_Over )
endfunction
//===========================================================================
function InitTrig_Subtract_Omega_Bases takes nothing returns nothing
set gg_trg_Subtract_Omega_Bases = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Omega_Bases, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Omega_Bases, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Omega_Bases, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Subtract_Omega_Bases, Player(6), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Subtract_Omega_Bases, Condition( function Trig_Subtract_Omega_Bases_Conditions ) )
call TriggerAddAction( gg_trg_Subtract_Omega_Bases, function Trig_Subtract_Omega_Bases_Actions )
endfunction
function Trig_Is_Omega_Game_Over_Conditions takes nothing returns boolean
if ( not ( udg_OmegaBases == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Is_Omega_Game_Over_Func007002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_OmegaStart, GetEnumPlayer(), 0 )
endfunction
function Trig_Is_Omega_Game_Over_Func010002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_OmegaMid1, GetEnumPlayer(), 9.00 )
endfunction
function Trig_Is_Omega_Game_Over_Func012002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Is_Omega_Game_Over_Func014002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_OmegaMid2, GetEnumPlayer(), 13.00 )
endfunction
function Trig_Is_Omega_Game_Over_Func016002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Is_Omega_Game_Over_Func018002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_OmegaEnd, GetEnumPlayer(), 10.00 )
endfunction
function Trig_Is_Omega_Game_Over_Func020002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Is_Omega_Game_Over_Func022002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Is_Omega_Game_Over_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Is_Alpha_Game_Over )
call DisableTrigger( gg_trg_Omega_default_win )
call DisableTrigger( gg_trg_Alpha_default_win )
call CinematicModeBJ( true, GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call SetUserControlForceOff( GetPlayersAll() )
call ForForce( GetPlayersAll(), function Trig_Is_Omega_Game_Over_Func007002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 2 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_246" )
call ForForce( GetPlayersAll(), function Trig_Is_Omega_Game_Over_Func010002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 7.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroup( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(1)), function Trig_Is_Omega_Game_Over_Func012002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForForce( GetPlayersAll(), function Trig_Is_Omega_Game_Over_Func014002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 6.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroup( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(2)), function Trig_Is_Omega_Game_Over_Func016002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 6.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForForce( GetPlayersAll(), function Trig_Is_Omega_Game_Over_Func018002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroup( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(3)), function Trig_Is_Omega_Game_Over_Func020002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 7.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroup( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(6)), function Trig_Is_Omega_Game_Over_Func022002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 3.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUserControlForceOn( GetPlayersAll() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CustomVictoryBJ( udg_AlphaTeam[GetForLoopIndexA()], true, true )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CustomDefeatBJ( udg_OmegaTeam[GetForLoopIndexA()], "TRIGSTR_116" )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Is_Omega_Game_Over takes nothing returns nothing
set gg_trg_Is_Omega_Game_Over = CreateTrigger( )
call TriggerAddCondition( gg_trg_Is_Omega_Game_Over, Condition( function Trig_Is_Omega_Game_Over_Conditions ) )
call TriggerAddAction( gg_trg_Is_Omega_Game_Over, function Trig_Is_Omega_Game_Over_Actions )
endfunction
function Trig_Is_Alpha_Game_Over_Conditions takes nothing returns boolean
if ( not ( udg_AlphaBases == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Is_Alpha_Game_Over_Func007002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_AlphaStart, GetEnumPlayer(), 0 )
endfunction
function Trig_Is_Alpha_Game_Over_Func010002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_AlphaMid1, GetEnumPlayer(), 9.00 )
endfunction
function Trig_Is_Alpha_Game_Over_Func012002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Is_Alpha_Game_Over_Func014002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_AlphaMid2, GetEnumPlayer(), 13.00 )
endfunction
function Trig_Is_Alpha_Game_Over_Func016002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Is_Alpha_Game_Over_Func018002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_AlphaEnd, GetEnumPlayer(), 10.00 )
endfunction
function Trig_Is_Alpha_Game_Over_Func020002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Is_Alpha_Game_Over_Func022002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Is_Alpha_Game_Over_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Is_Omega_Game_Over )
call DisableTrigger( gg_trg_Omega_default_win )
call DisableTrigger( gg_trg_Alpha_default_win )
call CinematicModeBJ( true, GetPlayersAll() )
call ShowInterfaceForceOff( GetPlayersAll(), 2 )
call SetUserControlForceOff( GetPlayersAll() )
call ForForce( GetPlayersAll(), function Trig_Is_Alpha_Game_Over_Func007002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 2 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisplayTimedTextToForce( GetPlayersAll(), 30.00, "TRIGSTR_245" )
call ForForce( GetPlayersAll(), function Trig_Is_Alpha_Game_Over_Func010002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 7.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroup( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(4)), function Trig_Is_Alpha_Game_Over_Func012002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForForce( GetPlayersAll(), function Trig_Is_Alpha_Game_Over_Func014002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 6.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroup( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(5)), function Trig_Is_Alpha_Game_Over_Func016002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 6.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForForce( GetPlayersAll(), function Trig_Is_Alpha_Game_Over_Func018002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroup( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(7)), function Trig_Is_Alpha_Game_Over_Func020002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 7.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroup( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(8)), function Trig_Is_Alpha_Game_Over_Func022002 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 3.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUserControlForceOn( GetPlayersAll() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CustomVictoryBJ( udg_OmegaTeam[GetForLoopIndexA()], true, true )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CustomDefeatBJ( udg_AlphaTeam[GetForLoopIndexA()], "TRIGSTR_107" )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Is_Alpha_Game_Over takes nothing returns nothing
set gg_trg_Is_Alpha_Game_Over = CreateTrigger( )
call TriggerAddCondition( gg_trg_Is_Alpha_Game_Over, Condition( function Trig_Is_Alpha_Game_Over_Conditions ) )
call TriggerAddAction( gg_trg_Is_Alpha_Game_Over, function Trig_Is_Alpha_Game_Over_Actions )
endfunction
function Trig_Alpha_default_win_Func008001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_EMPTY )
endfunction
function Trig_Alpha_default_win_Func008002 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Alpha_default_win_Func009001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_EMPTY )
endfunction
function Trig_Alpha_default_win_Func009002 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Alpha_default_win_Func010001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_EMPTY )
endfunction
function Trig_Alpha_default_win_Func010002 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Alpha_default_win_Func011001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_EMPTY )
endfunction
function Trig_Alpha_default_win_Func011002 takes nothing returns boolean
return ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Alpha_default_win_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_Alpha_default_win_Func008001(), Trig_Alpha_default_win_Func008002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Alpha_default_win_Func009001(), Trig_Alpha_default_win_Func009002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Alpha_default_win_Func010001(), Trig_Alpha_default_win_Func010002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Alpha_default_win_Func011001(), Trig_Alpha_default_win_Func011002() ) ) then
return false
endif
return true
endfunction
function Trig_Alpha_default_win_Func001001 takes nothing returns boolean
return ( IsTriggerEnabled(gg_trg_Alpha_default_win) == true )
endfunction
function Trig_Alpha_default_win_Actions takes nothing returns nothing
if ( Trig_Alpha_default_win_Func001001() ) then
call DoNothing( )
else
return
endif
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Omega_default_win )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_230" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 8.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CustomVictoryBJ( udg_AlphaTeam[GetForLoopIndexA()], true, true )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CustomDefeatBJ( udg_OmegaTeam[GetForLoopIndexA()], "TRIGSTR_232" )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Alpha_default_win takes nothing returns nothing
set gg_trg_Alpha_default_win = CreateTrigger( )
call TriggerAddCondition( gg_trg_Alpha_default_win, Condition( function Trig_Alpha_default_win_Conditions ) )
call TriggerAddAction( gg_trg_Alpha_default_win, function Trig_Alpha_default_win_Actions )
endfunction
function Trig_Omega_default_win_Func002001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_EMPTY )
endfunction
function Trig_Omega_default_win_Func002002 takes nothing returns boolean
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Omega_default_win_Func003001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_EMPTY )
endfunction
function Trig_Omega_default_win_Func003002 takes nothing returns boolean
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Omega_default_win_Func004001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_EMPTY )
endfunction
function Trig_Omega_default_win_Func004002 takes nothing returns boolean
return ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Omega_default_win_Func005001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_EMPTY )
endfunction
function Trig_Omega_default_win_Func005002 takes nothing returns boolean
return ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_Omega_default_win_Conditions takes nothing returns boolean
if ( not GetBooleanOr( Trig_Omega_default_win_Func002001(), Trig_Omega_default_win_Func002002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Omega_default_win_Func003001(), Trig_Omega_default_win_Func003002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Omega_default_win_Func004001(), Trig_Omega_default_win_Func004002() ) ) then
return false
endif
if ( not GetBooleanOr( Trig_Omega_default_win_Func005001(), Trig_Omega_default_win_Func005002() ) ) then
return false
endif
return true
endfunction
function Trig_Omega_default_win_Func001001 takes nothing returns boolean
return ( IsTriggerEnabled(gg_trg_Omega_default_win) == true )
endfunction
function Trig_Omega_default_win_Actions takes nothing returns nothing
if ( Trig_Omega_default_win_Func001001() ) then
call DoNothing( )
else
return
endif
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Alpha_default_win )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_234" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = udg_NumPlayers
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 8.00 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CustomVictoryBJ( udg_OmegaTeam[GetForLoopIndexA()], true, true )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CustomDefeatBJ( udg_AlphaTeam[GetForLoopIndexA()], "TRIGSTR_236" )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Omega_default_win takes nothing returns nothing
set gg_trg_Omega_default_win = CreateTrigger( )
call TriggerAddCondition( gg_trg_Omega_default_win, Condition( function Trig_Omega_default_win_Conditions ) )
call TriggerAddAction( gg_trg_Omega_default_win, function Trig_Omega_default_win_Actions )
endfunction
function Trig_Player_2_Leaves_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_Player_2_Leaves_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ShareEverythingWithTeam( Player(1) )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( udg_UserNames[2] + " has left the game" ) )
set udg_NumPlayers = ( udg_NumPlayers - 1 )
call ConditionalTriggerExecute( gg_trg_Alpha_default_win )
endfunction
//===========================================================================
function InitTrig_Player_2_Leaves takes nothing returns nothing
set gg_trg_Player_2_Leaves = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_2_Leaves, 2 )
call TriggerAddCondition( gg_trg_Player_2_Leaves, Condition( function Trig_Player_2_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Player_2_Leaves, function Trig_Player_2_Leaves_Actions )
endfunction
function Trig_Player_3_Leaves_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_Player_3_Leaves_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ShareEverythingWithTeam( Player(2) )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( udg_UserNames[3] + " has left the game" ) )
set udg_NumPlayers = ( udg_NumPlayers - 1 )
call ConditionalTriggerExecute( gg_trg_Alpha_default_win )
endfunction
//===========================================================================
function InitTrig_Player_3_Leaves takes nothing returns nothing
set gg_trg_Player_3_Leaves = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_3_Leaves, 2 )
call TriggerAddCondition( gg_trg_Player_3_Leaves, Condition( function Trig_Player_3_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Player_3_Leaves, function Trig_Player_3_Leaves_Actions )
endfunction
function Trig_Player_4_Leaves_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_Player_4_Leaves_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ShareEverythingWithTeam( Player(3) )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( udg_UserNames[4] + " has left the game" ) )
set udg_NumPlayers = ( udg_NumPlayers - 1 )
call ConditionalTriggerExecute( gg_trg_Alpha_default_win )
endfunction
//===========================================================================
function InitTrig_Player_4_Leaves takes nothing returns nothing
set gg_trg_Player_4_Leaves = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_4_Leaves, 2 )
call TriggerAddCondition( gg_trg_Player_4_Leaves, Condition( function Trig_Player_4_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Player_4_Leaves, function Trig_Player_4_Leaves_Actions )
endfunction
function Trig_Player_5_Leaves_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_Player_5_Leaves_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ShareEverythingWithTeam( Player(4) )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( udg_UserNames[5] + " has left the game" ) )
set udg_NumPlayers = ( udg_NumPlayers - 1 )
call ConditionalTriggerExecute( gg_trg_Omega_default_win )
endfunction
//===========================================================================
function InitTrig_Player_5_Leaves takes nothing returns nothing
set gg_trg_Player_5_Leaves = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_5_Leaves, 2 )
call TriggerAddCondition( gg_trg_Player_5_Leaves, Condition( function Trig_Player_5_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Player_5_Leaves, function Trig_Player_5_Leaves_Actions )
endfunction
function Trig_Player_6_Leaves_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_Player_6_Leaves_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ShareEverythingWithTeam( Player(5) )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( udg_UserNames[6] + " has left the game" ) )
set udg_NumPlayers = ( udg_NumPlayers - 1 )
call ConditionalTriggerExecute( gg_trg_Omega_default_win )
endfunction
//===========================================================================
function InitTrig_Player_6_Leaves takes nothing returns nothing
set gg_trg_Player_6_Leaves = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_6_Leaves, 2 )
call TriggerAddCondition( gg_trg_Player_6_Leaves, Condition( function Trig_Player_6_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Player_6_Leaves, function Trig_Player_6_Leaves_Actions )
endfunction
function Trig_Player_7_Leaves_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_Player_7_Leaves_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ShareEverythingWithTeam( Player(6) )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( udg_UserNames[7] + " has left the game" ) )
set udg_NumPlayers = ( udg_NumPlayers - 1 )
call ConditionalTriggerExecute( gg_trg_Alpha_default_win )
endfunction
//===========================================================================
function InitTrig_Player_7_Leaves takes nothing returns nothing
set gg_trg_Player_7_Leaves = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_7_Leaves, 2 )
call TriggerAddCondition( gg_trg_Player_7_Leaves, Condition( function Trig_Player_7_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Player_7_Leaves, function Trig_Player_7_Leaves_Actions )
endfunction
function Trig_Player_8_Leaves_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_Player_8_Leaves_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ShareEverythingWithTeam( Player(7) )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( udg_UserNames[8] + " has left the game" ) )
set udg_NumPlayers = ( udg_NumPlayers - 1 )
call ConditionalTriggerExecute( gg_trg_Omega_default_win )
endfunction
//===========================================================================
function InitTrig_Player_8_Leaves takes nothing returns nothing
set gg_trg_Player_8_Leaves = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_8_Leaves, 2 )
call TriggerAddCondition( gg_trg_Player_8_Leaves, Condition( function Trig_Player_8_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Player_8_Leaves, function Trig_Player_8_Leaves_Actions )
endfunction
function Trig_Player_9_Leaves_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_Player_9_Leaves_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call ShareEverythingWithTeam( Player(8) )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( udg_UserNames[9] + " has left the game" ) )
set udg_NumPlayers = ( udg_NumPlayers - 1 )
call ConditionalTriggerExecute( gg_trg_Omega_default_win )
endfunction
//===========================================================================
function InitTrig_Player_9_Leaves takes nothing returns nothing
set gg_trg_Player_9_Leaves = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_9_Leaves, 2 )
call TriggerAddCondition( gg_trg_Player_9_Leaves, Condition( function Trig_Player_9_Leaves_Conditions ) )
call TriggerAddAction( gg_trg_Player_9_Leaves, function Trig_Player_9_Leaves_Actions )
endfunction