//==========================================================================================
//
//	uje_2_towns.gm
//
//	Who  	When		What
//------------------------------------------------------------------------------------------
//	|TP|kaos	05 November 2011	Initial Script
//
//==========================================================================================
//

global Map =
{
	Debug = 0, // please set to zero before distributing your script

	Mover_train = "MOVER_train",

	Allied_Command_Post_Built = function( trigger )
	{
		Util.MapDebugPrint( "Allied_Command_Post_Built" );
	},

	Axis_Command_Post_Built = function( trigger )
	{
		Util.MapDebugPrint( "Axis_Command_Post_Built" );
	},

	Garrison_MG_Nest_Built = function( trigger )
	{
		Util.MapDebugPrint( "Garrison_MG_Nest_Built" );
	},

	Old_City_MG_Nest_Built = function( trigger )
	{
		Util.MapDebugPrint( "Old_City_MG_Nest_Built" );
	},

	Allied_Command_Post_Planted = function( trigger )
	{
		Util.MapDebugPrint( "Allied_Command_Post_Planted" );
	},

	Axis_Command_Post_Planted = function( trigger )
	{
		Util.MapDebugPrint( "Axis_Command_Post_Planted" );
	},

	Garrison_MG_Nest_Planted = function( trigger )
	{
		Util.MapDebugPrint( "Garrison_MG_Nest_Planted" );
	},

	North_PAK_75mm_Gun_Planted = function( trigger )
	{
		Util.MapDebugPrint( "North_PAK_75mm_Gun_Planted" );
	},

	Old_City_MG_Nest_Planted = function( trigger )
	{
		Util.MapDebugPrint( "Old_City_MG_Nest_Planted" );
	},

	Old_German_Monument_Planted = function( trigger )
	{
		Util.MapDebugPrint( "Old_German_Monument_Planted" );
	},

	Old_German_Monument_1_Planted = function( trigger )
	{
		Util.MapDebugPrint( "Old_German_Monument_1_Planted" );
	},

	South_PAK_75mm_Gun_Planted = function( trigger )
	{
		Util.MapDebugPrint( "South_PAK_75mm_Gun_Planted" );
	},

	Allied_Command_Post_Defused = function( trigger )
	{
		Util.MapDebugPrint( "Allied_Command_Post_Defused" );
	},

	Axis_Command_Post_Defused = function( trigger )
	{
		Util.MapDebugPrint( "Axis_Command_Post_Defused" );
	},

	Garrison_MG_Nest_Defused = function( trigger )
	{
		Util.MapDebugPrint( "Garrison_MG_Nest_Defused" );
	},

	North_PAK_75mm_Gun_Defused = function( trigger )
	{
		Util.MapDebugPrint( "North_PAK_75mm_Gun_Defused" );
	},

	Old_City_MG_Nest_Defused = function( trigger )
	{
		Util.MapDebugPrint( "Old_City_MG_Nest_Defused" );
	},

	Old_German_Monument_Defused = function( trigger )
	{
		Util.MapDebugPrint( "Old_German_Monument_Defused" );
	},

	Old_German_Monument_1_Defused = function( trigger )
	{
		Util.MapDebugPrint( "Old_German_Monument_1_Defused" );
	},

	South_PAK_75mm_Gun_Defused = function( trigger )
	{
		Util.MapDebugPrint( "South_PAK_75mm_Gun_Defused" );
	},

	Allied_Command_Post_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Allied_Command_Post_Destroyed" );
	},

	Axis_Command_Post_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Axis_Command_Post_Destroyed" );
	},

	Garrison_MG_Nest_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Garrison_MG_Nest_Destroyed" );
	},

	North_PAK_75mm_Gun_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "North_PAK_75mm_Gun_Destroyed" );
	},

	Old_City_MG_Nest_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Old_City_MG_Nest_Destroyed" );
	},

	Old_German_Monument_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Old_German_Monument_Destroyed" );
	},

	Old_German_Monument_1_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Old_German_Monument_1_Destroyed" );
	},

	South_PAK_75mm_Gun_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "South_PAK_75mm_Gun_Destroyed" );
	},

	oldcityflag_Axis_Captured = function( trigger )
	{
		Util.MapDebugPrint( "oldcityflag_Axis_Captured" );
	},

	oldcityflag_Allies_Captured = function( trigger )
	{
		Util.MapDebugPrint( "oldcityflag_Allies_Captured" );
	},

};

global OnMapLoad = function()
{
	// Register callback functions
	OnTrigger( "Allied Command Post constructed. Charge speed increased!", Map.Allied_Command_Post_Built );
	OnTrigger( "Axis Command Post constructed. Charge speed increased!", Map.Axis_Command_Post_Built );
	OnTrigger( "The Garrison MG Nest has been constructed!", Map.Garrison_MG_Nest_Built );
	OnTrigger( "The Old City MG Nest has been constructed!", Map.Old_City_MG_Nest_Built );
	OnTrigger( "Planted at the Allied Command Post.", Map.Allied_Command_Post_Planted );
	OnTrigger( "Planted at the Axis Command Post.", Map.Axis_Command_Post_Planted );
	OnTrigger( "Defused at the Allied Command Post.", Map.Allied_Command_Post_Defused );
	OnTrigger( "Defused at the Axis Command Post.", Map.Axis_Command_Post_Defused );
	OnTrigger( "Axis team has destroyed the Allied Command Post!", Map.Allied_Command_Post_Destroyed );
	OnTrigger( "Allied team has destroyed the Axis Command Post!", Map.Axis_Command_Post_Destroyed );
	OnTrigger( "The Garrison MG Nest has been damaged!", Map.Garrison_MG_Nest_Destroyed );
	OnTrigger( "Allies have destroyed the North Anti-Tank Gun!", Map.North_PAK_75mm_Gun_Destroyed );
	OnTrigger( "The Old City MG Nest has been damaged!", Map.Old_City_MG_Nest_Destroyed );
	OnTrigger( "Allies have breached the Old City wall", Map.Old_German_Monument_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Old_German_Monument_1_Destroyed );
	OnTrigger( "Allied team has destroyed the South Anti-Tank Gun!", Map.South_PAK_75mm_Gun_Destroyed );
	OnTrigger( "Axis reclaim the Old City!", Map.oldcityflag_Axis_Captured );
	OnTrigger( "Allies capture the Old City!", Map.oldcityflag_Allies_Captured );

	SetAvailableMapGoals( TEAM.ALLIES, false, "PLANT_Old_German_Monument_1" );

	Util.MapDebugPrint( "Omni-bot map script for " + GetMapName() + " executed." );
};
