목적은 맨아래에.
//===========================================================================
// Trigger: game mode
//===========================================================================
function Trig_game_mode_Func001Func003C takes nothing returns boolean
if ( ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_EMPTY ) ) then
return true
endif
if ( ( GetPlayerController(Player(0)) == MAP_CONTROL_COMPUTER ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_Func001C takes nothing returns boolean
if ( not Trig_game_mode_Func001Func003C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_Func008C takes nothing returns boolean
if ( not ( udg_gms_d_boolean == false ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_Actions takes nothing returns nothing
if ( Trig_game_mode_Func001C() ) then
call EnableTrigger( gg_trg_game_mode_select )
call ConditionalTriggerExecute( gg_trg_game_mode_select_auto )
return
else
endif
set udg_game_mode_selection = 1
call DisplayTextToForce( GetPlayersAll(), ( udg_player_color[1] + ( GetPlayerName(Player(0)) + "|r is selecting the game modes..." ) ) )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_710" )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 9999.00, "TRIGSTR_240" )
call EnableTrigger( gg_trg_game_mode_select )
call TriggerSleepAction( 45.00 )
if ( Trig_game_mode_Func008C() ) then
call ConditionalTriggerExecute( gg_trg_game_mode_select_auto )
else
endif
endfunction
//===========================================================================
function InitTrig_game_mode takes nothing returns nothing
set gg_trg_game_mode = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_game_mode, 3.00 )
call TriggerAddAction( gg_trg_game_mode, function Trig_game_mode_Actions )
endfunction
//===========================================================================
// Trigger: game mode select auto
//===========================================================================
function Trig_game_mode_select_auto_Func002Func001C takes nothing returns boolean
if ( ( IsTriggerEnabled(gg_trg_game_mode_select) == false ) ) then
return true
endif
if ( ( udg_gmselect_boolean == true ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_auto_Func002C takes nothing returns boolean
if ( not Trig_game_mode_select_auto_Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004Func004Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_temp_int == 9 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004Func004Func001Func001C takes nothing returns boolean
if ( not ( udg_temp_int == 8 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004Func004Func001C takes nothing returns boolean
if ( not ( udg_temp_int == 7 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_temp_int == 6 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_temp_int == 5 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Func008Func002Func003Func004Func004C takes nothing returns boolean
if ( not ( udg_temp_int == 4 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Func008Func002Func003Func004C takes nothing returns boolean
if ( not ( udg_temp_int == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Func008Func002Func003C takes nothing returns boolean
if ( not ( udg_temp_int == 2 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Func008Func002C takes nothing returns boolean
if ( not ( udg_temp_int == 1 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_auto_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
if ( Trig_game_mode_select_auto_Func002C() ) then
return
else
endif
set udg_stage = 1
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_699" )
call TriggerSleepAction( 2 )
call PlaySoundBJ( gg_snd_Select )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_temp_int = GetRandomInt(1, 8)
if ( Trig_game_mode_select_auto_Func008Func002C() ) then
set udg_game_mode[GetForLoopIndexA()] = 1
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(GetForLoopIndexA()) + ":|r TDM (Team Deathmatch)" ) ) )
else
if ( Trig_game_mode_select_auto_Func008Func002Func003C() ) then
set udg_game_mode[GetForLoopIndexA()] = 2
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(GetForLoopIndexA()) + ":|r DM (Deathmatch)" ) ) )
else
if ( Trig_game_mode_select_auto_Func008Func002Func003Func004C() ) then
set udg_game_mode[GetForLoopIndexA()] = 3
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(GetForLoopIndexA()) + ":|r BASE (Base Mission)" ) ) )
else
if ( Trig_game_mode_select_auto_Func008Func002Func003Func004Func004C() ) then
set udg_game_mode[GetForLoopIndexA()] = 4
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(GetForLoopIndexA()) + ":|r TLM (Team Elimination)" ) ) )
else
if ( Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004C() ) then
set udg_game_mode[GetForLoopIndexA()] = 5
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(GetForLoopIndexA()) + ":|r CAP (Capture Mission)" ) ) )
else
if ( Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004Func004C() ) then
set udg_game_mode[GetForLoopIndexA()] = 6
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(GetForLoopIndexA()) + ":|r BOMB (Bomb Mission)" ) ) )
else
if ( Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004Func004Func001C() ) then
set udg_game_mode[GetForLoopIndexA()] = 7
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(GetForLoopIndexA()) + ":|r SCAP (Solo Capture)" ) ) )
else
if ( Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004Func004Func001Func001C() ) then
set udg_game_mode[GetForLoopIndexA()] = 8
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(GetForLoopIndexA()) + ":|r VIP (VIP Mission)" ) ) )
else
if ( Trig_game_mode_select_auto_Func008Func002Func003Func004Func004Func004Func004Func001Func001Func001C() ) then
set udg_game_mode[GetForLoopIndexA()] = 9
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(GetForLoopIndexA()) + ":|r BOSS (Boss Survival)" ) ) )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 2 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_712" )
set udg_arena[1] = GetRandomInt(1, 8)
set udg_arena[2] = GetRandomInt(1, 8)
set udg_arena[3] = GetRandomInt(1, 8)
call TriggerSleepAction( 2 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_713" )
call ConditionalTriggerExecute( gg_trg_start_objects )
endfunction
//===========================================================================
function InitTrig_game_mode_select_auto takes nothing returns nothing
set gg_trg_game_mode_select_auto = CreateTrigger( )
call TriggerAddAction( gg_trg_game_mode_select_auto, function Trig_game_mode_select_auto_Actions )
endfunction
//===========================================================================
// Trigger: game mode select
//===========================================================================
function Trig_game_mode_select_Func002Func002C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-TDM" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-tdm" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-DM" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-dm" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-BASE" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-base" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-TLM" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-tlm" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-CAP" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-cap" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-BOMB" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-bomb" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-SCAP" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-scap" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-VIP" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-vip" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-BOSS" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-boss" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func002C takes nothing returns boolean
if ( not Trig_game_mode_select_Func002Func002C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func004C takes nothing returns boolean
if ( not ( udg_game_mode_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func005C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-TDM" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-tdm" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func003Func006Func004C takes nothing returns boolean
if ( not ( udg_game_mode_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func001Func004C takes nothing returns boolean
if ( not ( udg_game_mode_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func001Func005C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-BOSS" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-boss" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func001Func005C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func005C takes nothing returns boolean
if ( not ( udg_game_mode_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func006C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-VIP" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-vip" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func005C takes nothing returns boolean
if ( not ( udg_game_mode_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func006C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-SCAP" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-scap" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func005C takes nothing returns boolean
if ( not ( udg_game_mode_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func006C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-BOMB" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-bomb" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func001C takes nothing returns boolean
if ( not Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func005C takes nothing returns boolean
if ( not ( udg_game_mode_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001Func006C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-CAP" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-cap" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func001C takes nothing returns boolean
if ( not Trig_game_mode_select_Func003Func006Func005Func001Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func005C takes nothing returns boolean
if ( not ( udg_game_mode_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001Func006C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-TLM" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-tlm" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func003Func006Func005Func001C takes nothing returns boolean
if ( not Trig_game_mode_select_Func003Func006Func005Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func005C takes nothing returns boolean
if ( not ( udg_game_mode_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func005Func006C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-BASE" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-base" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func003Func006Func005C takes nothing returns boolean
if ( not Trig_game_mode_select_Func003Func006Func005Func006C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003Func006Func006C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-DM" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-dm" ) ) then
return true
endif
return false
endfunction
function Trig_game_mode_select_Func003Func006C takes nothing returns boolean
if ( not Trig_game_mode_select_Func003Func006Func006C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func003C takes nothing returns boolean
if ( not Trig_game_mode_select_Func003Func005C() ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Func005C takes nothing returns boolean
if ( not ( udg_game_mode_selection < 4 ) ) then
return false
endif
return true
endfunction
function Trig_game_mode_select_Actions takes nothing returns nothing
set udg_gms_d_boolean = true
if ( Trig_game_mode_select_Func002C() ) then
else
return
endif
if ( Trig_game_mode_select_Func003C() ) then
call PlaySoundBJ( gg_snd_Select )
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(udg_game_mode_selection) + ":|r TDM (Team Deathmatch)" ) ) )
set udg_game_mode[udg_game_mode_selection] = 1
if ( Trig_game_mode_select_Func003Func004C() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CinematicModeBJ( false, GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call TriggerExecute( gg_trg_arena )
else
endif
else
if ( Trig_game_mode_select_Func003Func006C() ) then
call PlaySoundBJ( gg_snd_Select )
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(udg_game_mode_selection) + ":|r DM (Deathmatch)" ) ) )
set udg_game_mode[udg_game_mode_selection] = 2
if ( Trig_game_mode_select_Func003Func006Func004C() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CinematicModeBJ( false, GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call TriggerExecute( gg_trg_arena )
else
endif
else
if ( Trig_game_mode_select_Func003Func006Func005C() ) then
call PlaySoundBJ( gg_snd_Select )
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(udg_game_mode_selection) + ":|r BASE (Base Mission)" ) ) )
set udg_game_mode[udg_game_mode_selection] = 3
if ( Trig_game_mode_select_Func003Func006Func005Func005C() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CinematicModeBJ( false, GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call TriggerExecute( gg_trg_arena )
else
endif
else
if ( Trig_game_mode_select_Func003Func006Func005Func001C() ) then
call PlaySoundBJ( gg_snd_Select )
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(udg_game_mode_selection) + ":|r TLM (Team Elimination)" ) ) )
set udg_game_mode[udg_game_mode_selection] = 4
if ( Trig_game_mode_select_Func003Func006Func005Func001Func005C() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CinematicModeBJ( false, GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call TriggerExecute( gg_trg_arena )
else
endif
else
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001C() ) then
call PlaySoundBJ( gg_snd_Select )
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(udg_game_mode_selection) + ":|r CAP (Capture Mission)" ) ) )
set udg_game_mode[udg_game_mode_selection] = 5
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001Func005C() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CinematicModeBJ( false, GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call TriggerExecute( gg_trg_arena )
else
endif
else
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_Select )
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(udg_game_mode_selection) + ":|r BOMB (Bomb Mission)" ) ) )
set udg_game_mode[udg_game_mode_selection] = 6
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func005C() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CinematicModeBJ( false, GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call TriggerExecute( gg_trg_arena )
else
endif
else
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_Select )
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(udg_game_mode_selection) + ":|r SCAP (Solo Capture)" ) ) )
set udg_game_mode[udg_game_mode_selection] = 7
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func005C() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CinematicModeBJ( false, GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call TriggerExecute( gg_trg_arena )
else
endif
else
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_Select )
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(udg_game_mode_selection) + ":|r VIP (VIP Mission)" ) ) )
set udg_game_mode[udg_game_mode_selection] = 8
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func005C() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CinematicModeBJ( false, GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call TriggerExecute( gg_trg_arena )
else
endif
else
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func001C() ) then
call PlaySoundBJ( gg_snd_Select )
call DisplayTextToForce( GetPlayersAll(), ( "|cff808080Game Mode " + ( I2S(udg_game_mode_selection) + ":|r BOSS (Boss Survival)" ) ) )
set udg_game_mode[udg_game_mode_selection] = 9
if ( Trig_game_mode_select_Func003Func006Func005Func001Func001Func001Func001Func001Func001Func004C() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CinematicModeBJ( false, GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DisableTrigger( GetTriggeringTrigger() )
call TriggerSleepAction( 2 )
call TriggerExecute( gg_trg_arena )
else
endif
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
set udg_game_mode_selection = ( udg_game_mode_selection + 1 )
if ( Trig_game_mode_select_Func005C() ) then
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_866" )
else
endif
endfunction
//===========================================================================
function InitTrig_game_mode_select takes nothing returns nothing
set gg_trg_game_mode_select = CreateTrigger( )
call DisableTrigger( gg_trg_game_mode_select )
call TriggerRegisterPlayerChatEvent( gg_trg_game_mode_select, Player(0), "-", false )
call TriggerAddAction( gg_trg_game_mode_select, function Trig_game_mode_select_Actions )
endfunction
//===========================================================================
// Trigger: arena select
//===========================================================================
function Trig_arena_select_Func001Func002C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-1" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-2" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-3" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-4" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-5" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-6" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-7" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-8" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-9" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Basic 1" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-basic 1" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Basic 2" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-basic 2" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Sewer" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-sewer" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Cave" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-cave" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Swamp" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-swamp" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Forest" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-forest" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Lava" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-lava" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Labyrinth" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-labyrinth" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Killhouse" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-killhouse" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func001C takes nothing returns boolean
if ( not Trig_arena_select_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func002Func001C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-1" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Basic 1" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-basic 1" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func002Func004Func001C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-2" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Basic 2" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-basic 2" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func002Func004Func004Func001C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-3" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Sewer" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-sewer" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func001C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-4" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Cave" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-cave" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004Func001C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-5" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Swamp" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-swamp" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004Func004Func001C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-6" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Forest" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-forest" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func001C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-7" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Lava" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-lava" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func002Func001Func001C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-9" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Killhouse" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-killhouse" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func002Func001C takes nothing returns boolean
if ( not Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func002Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func002Func002C takes nothing returns boolean
if ( ( GetEventPlayerChatString() == "-8" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-Labyrinth" ) ) then
return true
endif
if ( ( GetEventPlayerChatString() == "-labyrinth" ) ) then
return true
endif
return false
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func002C takes nothing returns boolean
if ( not Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func002Func002C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002C takes nothing returns boolean
if ( not Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not Trig_arena_select_Func002Func004Func004Func004Func004Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func002Func004Func004Func004Func004C takes nothing returns boolean
if ( not Trig_arena_select_Func002Func004Func004Func004Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func002Func004Func004Func004C takes nothing returns boolean
if ( not Trig_arena_select_Func002Func004Func004Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func002Func004Func004C takes nothing returns boolean
if ( not Trig_arena_select_Func002Func004Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func002Func004C takes nothing returns boolean
if ( not Trig_arena_select_Func002Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func002C takes nothing returns boolean
if ( not Trig_arena_select_Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func004C takes nothing returns boolean
if ( not ( udg_arena_selection == 3 ) ) then
return false
endif
return true
endfunction
function Trig_arena_select_Func006C takes nothing returns boolean
if ( not ( udg_arena_selection < 4 ) ) then
return false
endif
return true
endfunction
function Trig_arena_select_Actions takes nothing returns nothing
if ( Trig_arena_select_Func001C() ) then
else
return
endif
if ( Trig_arena_select_Func002C() ) then
call PlaySoundBJ( gg_snd_Select )
set udg_arena[udg_arena_selection] = 1
else
if ( Trig_arena_select_Func002Func004C() ) then
call PlaySoundBJ( gg_snd_Select )
set udg_arena[udg_arena_selection] = 2
else
if ( Trig_arena_select_Func002Func004Func004C() ) then
call PlaySoundBJ( gg_snd_Select )
set udg_arena[udg_arena_selection] = 3
else
if ( Trig_arena_select_Func002Func004Func004Func004C() ) then
call PlaySoundBJ( gg_snd_Select )
set udg_arena[udg_arena_selection] = 4
else
if ( Trig_arena_select_Func002Func004Func004Func004Func004C() ) then
call PlaySoundBJ( gg_snd_Select )
set udg_arena[udg_arena_selection] = 5
else
if ( Trig_arena_select_Func002Func004Func004Func004Func004Func004C() ) then
call PlaySoundBJ( gg_snd_Select )
set udg_arena[udg_arena_selection] = 6
else
if ( Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002C() ) then
call PlaySoundBJ( gg_snd_Select )
set udg_arena[udg_arena_selection] = 7
else
if ( Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func002C() ) then
call PlaySoundBJ( gg_snd_Select )
set udg_arena[udg_arena_selection] = 8
else
if ( Trig_arena_select_Func002Func004Func004Func004Func004Func004Func002Func002Func001C() ) then
call PlaySoundBJ( gg_snd_Select )
set udg_arena[udg_arena_selection] = 9
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
call DisplayTextToForce( GetPlayersAll(), ( "|cffffcc00Stage " + ( I2S(udg_arena_selection) + ( ":|r " + ( ( "|cffFFFF00" + ( udg_init_mode_string[udg_game_mode[udg_arena_selection]] + "|r " ) ) + ( "on " + ( "|cffFFFF00" + udg_init_map_string[udg_arena[udg_arena_selection]] ) ) ) ) ) ) )
if ( Trig_arena_select_Func004C() ) then
call DisableTrigger( GetTriggeringTrigger() )
set udg_stage = 1
call TriggerSleepAction( 2 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1265" )
call ConditionalTriggerExecute( gg_trg_start_objects )
else
endif
set udg_arena_selection = ( udg_arena_selection + 1 )
if ( Trig_arena_select_Func006C() ) then
call DisplayTextToForce( GetForceOfPlayer(Player(0)), "TRIGSTR_867" )
else
endif
endfunction
//===========================================================================
function InitTrig_arena_select takes nothing returns nothing
set gg_trg_arena_select = CreateTrigger( )
call DisableTrigger( gg_trg_arena_select )
call TriggerRegisterPlayerChatEvent( gg_trg_arena_select, Player(0), "-", false )
call TriggerAddAction( gg_trg_arena_select, function Trig_arena_select_Actions )
endfunction
//===========================================================================
// Trigger: arena
//===========================================================================
function Trig_arena_Func003A takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_004, GetEnumPlayer(), 0 )
endfunction
function Trig_arena_Actions takes nothing returns nothing
call ClearTextMessagesBJ( GetPlayersAll() )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 2, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 0, 0, 0, 0 )
call ForForce( GetPlayersAll(), function Trig_arena_Func003A )
set udg_arena_selection = 1
call DisplayTextToForce( GetPlayersAll(), ( udg_player_color[1] + ( GetPlayerName(Player(0)) + "|r is selecting the arenas..." ) ) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 9999.00, "TRIGSTR_264" )
call EnableTrigger( gg_trg_arena_select )
endfunction
//===========================================================================
function InitTrig_arena takes nothing returns nothing
set gg_trg_arena = CreateTrigger( )
call TriggerAddAction( gg_trg_arena, function Trig_arena_Actions )
endfunction
**
대충 게임시작부분에서 게임방식과 맵을 정하는 부분인데요
'게임의 반복회수' - 즉 한세트당 몇게임 인가 를 결정하는 부분을 찾고 그곳을 명령어로 정할수 있게 교체하고 싶고
'명령어를 요구하는 문자열' 즉 로그를 불러오는 부분에서 로그의 양이나 시작 위치를 수정하고싶은데요;
어느부분을 고쳐야 할까요.