{
	"name" : "Antomis Defence #1",
	"description" : "A number of key Independent systems have come under simultaneous attack by Tzac forces. We need to drive them away, so that we can continue to focus on the more pressing threat of the Pandoran army. At this time, it is vital that we prevent Christabel from making any significant gains by amassing her forces in these locations.",
	"background" : "gfx/backgrounds/background02.jpg",
	"planet" : "gfx/planets/bluePlanet.png",
	"music" : "music/battle/track-4.mp3",
	"requires" : 35,
	"objectives" : [
		{
			"description" : "Eliminate all enemy targets",
			"targetName" : "ENEMY",
			"targetValue" : 1,
			"targetType" : "TT_DESTROY",
			"isEliminateAll" : 1
		},
		{
			"description" : "Defend the jumpgate",
			"targetName" : "Jumpgate",
			"targetType" : "TT_DESTROY",
			"targetValue" : 1,
			"isCondition" : 1
		}
	],
	"player" : {
		"type" : "TAF",
		"side" : "SIDE_ALLIES",
		"pilot" : "2nd Lt. Jim Goddard",
		"squadron" : "Midnight Runners",
		"x" : 20,
		"y" : 45
	},
	"fighters" : [
		{
			"name" : "Wing Commander",
			"types" : "Leopard",
			"side" : "SIDE_ALLIES",
			"x" : 20,
			"y" : 45,
			"number" : 1,
			"scatter" : 350,
			"flags" : "+EF_AI_LEADER",
			"aiFlags" : "+AIF_UNLIMITED_RANGE"
		},
		{
			"types" : "TAF;Ray;Nymph;Firefly;Hyena-A",
			"side" : "SIDE_ALLIES",
			"x" : 20,
			"y" : 45,
			"number" : 7,
			"scatter" : 350,
			"aiFlags" : "+AIF_UNLIMITED_RANGE+AIF_MOVES_TO_LEADER"
		},
		{
			"types" : "Plasma Turret",
			"side" : "SIDE_ALLIES",
			"x" : 24.5,
			"y" : 25
		},
		{
			"types" : "Plasma Turret",
			"side" : "SIDE_ALLIES",
			"x" : 25.5,
			"y" : 25
		},
		{
			"types" : "Shale",
			"side" : "SIDE_TZAC",
			"x" : 30,
			"y" : 5,
			"number" : 6,
			"scatter" : 350,
			"aiFlags" : "+AIF_UNLIMITED_RANGE"
		},
		{
			"types" : "Khepri",
			"side" : "SIDE_TZAC",
			"x" : 30,
			"y" : 5,
			"scatter" : 350,
			"aiFlags" : "AIF_UNLIMITED_RANGE+AIF_TARGET_FOCUS+AIF_MISSILE_BOAT+AIF_LONG_RANGE_FIRE"
		},
		{
			"groupName" : "Rebels-1",
			"types" : "SK-31;Shale",
			"side" : "SIDE_TZAC",
			"x" : 30,
			"y" : 52,
			"number" : 4,
			"scatter" : 350,
			"aiFlags" : "+AIF_UNLIMITED_RANGE",
			"active" : 0
		},
		{
			"groupName" : "Rebels-1",
			"types" : "Khepri",
			"side" : "SIDE_TZAC",
			"x" : 30,
			"y" : 52,
			"number" : 2,
			"scatter" : 350,
			"aiFlags" : "AIF_UNLIMITED_RANGE+AIF_TARGET_FOCUS+AIF_MISSILE_BOAT+AIF_LONG_RANGE_FIRE",
			"active" : 0
		},
		{
			"groupName" : "Rebels-2",
			"types" : "SK-31;Shale",
			"side" : "SIDE_TZAC",
			"x" : 30,
			"y" : -2,
			"number" : 4,
			"scatter" : 350,
			"aiFlags" : "+AIF_UNLIMITED_RANGE",
			"active" : 0
		},
		{
			"groupName" : "Rebels-2",
			"types" : "Khepri",
			"side" : "SIDE_TZAC",
			"x" : 30,
			"y" : -2,
			"number" : 2,
			"scatter" : 350,
			"aiFlags" : "AIF_UNLIMITED_RANGE+AIF_TARGET_FOCUS+AIF_MISSILE_BOAT+AIF_LONG_RANGE_FIRE",
			"active" : 0
		}
	],
	"entities" : [
		{
			"name" : "Jumpgate",
			"type" : "ET_JUMPGATE",
			"side" : "SIDE_ALLIES",
			"x" : 25,
			"y" : 25,
			"flags" : "EF_TAKES_DAMAGE+EF_AI_TARGET"
		}
	],
	"script" : [
		{
			"function" : "TIME 2",
			"lines" : [
				"MSG_BOX Wing Commander;Tzac fighers are moving in on the jumpgate. We need to stop them before they do any serious damage to it.",
				"MSG_BOX Wing Commander;Goddard, command of this operation will fall to you, if events lead to me being unable to participate fully."
			]
		},
		{
			"function" : "ENEMIES_KILLED 5",
			"lines" : [
				"ACTIVATE_ENTITY_GROUPS Rebels-1",
				"MSG_BOX Wingmate;Picking up a second group of fighters, incoming."
			]
		},
		{
			"function" : "ENEMIES_KILLED 12",
			"lines" : [
				"ACTIVATE_ENTITY_GROUPS Rebels-2",
				"MSG_BOX Wingmate;More fighters, inbound!"
			]
		},
		{
			"function" : "JUMPGATE_HEALTH 10",
			"lines" : [
				"MSG_BOX Control;The jumpgate is taking damage!"
			]
		},
		{
			"function" : "JUMPGATE_HEALTH 5",
			"lines" : [
				"MSG_BOX Control;Half the jumpgate's control nodes have been destroyed! We need to step up our efforts to defend it!"
			]
		}
	]
}
