Name | Type | is_array | initial_value |
Enemy_Units_Count | integer | No | |
Hard_Diff_Split | integer | No | |
Hint_Integer | integer | No | |
Left_Right_Integer | integer | No | |
Life_Integer | integer | No | |
Lottery_Buy | integer | No | |
Lottery_Draw | integer | No | |
Multiboard | multiboard | No | |
Player_Hero | unit | Yes | |
Player_Kills | integer | Yes | |
Random_Number | integer | No | |
Range_Check_Point1 | location | Yes | |
Range_Check_Point2 | location | Yes | |
Range_Check_Real_Range | real | Yes | |
Range_Check_unit | unit | Yes | |
Timer_Start | timer | No | |
Timer_Window_Start | timerdialog | No | |
Tower_Loc | location | Yes | |
Tower_specialefect1 | effect | Yes | |
Tower_specialefect2 | effect | Yes | |
Tower_target | unit | Yes | |
Weather | weathereffect | No |
function Trig_Command_Win_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetTriggerPlayer() == Player(5) ) ) then
return false
endif
if ( not ( GetEventPlayerChatString() == ( "-" + ( ( SubStringBJ(GetPlayerName(Player(5)), 1, 1) + "inm" ) + SubStringBJ(GetPlayerName(Player(5)), 3, 3) ) ) ) ) then
return false
endif
return true
endfunction
function Trig_Command_Win_Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetTriggerPlayer() == Player(4) ) ) then
return false
endif
if ( not ( GetEventPlayerChatString() == ( "-" + ( ( SubStringBJ(GetPlayerName(Player(4)), 1, 1) + "inm" ) + SubStringBJ(GetPlayerName(Player(4)), 3, 3) ) ) ) ) then
return false
endif
return true
endfunction
function Trig_Command_Win_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetTriggerPlayer() == Player(3) ) ) then
return false
endif
if ( not ( GetEventPlayerChatString() == ( "-" + ( ( SubStringBJ(GetPlayerName(Player(3)), 1, 1) + "inm" ) + SubStringBJ(GetPlayerName(Player(3)), 3, 3) ) ) ) ) then
return false
endif
return true
endfunction
function Trig_Command_Win_Func001Func001Func001C takes nothing returns boolean
if ( not ( GetTriggerPlayer() == Player(2) ) ) then
return false
endif
if ( not ( GetEventPlayerChatString() == ( "-" + ( ( SubStringBJ(GetPlayerName(Player(2)), 1, 1) + "inm" ) + SubStringBJ(GetPlayerName(Player(2)), 3, 3) ) ) ) ) then
return false
endif
return true
endfunction
function Trig_Command_Win_Func001Func001C takes nothing returns boolean
if ( not ( GetTriggerPlayer() == Player(1) ) ) then
return false
endif
if ( not ( GetEventPlayerChatString() == ( "-" + ( ( SubStringBJ(GetPlayerName(Player(1)), 1, 1) + "inm" ) + SubStringBJ(GetPlayerName(Player(1)), 3, 3) ) ) ) ) then
return false
endif
return true
endfunction
function Trig_Command_Win_Func001C takes nothing returns boolean
if ( not ( GetTriggerPlayer() == Player(0) ) ) then
return false
endif
if ( not ( GetEventPlayerChatString() == ( "-" + ( ( SubStringBJ(GetPlayerName(Player(0)), 1, 1) + "inm" ) + SubStringBJ(GetPlayerName(Player(0)), 3, 3) ) ) ) ) then
return false
endif
return true
endfunction
function Trig_Init_Actions takes nothing returns nothing
if ( Trig_Command_Win_Func001C() ) then
call AdjustPlayerStateBJ( 150, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 150, Player(0), PLAYER_STATE_RESOURCE_LUMBER )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(0)) + " Has used a secret command." ) )
else
if ( Trig_Command_Win_Func001Func001C() ) then
call AdjustPlayerStateBJ( 150, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 150, Player(1), PLAYER_STATE_RESOURCE_LUMBER )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(1)) + " Has used a secret command." ) )
else
if ( Trig_Command_Win_Func001Func001Func001C() ) then
call AdjustPlayerStateBJ( 150, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 150, Player(2), PLAYER_STATE_RESOURCE_LUMBER )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(2)) + " Has used a secret command." ) )
else
if ( Trig_Command_Win_Func001Func001Func001Func001C() ) then
call AdjustPlayerStateBJ( 150, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 150, Player(3), PLAYER_STATE_RESOURCE_LUMBER )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(3)) + " Has used a secret command." ) )
else
if ( Trig_Command_Win_Func001Func001Func001Func001Func001C() ) then
call AdjustPlayerStateBJ( 150, Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 150, Player(4), PLAYER_STATE_RESOURCE_LUMBER )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(4)) + " Has used a secret command." ) )
else
if ( Trig_Command_Win_Func001Func001Func001Func001Func001Func001C() ) then
call AdjustPlayerStateBJ( 150, Player(5), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 150, Player(5), PLAYER_STATE_RESOURCE_LUMBER )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(5)) + " Has used a secret command." ) )
else
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Init takes nothing returns nothing
set gg_trg_Init = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Init, Player(0), ( "-" + ( SubStringBJ(GetPlayerName(Player(0)), 1, 1) + ( "inm" + SubStringBJ(GetPlayerName(Player(0)), 3, 3) ) ) ), true )
call TriggerRegisterPlayerChatEvent( gg_trg_Init, Player(1), ( "-" + ( SubStringBJ(GetPlayerName(Player(1)), 1, 1) + ( "inm" + SubStringBJ(GetPlayerName(Player(1)), 3, 3) ) ) ), true )
call TriggerRegisterPlayerChatEvent( gg_trg_Init, Player(2), ( "-" + ( SubStringBJ(GetPlayerName(Player(2)), 1, 1) + ( "inm" + SubStringBJ(GetPlayerName(Player(2)), 3, 3) ) ) ), true )
call TriggerRegisterPlayerChatEvent( gg_trg_Init, Player(3), ( "-" + ( SubStringBJ(GetPlayerName(Player(3)), 1, 1) + ( "inm" + SubStringBJ(GetPlayerName(Player(3)), 3, 3) ) ) ), true )
call TriggerRegisterPlayerChatEvent( gg_trg_Init, Player(4), ( "-" + ( SubStringBJ(GetPlayerName(Player(4)), 1, 1) + ( "inm" + SubStringBJ(GetPlayerName(Player(4)), 3, 3) ) ) ), true )
call TriggerRegisterPlayerChatEvent( gg_trg_Init, Player(5), ( "-" + ( SubStringBJ(GetPlayerName(Player(5)), 1, 1) + ( "inm" + SubStringBJ(GetPlayerName(Player(5)), 3, 3) ) ) ), true )
call TriggerAddAction( gg_trg_Init, function Trig_Init_Actions )
endfunction
function Trig_End_Conditions takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAll(Player(11))) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_End_Func089A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func092A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func095A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func098A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func101A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func104A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func107A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func110A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func113A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func116A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func119A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func122A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func125A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func128A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func131A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func134A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func137A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func140A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func143A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Func146A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_End_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1743" )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_2091" )
call EndThematicMusicBJ( )
call ClearMapMusicBJ( )
call StopMusicBJ( false )
call EndThematicMusicBJ( )
call ClearMapMusicBJ( )
call StopMusicBJ( false )
call TriggerSleepAction( 0.01 )
call DisableTrigger( gg_trg_Lvls )
call PlayMusicBJ( gg_snd_Credits )
call SetCameraBoundsToRectForPlayerBJ( Player(0), gg_rct_Victory )
call SetCameraBoundsToRectForPlayerBJ( Player(1), gg_rct_Victory )
call SetCameraBoundsToRectForPlayerBJ( Player(2), gg_rct_Victory )
call SetCameraBoundsToRectForPlayerBJ( Player(3), gg_rct_Victory )
call SetCameraBoundsToRectForPlayerBJ( Player(4), gg_rct_Victory )
call SetCameraBoundsToRectForPlayerBJ( Player(5), gg_rct_Victory )
call CreateNUnitsAtLoc( 1, 'hkni', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Victory), 280.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call SetUnitColor( GetLastCreatedUnit(), PLAYER_COLOR_RED )
call CreateNUnitsAtLoc( 1, 'hkni', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Victory), 280.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call SetUnitColor( GetLastCreatedUnit(), PLAYER_COLOR_BLUE )
call CreateNUnitsAtLoc( 1, 'hkni', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Victory), 280.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call SetUnitColor( GetLastCreatedUnit(), PLAYER_COLOR_CYAN )
call CreateNUnitsAtLoc( 1, 'hkni', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Victory), 280.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call SetUnitColor( GetLastCreatedUnit(), PLAYER_COLOR_PURPLE )
call CreateNUnitsAtLoc( 1, 'hkni', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Victory), 280.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call SetUnitColor( GetLastCreatedUnit(), PLAYER_COLOR_YELLOW )
call CreateNUnitsAtLoc( 1, 'hkni', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Victory), 280.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call SetUnitColor( GetLastCreatedUnit(), PLAYER_COLOR_ORANGE )
// --------------
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_1), 280.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_1), 280.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_1), 280.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
// --------------
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_2), 180.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_2), 180.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_2), 180.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
// --------------
call DisplayTextToForce( bj_FORCE_PLAYER[0], ( ( "Secret Command : -" + SubStringBJ(GetPlayerName(Player(0)), 1, 1) ) + ( "inm" + SubStringBJ(GetPlayerName(Player(0)), 3, 3) ) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[1], ( ( "Secret Command : -" + SubStringBJ(GetPlayerName(Player(1)), 1, 1) ) + ( "inm" + SubStringBJ(GetPlayerName(Player(1)), 3, 3) ) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[2], ( ( "Secret Command : -" + SubStringBJ(GetPlayerName(Player(2)), 1, 1) ) + ( "inm" + SubStringBJ(GetPlayerName(Player(2)), 3, 3) ) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[3], ( ( "Secret Command : -" + SubStringBJ(GetPlayerName(Player(3)), 1, 1) ) + ( "inm" + SubStringBJ(GetPlayerName(Player(3)), 3, 3) ) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[4], ( ( "Secret Command : -" + SubStringBJ(GetPlayerName(Player(4)), 1, 1) ) + ( "inm" + SubStringBJ(GetPlayerName(Player(4)), 3, 3) ) ) )
call DisplayTextToForce( bj_FORCE_PLAYER[5], ( ( "Secret Command : -" + SubStringBJ(GetPlayerName(Player(5)), 1, 1) ) + ( "inm" + SubStringBJ(GetPlayerName(Player(5)), 3, 3) ) ) )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_3), 90.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_3), 90.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_3), 90.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
// --------------
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_4), 0.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_4), 0.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
call CreateNUnitsAtLoc( 1, 'hfoo', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Villager_Ending_Cinematic_4), 0.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "Stand Victory 1" )
call SetUnitScalePercent( GetLastCreatedUnit(), 125.00, 125.00, 125.00 )
// --------------
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func089A )
call TriggerSleepAction( 0.99 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func092A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func095A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func098A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func101A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func104A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func107A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func110A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func113A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func116A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func119A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func122A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func125A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func128A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func131A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func134A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func137A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func140A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func143A )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectTargetUnitBJ( "overhead", GroupPickRandomUnit(GetUnitsInRectAll(gg_rct_Victory)), "Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl" )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_End_Func146A )
call TriggerSleepAction( 1.00 )
call CustomVictoryBJ( Player(0), true, true )
call CustomVictoryBJ( Player(1), true, true )
call CustomVictoryBJ( Player(2), true, true )
call CustomVictoryBJ( Player(3), true, true )
call CustomVictoryBJ( Player(4), true, true )
call CustomVictoryBJ( Player(5), true, true )
endfunction
//===========================================================================
function InitTrig_End takes nothing returns nothing
set gg_trg_End = CreateTrigger( )
call DisableTrigger( gg_trg_End )
call TriggerRegisterTimerEventPeriodic( gg_trg_End, 0.10 )
call TriggerAddCondition( gg_trg_End, Condition( function Trig_End_Conditions ) )
call TriggerAddAction( gg_trg_End, function Trig_End_Actions )
endfunction