Name | Type | is_array | initial_value |
Time | timer | No |
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Pathetic_Game_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ocat', Player(1), GetRandomLocInRect(gg_rct_Sniperrrr), 90.00 )
endfunction
//===========================================================================
function InitTrig_Pathetic_Game takes nothing returns nothing
set gg_trg_Pathetic_Game = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Pathetic_Game, 15.00 )
call TriggerAddAction( gg_trg_Pathetic_Game, function Trig_Pathetic_Game_Actions )
endfunction
function Trig_Attack_Func001A takes nothing returns nothing
call IssueTargetOrderBJ( GetEnumUnit(), "attack", gg_unit_n000_0000 )
endfunction
function Trig_Attack_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Sniperrrr), function Trig_Attack_Func001A )
endfunction
//===========================================================================
function InitTrig_Attack takes nothing returns nothing
set gg_trg_Attack = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Attack, 10.00 )
call TriggerAddAction( gg_trg_Attack, function Trig_Attack_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Pathetic_Game1_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "holdposition", GetRandomLocInRect(gg_rct_Region_001) )
endfunction
//===========================================================================
function InitTrig_Pathetic_Game1 takes nothing returns nothing
set gg_trg_Pathetic_Game1 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Pathetic_Game1, 0.01)
call TriggerAddAction( gg_trg_Pathetic_Game1, function Trig_Pathetic_Game1_Actions )
endfunction
function Trig_Mao_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Pathetic_Game )
call PlayMusicBJ( gg_snd_PH1 )
call DisplayTimedTextToForce( GetPlayersAll(), 30.00, "TRIGSTR_006" )
endfunction
//===========================================================================
function InitTrig_Mao takes nothing returns nothing
set gg_trg_Mao = CreateTrigger( )
call TriggerAddAction( gg_trg_Mao, function Trig_Mao_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Loser_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == gg_unit_n000_0000 ) ) then
return false
endif
return true
endfunction
function Trig_Loser_Actions takes nothing returns nothing
call CustomDefeatBJ( Player(0), "TRIGSTR_007" )
endfunction
//===========================================================================
function InitTrig_Loser takes nothing returns nothing
set gg_trg_Loser = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Loser, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Loser, Condition( function Trig_Loser_Conditions ) )
call TriggerAddAction( gg_trg_Loser, function Trig_Loser_Actions )
endfunction
function Trig_Pathetic_Game2_Actions takes nothing returns nothing
call ConditionalTriggerExecute( gg_trg_Pathetic_Game )
call EnableTrigger( gg_trg_Pathetic_Game )
endfunction
//===========================================================================
function InitTrig_Pathetic_Game2 takes nothing returns nothing
set gg_trg_Pathetic_Game2 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Pathetic_Game2, 10.00 )
call TriggerAddAction( gg_trg_Pathetic_Game2, function Trig_Pathetic_Game2_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Pathetic_Game3_Actions takes nothing returns nothing
set udg_Time = GetLastCreatedTimerBJ()
call StartTimerBJ( GetLastCreatedTimerBJ(), false, ( ( 60.00 * 10.00 ) - 0.01 ) )
call CreateTimerDialogBJ( GetLastCreatedTimerBJ(), "TRIGSTR_002" )
endfunction
//===========================================================================
function InitTrig_Pathetic_Game3 takes nothing returns nothing
set gg_trg_Pathetic_Game3 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Pathetic_Game3, 0.01 )
call TriggerAddAction( gg_trg_Pathetic_Game3, function Trig_Pathetic_Game3_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Not_Win_but_boSS_Func002A takes nothing returns nothing
call ExplodeUnitBJ( GetEnumUnit() )
endfunction
function Trig_Not_Win_but_boSS_Actions takes nothing returns nothing
call StopMusicBJ( false )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Sniperrrr), function Trig_Not_Win_but_boSS_Func002A )
call CreateNUnitsAtLoc( 1, 'nrac', Player(1), GetRectCenter(gg_rct_Sniperrrr), 90.00 )
call PlaySoundBJ( gg_snd_N07Archimonde28 )
call TriggerSleepAction( 8.00 )
call EnableTrigger( gg_trg_Final )
call DisableTrigger( gg_trg_Pathetic_Game )
endfunction
//===========================================================================
function InitTrig_Not_Win_but_boSS takes nothing returns nothing
set gg_trg_Not_Win_but_boSS = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Not_Win_but_boSS, udg_Time )
call TriggerRegisterTimerEventSingle( gg_trg_Not_Win_but_boSS, ( ( 60.00 * 10.00 ) - 1.01 ) )
call TriggerAddAction( gg_trg_Not_Win_but_boSS, function Trig_Not_Win_but_boSS_Actions )
endfunction
function Trig_Final_Actions takes nothing returns nothing
call ResumeMusicBJ( )
endfunction
//===========================================================================
function InitTrig_Final takes nothing returns nothing
set gg_trg_Final = CreateTrigger( )
call TriggerAddAction( gg_trg_Final, function Trig_Final_Actions )
endfunction
function Trig_Final_Win_Actions takes nothing returns nothing
call CreateItemLoc( 'kygh', GetRectCenter(gg_rct_Region_001) )
endfunction
//===========================================================================
function InitTrig_Final_Win takes nothing returns nothing
set gg_trg_Final_Win = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Final_Win, ( ( 60.00 * 10.00 ) + ( 120.00 - 0.01 ) ) )
call TriggerAddAction( gg_trg_Final_Win, function Trig_Final_Win_Actions )
endfunction
function Trig_Win_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(0), true, false )
endfunction
//===========================================================================
function InitTrig_Win takes nothing returns nothing
set gg_trg_Win = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Win, gg_rct_Region_003 )
call TriggerAddAction( gg_trg_Win, function Trig_Win_Actions )
endfunction
function Trig_Sight_Actions takes nothing returns nothing
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, GetPlayableMapRect() )
endfunction
//===========================================================================
function InitTrig_Sight takes nothing returns nothing
set gg_trg_Sight = CreateTrigger( )
call TriggerAddAction( gg_trg_Sight, function Trig_Sight_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Winnnnnn_Conditions takes nothing returns boolean
if ( not ( UnitItemInSlotBJ(gg_unit_n000_0000, 1) == GetLastCreatedItem() ) ) then
return false
endif
return true
endfunction
function Trig_Winnnnnn_Func001A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Winnnnnn_Actions takes nothing returns nothing
call EnumDestructablesInRectAll( gg_rct_Region_002, function Trig_Winnnnnn_Func001A )
endfunction
//===========================================================================
function InitTrig_Winnnnnn takes nothing returns nothing
set gg_trg_Winnnnnn = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Winnnnnn, gg_unit_n000_0000, EVENT_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Winnnnnn, Condition( function Trig_Winnnnnn_Conditions ) )
call TriggerAddAction( gg_trg_Winnnnnn, function Trig_Winnnnnn_Actions )
call CreateDestructableLoc( 'OTsp', GetRectCenter(gg_rct_Region_003), 45.00, 2.00, 0 )
endfunction
function Trig_Selection_Actions takes nothing returns nothing
call SelectUnitForPlayerSingle( gg_unit_n000_0000, Player(0) )
endfunction
//===========================================================================
function InitTrig_Selection takes nothing returns nothing
set gg_trg_Selection = CreateTrigger( )
call TriggerAddAction( gg_trg_Selection, function Trig_Selection_Actions )
endfunction