//dusk_beta3b script
//points 1-3 are the 3 various goal and goal locations.
//point 8 keeps track of who is attacking-do not use on a waypoint ingame available = attacking

on_start
	{
		blue_available_point1
		blue_notavailable_point2
		blue_notavailable_point3
		blue_notavailable_point4
		blue_notavailable_point5
		blue_notavailable_point6
		blue_notavailable_point7
		blue_available_point8
		red_notavailable_point1
		red_notavailable_point2
		red_notavailable_point3
		red_available_point4
		red_notavailable_point5
		red_notavailable_point6
		red_notavailable_point7
		red_notavailable_point8
	}

on_msg(Objective One Destroyed!)
	{
		if_blue_point8
			{
				red_notavailable_point4
				red_available_point5
				blue_notavailable_point1
				blue_available_point2
				blue_available_point7
			}
	}

on_msg(Objective One Destroyed!)
	{
		if_red_point8
			{
				red_notavailable_point1
				red_available_point2
				red_available_point7
				blue_notavailable_point4
				blue_available_point5
			}
	}

on_msg(The Train has been Started)
	{
		if_blue_point8
			{
				red_notavailable_point5
				red_available_point6
				blue_notavailable_point2
				blue_notavailable_point7
				blue_available_point3
			}
	}

on_msg(The Train has been Started)
	{
		if_red_point8
			{
				red_notavailable_point2
				red_notavailable_point7
				red_available_point3
				blue_notavailable_point5
				blue_available_point6
			}
	}

on_msg(The Town has been Taken!)
	{
		if_blue_point8
			{
				red_available_point1
				red_notavailable_point2
				red_notavailable_point3
				red_notavailable_point6
				red_notavailable_point7
				blue_notavailable_point1
				blue_notavailable_point2
				blue_notavailable_point3
			}
	}

on_msg(The Town has been Taken!)
	{
		if_red_point8
			{
				blue_available_point1
				blue_notavailable_point2
				blue_notavailable_point3
				blue_notavailable_point6
				blue_notavailable_point7
				red_notavailable_point1
				red_notavailable_point2
				red_notavailable_point3
			}
	}

on_msg(The Town has been Taken!)
	{
		if_blue_point1
			{
				red_available_point4
				red_notavailable_point8
				blue_notavailable_point4
				blue_available_point8
			}
	}

on_msg(The Town has been Taken!)
	{
		if_red_point1
			{
				blue_available_point4
				blue_notavailable_point8
				red_notavailable_point4
				red_available_point8
			}
	}

on_msg(Defending Team Holds)
	{
		if_blue_point8
			{
				red_available_point1
				red_notavailable_point2
				red_notavailable_point3
				red_notavailable_point6
				red_notavailable_point7
				blue_notavailable_point1
				blue_notavailable_point2
				blue_notavailable_point3
			}
	}

on_msg(Defending Team Holds)
	{
		if_red_point8
			{
				blue_available_point1
				blue_notavailable_point2
				blue_notavailable_point3
				blue_notavailable_point6
				blue_notavailable_point7
				red_notavailable_point1
				red_notavailable_point2
				red_notavailable_point3
			}
	}

on_msg(Defending Team Holds)
	{
		if_blue_point1
			{
				red_available_point4
				red_notavailable_point8
				blue_available_point8
			}
	}

on_msg(Defending Team Holds)
	{
		if_red_point1
			{
				blue_available_point4
				blue_notavailable_point8
				red_available_point8
			}
	}