Name | Type | is_array | initial_value |
Attackers | group | No | |
Attackers2 | group | No | |
DiffDialog | dialog | No | |
kills | integer | Yes | |
Level1 | integer | No | |
Level2 | integer | No | |
Level3 | integer | No | |
Level4 | integer | No | |
Lose1 | integer | No | 2 |
Lose2 | integer | No | 2 |
pause | boolean | No | |
Start | button | No |
function Trig_Ways_Actions takes nothing returns nothing
call SetDestructableInvulnerableBJ( gg_dest_ATg3_2721, true )
call SetDestructableInvulnerableBJ( gg_dest_ATg3_2720, true )
endfunction
//===========================================================================
function InitTrig_Ways takes nothing returns nothing
set gg_trg_Ways = CreateTrigger( )
call TriggerAddAction( gg_trg_Ways, function Trig_Ways_Actions )
endfunction
function Trig_Gold_Func002002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 800 )
endfunction
function Trig_Gold_Func003002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 1000 )
endfunction
function Trig_Gold_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Gold_Func002002 )
call ForForce( GetPlayersAll(), function Trig_Gold_Func003002 )
endfunction
//===========================================================================
function InitTrig_Gold takes nothing returns nothing
set gg_trg_Gold = CreateTrigger( )
call TriggerAddAction( gg_trg_Gold, function Trig_Gold_Actions )
endfunction
function Trig_Colors_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Colors takes nothing returns nothing
set gg_trg_Colors = CreateTrigger( )
call TriggerAddAction( gg_trg_Colors, function Trig_Colors_Actions )
endfunction
function Trig_Experiences_Actions takes nothing returns nothing
call SetPlayerHandicapXPBJ( Player(0), 150.00 )
call SetPlayerHandicapXPBJ( Player(1), 150.00 )
call SetPlayerHandicapXPBJ( Player(2), 150.00 )
call SetPlayerHandicapXPBJ( Player(3), 150.00 )
endfunction
//===========================================================================
function InitTrig_Experiences takes nothing returns nothing
set gg_trg_Experiences = CreateTrigger( )
call TriggerAddAction( gg_trg_Experiences, function Trig_Experiences_Actions )
endfunction
function Trig_Hero_Dies_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == GetUnitTypeId(GetLevelingUnit()) ) ) then
return false
endif
return true
endfunction
function Trig_Hero_Dies_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hfoo', Player(0), GetRectCenter(gg_rct_Start_12), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Hero_Dies takes nothing returns nothing
set gg_trg_Hero_Dies = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Hero_Dies, Player(0), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Hero_Dies, Condition( function Trig_Hero_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Dies, function Trig_Hero_Dies_Actions )
endfunction
function Trig_Kick_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "Vicemaster" ) ) then
return false
endif
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 7)) >= 1 ) ) then
return false
endif
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 7)) <= 12 ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Actions takes nothing returns nothing
call CustomDefeatBJ( ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 7))), "TRIGSTR_552" )
endfunction
//===========================================================================
function InitTrig_Kick takes nothing returns nothing
set gg_trg_Kick = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(0), "kick ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(1), "kick ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(2), "kick ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(3), "kick ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(4), "kick ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(5), "kick ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(6), "kick ", false )
call TriggerAddCondition( gg_trg_Kick, Condition( function Trig_Kick_Conditions ) )
call TriggerAddAction( gg_trg_Kick, function Trig_Kick_Actions )
endfunction
function Trig_other_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "Vicemaster" ) ) then
return false
endif
return true
endfunction
function Trig_other_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 12)), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_other takes nothing returns nothing
set gg_trg_other = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_other, Player(0), "gold ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_other, Player(1), "gold ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_other, Player(2), "gold ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_other, Player(3), "gold ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_other, Player(4), "gold ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_other, Player(5), "gold ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_other, Player(6), "gold ", false )
call TriggerAddCondition( gg_trg_other, Condition( function Trig_other_Conditions ) )
call TriggerAddAction( gg_trg_other, function Trig_other_Actions )
endfunction
function Trig_wood_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "Vicemaster" ) ) then
return false
endif
return true
endfunction
function Trig_wood_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 12)), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
//===========================================================================
function InitTrig_wood takes nothing returns nothing
set gg_trg_wood = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_wood, Player(0), "wood ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_wood, Player(1), "wood ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_wood, Player(2), "wood ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_wood, Player(3), "wood ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_wood, Player(4), "wood ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_wood, Player(5), "wood ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_wood, Player(6), "wood ", false )
call TriggerAddCondition( gg_trg_wood, Condition( function Trig_wood_Conditions ) )
call TriggerAddAction( gg_trg_wood, function Trig_wood_Actions )
endfunction
function Trig_Pause_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "RomanGuile" ) ) then
return false
endif
return true
endfunction
function Trig_Pause_Func001001 takes nothing returns boolean
return ( udg_pause == false )
endfunction
function Trig_Pause_Func002001 takes nothing returns boolean
return ( udg_pause == false )
endfunction
function Trig_Pause_Actions takes nothing returns nothing
if ( Trig_Pause_Func001001() ) then
call PauseGameOn( )
else
call PauseGameOff( )
endif
if ( Trig_Pause_Func002001() ) then
set udg_pause = true
else
set udg_pause = false
endif
endfunction
//===========================================================================
function InitTrig_Pause takes nothing returns nothing
set gg_trg_Pause = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(0), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(1), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(2), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(3), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(4), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(5), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(6), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(7), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(8), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(9), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(10), "pause", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Pause, Player(11), "pause", true )
call TriggerAddCondition( gg_trg_Pause, Condition( function Trig_Pause_Conditions ) )
call TriggerAddAction( gg_trg_Pause, function Trig_Pause_Actions )
endfunction
function Trig_Enter_p1_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Enter_p1_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg3_2720 )
call TriggerSleepAction( 4.00 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg3_2720 )
endfunction
//===========================================================================
function InitTrig_Enter_p1 takes nothing returns nothing
set gg_trg_Enter_p1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enter_p1, gg_rct_Player_12_way )
call TriggerAddCondition( gg_trg_Enter_p1, Condition( function Trig_Enter_p1_Conditions ) )
call TriggerAddAction( gg_trg_Enter_p1, function Trig_Enter_p1_Actions )
endfunction
function Trig_Enter_p2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Enter_p2_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg3_2720 )
call TriggerSleepAction( 4.00 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg3_2720 )
endfunction
//===========================================================================
function InitTrig_Enter_p2 takes nothing returns nothing
set gg_trg_Enter_p2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enter_p2, gg_rct_Player_12_way )
call TriggerAddCondition( gg_trg_Enter_p2, Condition( function Trig_Enter_p2_Conditions ) )
call TriggerAddAction( gg_trg_Enter_p2, function Trig_Enter_p2_Actions )
endfunction
function Trig_Enter_p3_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_Enter_p3_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg3_2721 )
call TriggerSleepAction( 4.00 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg3_2721 )
endfunction
//===========================================================================
function InitTrig_Enter_p3 takes nothing returns nothing
set gg_trg_Enter_p3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enter_p3, gg_rct_player_34_way )
call TriggerAddCondition( gg_trg_Enter_p3, Condition( function Trig_Enter_p3_Conditions ) )
call TriggerAddAction( gg_trg_Enter_p3, function Trig_Enter_p3_Actions )
endfunction
function Trig_Enter_p4_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_Enter_p4_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg3_2721 )
call TriggerSleepAction( 4.00 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg3_2721 )
endfunction
//===========================================================================
function InitTrig_Enter_p4 takes nothing returns nothing
set gg_trg_Enter_p4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enter_p4, gg_rct_player_34_way )
call TriggerAddCondition( gg_trg_Enter_p4, Condition( function Trig_Enter_p4_Conditions ) )
call TriggerAddAction( gg_trg_Enter_p4, function Trig_Enter_p4_Actions )
endfunction
function Trig_Units_1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetEnteringUnit()), Player(0), GetRectCenter(gg_rct_Start_12), bj_UNIT_FACING )
call RemoveUnit( GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Units_1 takes nothing returns nothing
set gg_trg_Units_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Units_1, gg_rct_Player1units )
call TriggerAddAction( gg_trg_Units_1, function Trig_Units_1_Actions )
endfunction
function Trig_Units_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetEnteringUnit()), Player(1), GetRectCenter(gg_rct_Start_12), bj_UNIT_FACING )
call RemoveUnit( GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Units_2 takes nothing returns nothing
set gg_trg_Units_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Units_2, gg_rct_player2units )
call TriggerAddAction( gg_trg_Units_2, function Trig_Units_2_Actions )
endfunction
function Trig_Units_3_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetEnteringUnit()), Player(2), GetRectCenter(gg_rct_Start_34), bj_UNIT_FACING )
call RemoveUnit( GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Units_3 takes nothing returns nothing
set gg_trg_Units_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Units_3, gg_rct_player3units )
call TriggerAddAction( gg_trg_Units_3, function Trig_Units_3_Actions )
endfunction
function Trig_Units_4_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetEnteringUnit()), Player(3), GetRectCenter(gg_rct_Start_34), bj_UNIT_FACING )
call RemoveUnit( GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Units_4 takes nothing returns nothing
set gg_trg_Units_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Units_4, gg_rct_player4units )
call TriggerAddAction( gg_trg_Units_4, function Trig_Units_4_Actions )
endfunction
function Trig_Lose_1_2_Conditions takes nothing returns boolean
if ( not ( udg_Lose1 == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Lose_1_2_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(2), true, true )
call CustomVictoryBJ( Player(3), true, true )
endfunction
//===========================================================================
function InitTrig_Lose_1_2 takes nothing returns nothing
set gg_trg_Lose_1_2 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Lose_1_2, 0.50 )
call TriggerAddCondition( gg_trg_Lose_1_2, Condition( function Trig_Lose_1_2_Conditions ) )
call TriggerAddAction( gg_trg_Lose_1_2, function Trig_Lose_1_2_Actions )
endfunction
function Trig_Lose_3_4_Conditions takes nothing returns boolean
if ( not ( udg_Lose2 == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Lose_3_4_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(1), true, true )
call CustomVictoryBJ( Player(0), true, true )
endfunction
//===========================================================================
function InitTrig_Lose_3_4 takes nothing returns nothing
set gg_trg_Lose_3_4 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Lose_3_4, 0.50 )
call TriggerAddCondition( gg_trg_Lose_3_4, Condition( function Trig_Lose_3_4_Conditions ) )
call TriggerAddAction( gg_trg_Lose_3_4, function Trig_Lose_3_4_Actions )
endfunction
function Trig_GoldCHEAT_Func004002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 0 )
endfunction
function Trig_GoldCHEAT_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_079" )
call TriggerSleepAction( 2.00 )
call PauseGameOn( )
call ForForce( GetPlayersAll(), function Trig_GoldCHEAT_Func004002 )
endfunction
//===========================================================================
function InitTrig_GoldCHEAT takes nothing returns nothing
set gg_trg_GoldCHEAT = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_GoldCHEAT, Player(0), "greedisgood", false )
call TriggerRegisterPlayerChatEvent( gg_trg_GoldCHEAT, Player(1), "greedisgood", false )
call TriggerRegisterPlayerChatEvent( gg_trg_GoldCHEAT, Player(2), "greedisgood", false )
call TriggerRegisterPlayerChatEvent( gg_trg_GoldCHEAT, Player(3), "greedisgood", false )
call TriggerAddAction( gg_trg_GoldCHEAT, function Trig_GoldCHEAT_Actions )
endfunction
function Trig_Enter_Actions takes nothing returns nothing
call ExplodeUnitBJ( GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Enter takes nothing returns nothing
set gg_trg_Enter = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Enter, gg_rct_Cheat )
call TriggerAddAction( gg_trg_Enter, function Trig_Enter_Actions )
endfunction