Name | Type | is_array | initial_value |
Dialog | dialog | No | |
DialogButtom | button | Yes | |
FoodPlayer01 | integer | No | |
FoodPlayer02 | integer | No | |
FoodPlayer03 | integer | No | |
FoodPlayer04 | integer | No | |
FoodPlayer05 | integer | No | |
FoodPlayer06 | integer | No | |
FoodPlayer07 | integer | No | |
FoodPlayer08 | integer | No | |
Leaderboard | leaderboard | No | |
RandomRaceP1 | trigger | Yes | |
RandomRaceP2 | trigger | Yes | |
RandomRaceP3 | trigger | Yes | |
RandomRaceP4 | trigger | Yes | |
RandomRaceP5 | trigger | Yes | |
RandomRaceP6 | trigger | Yes | |
RandomRaceP7 | trigger | Yes | |
RandomRaceP8 | trigger | Yes | |
Team1 | force | No | |
Team2 | force | No |
function Trig_IA_Func001C takes nothing returns boolean
if ( not ( GetPlayerController(Player(0)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_IA_Func002C takes nothing returns boolean
if ( not ( GetPlayerController(Player(1)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_IA_Func003C takes nothing returns boolean
if ( not ( GetPlayerController(Player(2)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_IA_Func004C takes nothing returns boolean
if ( not ( GetPlayerController(Player(3)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_IA_Func005C takes nothing returns boolean
if ( not ( GetPlayerController(Player(4)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_IA_Func006C takes nothing returns boolean
if ( not ( GetPlayerController(Player(5)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_IA_Func007C takes nothing returns boolean
if ( not ( GetPlayerController(Player(6)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_IA_Func008C takes nothing returns boolean
if ( not ( GetPlayerController(Player(7)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_IA_Actions takes nothing returns nothing
if ( Trig_IA_Func001C() ) then
call ConditionalTriggerExecute( gg_trg_Human_Player_1 )
else
call DoNothing( )
endif
if ( Trig_IA_Func002C() ) then
call ConditionalTriggerExecute( gg_trg_Human_Player_2 )
else
call DoNothing( )
endif
if ( Trig_IA_Func003C() ) then
call ConditionalTriggerExecute( gg_trg_Human_Player_3 )
else
call DoNothing( )
endif
if ( Trig_IA_Func004C() ) then
call ConditionalTriggerExecute( gg_trg_Human_Player_4 )
else
call DoNothing( )
endif
if ( Trig_IA_Func005C() ) then
call ConditionalTriggerExecute( gg_trg_Human_Player_5 )
else
call DoNothing( )
endif
if ( Trig_IA_Func006C() ) then
call ConditionalTriggerExecute( gg_trg_Human_Player_6 )
else
call DoNothing( )
endif
if ( Trig_IA_Func007C() ) then
call ConditionalTriggerExecute( gg_trg_Human_Player_7 )
else
call DoNothing( )
endif
if ( Trig_IA_Func008C() ) then
call ConditionalTriggerExecute( gg_trg_Human_Player_8 )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_IA takes nothing returns nothing
set gg_trg_IA = CreateTrigger( )
call TriggerAddAction( gg_trg_IA, function Trig_IA_Actions )
endfunction
function Trig_Potm_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Effet_1), "Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Effet_1), "Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Effet_2), "Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Effet_2), "Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl" )
endfunction
//===========================================================================
function InitTrig_Potm takes nothing returns nothing
set gg_trg_Potm = CreateTrigger( )
call TriggerAddAction( gg_trg_Potm, function Trig_Potm_Actions )
endfunction
function Trig_Setup_Random_Race_Actions takes nothing returns nothing
// Player 1
set udg_RandomRaceP1[1] = gg_trg_Human_Player_1
set udg_RandomRaceP1[2] = gg_trg_Orc_Player_1
set udg_RandomRaceP1[3] = gg_trg_Elf_Player_1
set udg_RandomRaceP1[4] = gg_trg_Ud_Player_1
// Player 2
set udg_RandomRaceP2[1] = gg_trg_Human_Player_2
set udg_RandomRaceP2[2] = gg_trg_Orc_Player_2
set udg_RandomRaceP2[3] = gg_trg_Elf_Player_2
set udg_RandomRaceP2[4] = gg_trg_Ud_Player_2
// Player 3
set udg_RandomRaceP3[1] = gg_trg_Human_Player_3
set udg_RandomRaceP3[2] = gg_trg_Orc_Player_3
set udg_RandomRaceP3[3] = gg_trg_Elf_Player_3
set udg_RandomRaceP3[4] = gg_trg_Ud_Player_3
// Player 4
set udg_RandomRaceP4[1] = gg_trg_Human_Player_4
set udg_RandomRaceP4[2] = gg_trg_Orc_Player_4
set udg_RandomRaceP4[3] = gg_trg_Elf_Player_4
set udg_RandomRaceP4[4] = gg_trg_Ud_Player_4
// Player 5
set udg_RandomRaceP5[1] = gg_trg_Human_Player_5
set udg_RandomRaceP5[2] = gg_trg_Orc_Player_5
set udg_RandomRaceP5[3] = gg_trg_Elf_Player_5
set udg_RandomRaceP5[4] = gg_trg_Ud_Player_5
// Player 6
set udg_RandomRaceP6[1] = gg_trg_Human_Player_6
set udg_RandomRaceP6[2] = gg_trg_Orc_Player_6
set udg_RandomRaceP6[3] = gg_trg_Elf_Player_6
set udg_RandomRaceP6[4] = gg_trg_Ud_Player_6
// Player 7
set udg_RandomRaceP7[1] = gg_trg_Human_Player_7
set udg_RandomRaceP7[2] = gg_trg_Orc_Player_7
set udg_RandomRaceP7[3] = gg_trg_Elf_Player_7
set udg_RandomRaceP7[4] = gg_trg_Ud_Player_7
// Player 8
set udg_RandomRaceP8[1] = gg_trg_Human_Player_8
set udg_RandomRaceP8[2] = gg_trg_Orc_Player_8
set udg_RandomRaceP8[3] = gg_trg_Elf_Player_8
set udg_RandomRaceP8[4] = gg_trg_Ud_Player_8
endfunction
//===========================================================================
function InitTrig_Setup_Random_Race takes nothing returns nothing
set gg_trg_Setup_Random_Race = CreateTrigger( )
call TriggerAddAction( gg_trg_Setup_Random_Race, function Trig_Setup_Random_Race_Actions )
endfunction
function Trig_Random_Race_Player_1_Actions takes nothing returns nothing
call ConditionalTriggerExecute( gg_trg_Setup_Random_Race )
call ConditionalTriggerExecute( udg_RandomRaceP1[GetRandomInt(0, 4)] )
call TriggerSleepAction( 0.01 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Random_Race_Player_1 takes nothing returns nothing
set gg_trg_Random_Race_Player_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Race_Player_1, Player(0), "-Rdm", true )
call TriggerAddAction( gg_trg_Random_Race_Player_1, function Trig_Random_Race_Player_1_Actions )
endfunction
function Trig_Random_Race_Player_2_Actions takes nothing returns nothing
call TriggerExecute( gg_trg_Setup_Random_Race )
call TriggerExecute( udg_RandomRaceP2[GetRandomInt(0, 4)] )
call TriggerSleepAction( 0.01 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Random_Race_Player_2 takes nothing returns nothing
set gg_trg_Random_Race_Player_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Race_Player_2, Player(1), "-Rdm", true )
call TriggerAddAction( gg_trg_Random_Race_Player_2, function Trig_Random_Race_Player_2_Actions )
endfunction
function Trig_Random_Race_Player_3_Actions takes nothing returns nothing
call TriggerExecute( gg_trg_Setup_Random_Race )
call TriggerExecute( udg_RandomRaceP3[GetRandomInt(0, 4)] )
call TriggerSleepAction( 0.01 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Random_Race_Player_3 takes nothing returns nothing
set gg_trg_Random_Race_Player_3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Race_Player_3, Player(2), "-Rdm", true )
call TriggerAddAction( gg_trg_Random_Race_Player_3, function Trig_Random_Race_Player_3_Actions )
endfunction
function Trig_Random_Race_Player_4_Actions takes nothing returns nothing
call TriggerExecute( gg_trg_Setup_Random_Race )
call TriggerExecute( udg_RandomRaceP4[GetRandomInt(0, 4)] )
call TriggerSleepAction( 0.01 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Random_Race_Player_4 takes nothing returns nothing
set gg_trg_Random_Race_Player_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Race_Player_4, Player(3), "-Rdm", true )
call TriggerAddAction( gg_trg_Random_Race_Player_4, function Trig_Random_Race_Player_4_Actions )
endfunction
function Trig_Random_Race_Player_5_Actions takes nothing returns nothing
call TriggerExecute( gg_trg_Setup_Random_Race )
call TriggerExecute( udg_RandomRaceP5[GetRandomInt(0, 4)] )
call TriggerSleepAction( 0.01 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Random_Race_Player_5 takes nothing returns nothing
set gg_trg_Random_Race_Player_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Race_Player_5, Player(4), "-Rdm", true )
call TriggerAddAction( gg_trg_Random_Race_Player_5, function Trig_Random_Race_Player_5_Actions )
endfunction
function Trig_Random_Race_Player_6_Actions takes nothing returns nothing
call TriggerExecute( gg_trg_Setup_Random_Race )
call TriggerExecute( udg_RandomRaceP6[GetRandomInt(0, 4)] )
call TriggerSleepAction( 0.01 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Random_Race_Player_6 takes nothing returns nothing
set gg_trg_Random_Race_Player_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Race_Player_6, Player(5), "-Rdm", true )
call TriggerAddAction( gg_trg_Random_Race_Player_6, function Trig_Random_Race_Player_6_Actions )
endfunction
function Trig_Random_Race_Player_7_Actions takes nothing returns nothing
call TriggerExecute( gg_trg_Setup_Random_Race )
call TriggerExecute( udg_RandomRaceP7[GetRandomInt(0, 4)] )
call TriggerSleepAction( 0.01 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Random_Race_Player_7 takes nothing returns nothing
set gg_trg_Random_Race_Player_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Race_Player_7, Player(6), "-Rdm", true )
call TriggerAddAction( gg_trg_Random_Race_Player_7, function Trig_Random_Race_Player_7_Actions )
endfunction
function Trig_Random_Race_Player_8_Actions takes nothing returns nothing
call TriggerExecute( gg_trg_Setup_Random_Race )
call TriggerExecute( udg_RandomRaceP8[GetRandomInt(0, 4)] )
call TriggerSleepAction( 0.01 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Random_Race_Player_8 takes nothing returns nothing
set gg_trg_Random_Race_Player_8 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Random_Race_Player_8, Player(7), "-Rdm", true )
call TriggerAddAction( gg_trg_Random_Race_Player_8, function Trig_Random_Race_Player_8_Actions )
endfunction
function Trig_Orc_Player_1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ogre', Player(0), GetRectCenter(gg_rct_Main_Player_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'opeo', Player(0), GetRectCenter(gg_rct_Main_Player_1), bj_UNIT_FACING )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(0)) + " has selected : Orc" ) )
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Base_1 )
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Human_Player_1 )
call DisableTrigger( gg_trg_Elf_Player_1 )
call DisableTrigger( gg_trg_Ud_Player_1 )
call DisableTrigger( gg_trg_Random_Race_Player_1 )
endfunction
//===========================================================================
function InitTrig_Orc_Player_1 takes nothing returns nothing
set gg_trg_Orc_Player_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Orc_Player_1, Player(0), "-Orc", true )
call TriggerAddAction( gg_trg_Orc_Player_1, function Trig_Orc_Player_1_Actions )
endfunction
function Trig_Initialisation_Dialog_Func001002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 1000000000 )
endfunction
function Trig_Initialisation_Dialog_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Initialisation_Dialog_Func001002 )
call DialogSetMessageBJ( udg_Dialog, "TRIGSTR_020" )
call DialogAddButtonBJ( udg_Dialog, "TRIGSTR_021" )
set udg_DialogButtom[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_Dialog, "TRIGSTR_022" )
set udg_DialogButtom[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_Dialog, "TRIGSTR_023" )
set udg_DialogButtom[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_Dialog, "TRIGSTR_024" )
set udg_DialogButtom[4] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_Dialog, "TRIGSTR_025" )
set udg_DialogButtom[5] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_Dialog, "TRIGSTR_026" )
set udg_DialogButtom[6] = GetLastCreatedButtonBJ()
call DialogDisplayBJ( true, udg_Dialog, Player(0) )
endfunction
//===========================================================================
function InitTrig_Initialisation_Dialog takes nothing returns nothing
set gg_trg_Initialisation_Dialog = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Initialisation_Dialog, 1.00 )
call TriggerAddAction( gg_trg_Initialisation_Dialog, function Trig_Initialisation_Dialog_Actions )
endfunction
function Trig_Melee_Initialization_2_Func002001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[1] )
endfunction
function Trig_Melee_Initialization_2_Func002002002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_FOOD_CAP_CEILING, 25 )
endfunction
function Trig_Melee_Initialization_2_Func003001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[2] )
endfunction
function Trig_Melee_Initialization_2_Func003002002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_FOOD_CAP_CEILING, 50 )
endfunction
function Trig_Melee_Initialization_2_Func004001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[3] )
endfunction
function Trig_Melee_Initialization_2_Func004002002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_FOOD_CAP_CEILING, 75 )
endfunction
function Trig_Melee_Initialization_2_Func005001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[4] )
endfunction
function Trig_Melee_Initialization_2_Func005002002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_FOOD_CAP_CEILING, 100 )
endfunction
function Trig_Melee_Initialization_2_Func006001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[5] )
endfunction
function Trig_Melee_Initialization_2_Func006002002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_FOOD_CAP_CEILING, 150 )
endfunction
function Trig_Melee_Initialization_2_Func007001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[6] )
endfunction
function Trig_Melee_Initialization_2_Func007002002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_FOOD_CAP_CEILING, 300 )
endfunction
function Trig_Melee_Initialization_2_Func008001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[1] )
endfunction
function Trig_Melee_Initialization_2_Func009001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[2] )
endfunction
function Trig_Melee_Initialization_2_Func010001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[3] )
endfunction
function Trig_Melee_Initialization_2_Func011001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[4] )
endfunction
function Trig_Melee_Initialization_2_Func012001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[5] )
endfunction
function Trig_Melee_Initialization_2_Func013001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_DialogButtom[6] )
endfunction
function Trig_Melee_Initialization_2_Actions takes nothing returns nothing
if ( Trig_Melee_Initialization_2_Func002001() ) then
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_2_Func002002002 )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func003001() ) then
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_2_Func003002002 )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func004001() ) then
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_2_Func004002002 )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func005001() ) then
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_2_Func005002002 )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func006001() ) then
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_2_Func006002002 )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func007001() ) then
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_2_Func007002002 )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func008001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(0)) + " choose 25 as food Limit !" ) )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func009001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(0)) + " choose 50 as food Limit !" ) )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func010001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(0)) + " choose 75 as food Limit !" ) )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func011001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(0)) + " choose 100 as food Limit !" ) )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func012001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(0)) + " choose 150 as food Limit !" ) )
else
call DoNothing( )
endif
if ( Trig_Melee_Initialization_2_Func013001() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(0)) + " choose 300 as food Limit !" ) )
else
call DoNothing( )
endif
call TriggerExecute( gg_trg_Message_Text )
endfunction
//===========================================================================
function InitTrig_Melee_Initialization_2 takes nothing returns nothing
set gg_trg_Melee_Initialization_2 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Melee_Initialization_2, udg_Dialog )
call TriggerAddAction( gg_trg_Melee_Initialization_2, function Trig_Melee_Initialization_2_Actions )
endfunction
function Trig_Setup_Team_Actions takes nothing returns nothing
call ForceAddPlayerSimple( Player(0), udg_Team1 )
call ForceAddPlayerSimple( Player(1), udg_Team1 )
call ForceAddPlayerSimple( Player(2), udg_Team1 )
call ForceAddPlayerSimple( Player(3), udg_Team1 )
call ForceAddPlayerSimple( Player(4), udg_Team2 )
call ForceAddPlayerSimple( Player(5), udg_Team2 )
call ForceAddPlayerSimple( Player(6), udg_Team2 )
call ForceAddPlayerSimple( Player(7), udg_Team2 )
endfunction
//===========================================================================
function InitTrig_Setup_Team takes nothing returns nothing
set gg_trg_Setup_Team = CreateTrigger( )
call TriggerAddAction( gg_trg_Setup_Team, function Trig_Setup_Team_Actions )
endfunction
function Trig_Win_Team_1_Func004A takes nothing returns nothing
set udg_Team1 = GetPlayersAllies(Player(0))
call CustomVictoryBJ( GetEnumPlayer(), true, true )
endfunction
function Trig_Win_Team_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_041" )
call TriggerSleepAction( 2.00 )
call TriggerExecute( gg_trg_Setup_Team )
call ForForce( udg_Team1, function Trig_Win_Team_1_Func004A )
call CustomDefeatBJ( Player(4), "TRIGSTR_043" )
call CustomDefeatBJ( Player(5), "TRIGSTR_044" )
call CustomDefeatBJ( Player(6), "TRIGSTR_045" )
call CustomDefeatBJ( Player(7), "TRIGSTR_046" )
endfunction
//===========================================================================
function InitTrig_Win_Team_1 takes nothing returns nothing
set gg_trg_Win_Team_1 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Win_Team_1, gg_unit_o000_0000, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Win_Team_1, function Trig_Win_Team_1_Actions )
endfunction
function Trig_Win_Team_2_Func004A takes nothing returns nothing
set udg_Team2 = GetPlayersAllies(Player(4))
call CustomVictoryBJ( GetEnumPlayer(), true, true )
endfunction
function Trig_Win_Team_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_085" )
call TriggerSleepAction( 2.00 )
call TriggerExecute( gg_trg_Setup_Team )
call ForForce( udg_Team2, function Trig_Win_Team_2_Func004A )
call CustomDefeatBJ( Player(0), "TRIGSTR_047" )
call CustomDefeatBJ( Player(1), "TRIGSTR_048" )
call CustomDefeatBJ( Player(2), "TRIGSTR_049" )
call CustomDefeatBJ( Player(3), "TRIGSTR_050" )
endfunction
//===========================================================================
function InitTrig_Win_Team_2 takes nothing returns nothing
set gg_trg_Win_Team_2 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Win_Team_2, gg_unit_o000_0001, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Win_Team_2, function Trig_Win_Team_2_Actions )
endfunction