function GetHost takes nothing returns nothing
local gamecache g = InitGameCache("Map.w3v")
call StoreInteger ( g, "Map", "Host", GetPlayerId(GetLocalPlayer ())+1)
call TriggerSyncStart ()
call SyncStoredInteger ( g, "Map", "Host" )
call TriggerSyncReady ()
set udg_Host = Player( GetStoredInteger ( g, "Map", "Host" )-1)
call FlushGameCache( g )
set g = null
endfunction
Name | Type | is_array | initial_value |
CreepSpawn | location | Yes | |
Dol2muchfood | integer | No | |
Dummy | unit | No | |
Easter2muchfood | integer | No | |
ent2muchfood | integer | No | |
GateLeakLess | location | Yes | |
Gondor2MuchFood | integer | No | |
Harad2muchfood | integer | No | |
HelmsDeep | location | No | |
Host | player | No | |
Hydro_Caster | unit | Yes | |
Isen2muchfood | integer | No | |
Mordor2muchfood | integer | No | |
Morgul2muchfood | integer | No | |
Multiboard | multiboard | No | MultiboardNull |
NewGoldLeakLess | location | Yes | |
Orthanc | location | No | |
Player1Kills | integer | Yes | |
Player1KillsHero | integer | Yes | |
PlayerOfColor | group | Yes | |
Rohan2muchfood | integer | No | |
SpawnLeakLess | location | Yes | |
spellcata | location | Yes |
function Installation_Actions takes nothing returns nothing
call WaygateActivateBJ( false, gg_unit_nwgt_0697 )
call WaygateActivateBJ( false, gg_unit_nwgt_0699 )
call SetPlayerColorBJ( Player(6), ConvertPlayerColor(12), true )
call AddSpecialEffectTargetUnitBJ( ( "hand" + "right" ), gg_unit_H01Z_0165, "war3mapImported\\Frostmourne.mdx" )
call AddSpecialEffectTargetUnitBJ( "right,arm", gg_unit_H00O_0465, "war3mapImported\\huntress_shield.mdx" )
call AddSpecialEffectTargetUnitBJ( "left,arm", gg_unit_O00G_0501, "war3mapImported\\huntress_shield.mdx" )
call AdjustPlayerStateBJ( 0, Player(0), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 0, Player(1), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 0, Player(2), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 0, Player(3), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 0, Player(4), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 0, Player(6), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 0, Player(8), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 0, Player(9), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 0, Player(10), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 0, Player(11), PLAYER_STATE_RESOURCE_LUMBER )
call AdjustPlayerStateBJ( 10, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(6), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(8), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(9), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(11), PLAYER_STATE_RESOURCE_GOLD )
call SetPlayerHandicapXPBJ( Player(0), 78.00 )
call SetPlayerHandicapXPBJ( Player(1), 78.00 )
call SetPlayerHandicapXPBJ( Player(2), 78.00 )
call SetPlayerHandicapXPBJ( Player(3), 88.00 )
call SetPlayerHandicapXPBJ( Player(4), 78.00 )
call SetPlayerHandicapXPBJ( Player(8), 78.00 )
call SetPlayerHandicapXPBJ( Player(6), 78.00 )
call SetPlayerHandicapXPBJ( Player(9), 78.00 )
call SetPlayerHandicapXPBJ( Player(10), 88.00 )
call SetPlayerHandicapXPBJ( Player(11), 78.00 )
call ShowUnitHide( gg_unit_n003_0135 )
call ShowUnitHide( gg_unit_h01E_0646 )
call UnitAddItemSwapped( gg_item_I019_0705, gg_unit_H00U_0794 )
call SetUserControlForceOff( GetPlayersAll() )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.50, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 2.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 4.00, " |cffffcc00게임 로딩중입니다, 잠시만 기다려 주십시요.|r" )
call TriggerSleepAction( 16.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.50, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 1.00 )
call SetUserControlForceOn( GetPlayersAll() )
call SetUserControlForceOn( bj_FORCE_PLAYER[5] )
call SetUserControlForceOn( bj_FORCE_PLAYER[7] )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_Installation takes nothing returns nothing
set gg_trg_Installation = CreateTrigger( )
call TriggerAddAction( gg_trg_Installation, function Installation_Actions )
endfunction
function Faramir_Enters_Henneth_Conditions takes nothing returns boolean
if ( not ( GetTriggerUnit() == gg_unit_H00V_0505 ) ) then
return false
endif
if ( not ( GetHeroLevel(gg_unit_H00V_0505) >= 4 ) ) then
return false
endif
return true
endfunction
function Faramir_Enters_Henneth_Actions takes nothing returns nothing
local location SpawnLeakLess = GetRectCenter(gg_rct_henneth_spawn)
call CreateNUnitsAtLoc( 12, 'e00L', Player(0), SpawnLeakLess, bj_UNIT_FACING )
call UnitAddItemByIdSwapped( 'ofir', gg_unit_H00V_0505 )
set SpawnLeakLess = null
call RemoveLocation (SpawnLeakLess)
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
function InitTrig_Faramir_Enters_Henneth takes nothing returns nothing
set gg_trg_Faramir_Enters_Henneth = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Faramir_Enters_Henneth, gg_rct_faramir_in_henneth )
call TriggerAddCondition( gg_trg_Faramir_Enters_Henneth, Condition( function Faramir_Enters_Henneth_Conditions ) )
call TriggerAddAction( gg_trg_Faramir_Enters_Henneth, function Faramir_Enters_Henneth_Actions )
endfunction
function Trig_Costum_Cam_Conditions takes nothing returns boolean
if ( not ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-cam" ) ) then
return false
endif
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 10)) > 499 ) ) then
return false
endif
if ( not ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 10)) < 4001 ) ) then
return false
endif
return true
endfunction
function Trig_Costum_Cam_Actions takes nothing returns nothing
call SetCameraFieldForPlayer( GetTriggerPlayer(), CAMERA_FIELD_TARGET_DISTANCE, I2R(S2I(SubStringBJ(GetEventPlayerChatString(), 6, 10))), 2.00 )
endfunction
//===========================================================================
function InitTrig_Costum_Cam takes nothing returns nothing
set gg_trg_Costum_Cam = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(0), "-cam", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(1), "-cam", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(2), "-cam", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(3), "-cam", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(4), "-cam", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(6), "-cam", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(8), "-cam", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(9), "-cam", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(10), "-cam", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Costum_Cam, Player(11), "-cam", false )
call TriggerAddCondition( gg_trg_Costum_Cam, Condition( function Trig_Costum_Cam_Conditions ) )
call TriggerAddAction( gg_trg_Costum_Cam, function Trig_Costum_Cam_Actions )
endfunction