Name | Type | is_array | initial_value |
Boss_Point_Variable | location | No | |
Countdown | timer | No | |
playerunit | unit | Yes | UnitNull |
Position_HeroVariable_Spawn | location | No | |
Position_KingdomVariable_Spawn | location | No | |
Position_MoveVariable_Spawn | location | No | |
Random_Integer | integer | No | |
villagerhouse | location | No | |
Winningplayer | player | No |
function Trig_Test_Func001001001 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Test_Func001002001 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Map_Initialization_Actions takes nothing returns nothing
call SetMapFlag( MAP_FOG_MAP_EXPLORED, true )
call SetMapFlag( MAP_RESOURCE_TRADING_ALLIES_ONLY, false )
call SetMapFlag( MAP_LOCK_ALLIANCE_CHANGES, false )
call SetMapFlag( MAP_LOCK_RESOURCE_TRADING, false )
call SetGameSpeed( MAP_SPEED_FASTEST )
call SetMapFlag( MAP_OBSERVERS_ON_DEATH, true )
call SetMapFlag( MAP_SHARED_ADVANCED_CONTROL, true )
call SetMapFlag( MAP_ALLIANCE_CHANGES_HIDDEN, true )
call TriggerExecute( gg_trg_Turn_Off_Other_Triggers )
call SetForceAllianceStateBJ( GetPlayersMatching(Condition(function Trig_Test_Func001001001)), GetPlayersMatching(Condition(function Trig_Test_Func001002001)), bj_ALLIANCE_ALLIED_VISION )
call TriggerExecute( gg_trg_Turn_On_Other_Triggers )
call SetMapFlag( MAP_ALLIANCE_CHANGES_HIDDEN, false )
endfunction
//===========================================================================
function InitTrig_Map_Initialization takes nothing returns nothing
set gg_trg_Map_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Map_Initialization, function Trig_Map_Initialization_Actions )
endfunction