game_manager
{

	spawn
	{
	wm_axis_respawntime 3
	wm_allied_respawntime 3
	wm_set_round_timelimit 15
	wm_setwinner -1
	wait 50
	setstate allies_1 invisible
	setstate allies_2 invisible
	setstate allies_3 invisible
	setstate allies_4 invisible
	setstate allies_5 invisible
	setstate allies_6 invisible
	setstate allies_7 invisible
	setstate allies_8 invisible
	setstate allies_9 invisible
	setstate allies_10 invisible
	setstate axis_1 invisible
	setstate axis_2 invisible
	setstate axis_3 invisible
	setstate axis_4 invisible
	setstate axis_5 invisible
	setstate axis_6 invisible
	setstate axis_7 invisible
	setstate axis_8 invisible
	setstate axis_9 invisible
	setstate axis_10 invisible
	globalaccum 1 set 0
	globalaccum 2 set 0
	globalaccum 3 set 0

	}

	trigger check_winner
	{
	wm_setwinner -1
	globalaccum 3 abort_if_equal 0
	wm_setwinner 1
	globalaccum 3 abort_if_greater_than 0
	wm_setwinner 0
	}

	trigger alp1
	{
	globalaccum 1 abort_if_not_equal 1
	setstate allies_0 invisible
	setstate allies_1 default
	}
	trigger alp2
	{
	globalaccum 1 abort_if_not_equal 2
	setstate allies_1 invisible
	setstate allies_2 default
	}
	trigger alp3
	{
	globalaccum 1 abort_if_not_equal 3
	setstate allies_2 invisible
	setstate allies_3 default
	}
	trigger alp4
	{
	globalaccum 1 abort_if_not_equal 4
	setstate allies_3 invisible
	setstate allies_4 default
	}
	trigger alp5
	{
	globalaccum 1 abort_if_not_equal 5
	setstate allies_4 invisible
	setstate allies_5 default
	}
	trigger alp6
	{
	globalaccum 1 abort_if_not_equal 6
	setstate allies_5 invisible
	setstate allies_6 default
	}
	trigger alp7
	{
	globalaccum 1 abort_if_not_equal 7
	setstate allies_6 invisible
	setstate allies_7 default
	}
	trigger alp8
	{
	globalaccum 1 abort_if_not_equal 8
	setstate allies_7 invisible
	setstate allies_8 default
	}

	trigger alp9
	{
	globalaccum 1 abort_if_not_equal 9
	setstate allies_8 invisible
	setstate allies_9 default
	}

	trigger alp10
	{
	globalaccum 1 abort_if_not_equal 10
	setstate allies_9 invisible
	setstate allies_10 default
	wm_setwinner 1
	wm_endround
	disablespeaker zero
	}

	trigger axp1
	{
	globalaccum 2 abort_if_not_equal 1
	setstate axis_0 invisible
	setstate axis_1 default
	}

	trigger axp2
	{
	globalaccum 2 abort_if_not_equal 2
	setstate axis_1 invisible
	setstate axis_2 default
	}

	trigger axp3
	{
	globalaccum 2 abort_if_not_equal 3
	setstate axis_2 invisible
	setstate axis_3 default
	}

	trigger axp4
	{
	globalaccum 2 abort_if_not_equal 4
	setstate axis_3 invisible
	setstate axis_4 default
	}

	trigger axp5
	{
	globalaccum 2 abort_if_not_equal 5
	setstate axis_4 invisible
	setstate axis_5 default
	}

	trigger axp6
	{
	globalaccum 2 abort_if_not_equal 6
	setstate axis_5 invisible
	setstate axis_6 default
	}

	trigger axp7
	{
	globalaccum 2 abort_if_not_equal 7
	setstate axis_6 invisible
	setstate axis_7 default
	}

	trigger axp8
	{
	globalaccum 2 abort_if_not_equal 8
	setstate axis_7 invisible
	setstate axis_8 default
	}

	trigger axp9
	{
	globalaccum 2 abort_if_not_equal 9
	setstate axis_8 invisible
	setstate axis_9 default
	}

	trigger axp10
	{
	globalaccum 2 abort_if_not_equal 10
	setstate axis_9 invisible
	setstate axis_10 default
	wm_setwinner 0
	wm_endround
	disablespeaker zero
	}

}

al_point
{
	trigger alpoint
	{
	wm_announce "^5ALLIES ^7point + 1"
	globalaccum 1 inc 1
	globalaccum 3 inc 1
	trigger game_manager check_winner
	trigger game_manager alp1
	trigger game_manager alp2
	trigger game_manager alp3
	trigger game_manager alp4
	trigger game_manager alp5
	trigger game_manager alp6
	trigger game_manager alp7
	trigger game_manager alp8
	trigger game_manager alp9
	trigger game_manager alp10
	}
}

ax_point
{
	trigger axpoint
	{
	wm_announce "^1AXIS ^7point + 1"
	globalaccum 2 inc 1
	globalaccum 3 inc -1
	trigger game_manager check_winner
	trigger game_manager axp1
	trigger game_manager axp2
	trigger game_manager axp3
	trigger game_manager axp4
	trigger game_manager axp5
	trigger game_manager axp6
	trigger game_manager axp7
	trigger game_manager axp8
	trigger game_manager axp9
	trigger game_manager axp10
	}
}