//--------------------------------------------------------
//
// This file contains all the scripted lessons used by 
// the game instructor.
//
//
// PRIORITY LEVELS
// 999 - overrides
// 1 - hints
//
// NOTE: Zero priority lessons are NOT affected by priority, but NEVER affect priority
// 00
//
//
//
// INSTANCE TYPES
//
// 0 = multiple lessons of same type can be open at once
// 1 = only one of each lesson type can be open at once
// 2 = replace lesson of the same type and "replace_key" at a fixed amount "fixed_instances_max"
// 3 = only one instance will display at a time (but all instances will be open)
//
//
// FLAGS (use these to build an integer)
//
//#define LOCATOR_ICON_FX_NONE			0x00000000
//#define LOCATOR_ICON_FX_PULSE_SLOW		0x00000001
//#define LOCATOR_ICON_FX_PULSE_FAST		0x00000002
//#define LOCATOR_ICON_FX_PULSE_URGENT		0x00000004
//
// 
// CAPTION COLOR - supply a string in the format "rrr,ggg,bbb"  ex. "255,255,255" for white
//
//--------------------------------------------------------
//

"instructor_lessons"
{
	"version number"
	{
		"priority"					"0"
		"success_limit"				"2"		// increase this number to force a reset counts for everyone
	}
	
	////////////////////////////////////////////////////////////////////////////////////////
	// Player hurt! Hide lessons when player is being assaulted.
	/////////////////////////////////////////////////////////////////////////////////////////
	"playerhurt bumper"
	{
		"Priority"				"999"
		"instance_type"			"1"
		"timeout"				"5"
		"no_icon_target"		"1"
		"start_sound"			""
		
		"open"
		{
			"player_hurt"
			{
				"local_player is"		"player userid"
				"icon_target set"		"player local_player"
			}	
		}
	}

	"playershoot bumper"
	{
		"replace_key"						"hint"
		"priority"			  "999"
		"instance_type" "1"
		"timeout"				  "2"
		"no_icon_target"		  "1"
		"start_sound"	  ""
		
		"open"
		{
			"weapon_fire"
			{
				"local_player is"		  "player userid"
				"icon_target set"		  "player local_player"
			}	  
		}
	}
	
	////////////////////////////////////////////////////////////////////////////////////////
	// Inventorymenu open bumper. Hide lessons when Inventorymenu is open.
	/////////////////////////////////////////////////////////////////////////////////////////
	"inventorymenu open bumper"
	{
		"priority"              "125"
		"instance_type"         "1"
		"timeout"				"15"
		"no_icon_target"		"1"
		"start_sound"			""

		"open"
		{
			"inventory_open"
			{
				"icon_target set"		"player local_player"
			}
		}

		"close"
		{
			"inventory_close"
			{
				"icon_target set"		"player local_player"
			}
		}
	}

	////////////////////////////////////////////////////////////////////////////////////////
	// Press F to open the Inventrory Menu!
	/////////////////////////////////////////////////////////////////////////////////////////
	"ins_instr_explain_inventorymenu"
	{
		"priority"					"124"
		"instance_type"				"1"
		"binding"					"changeinventory"
		"gamepad_binding"			"+use"
		"onscreen_icon"				"use_binding"
		"caption"					"#ins_instr_explain_inventorymenu"
		"success_limit"				"1"
		"timeout"					"45"
		
		"open"
		{
			"enter_spawnzone"
			{
				"local_player is"		"player userid"
				"icon_target set"		"player local_player"
			}
		}
		
		"success"
		{
			"inventory_close"
			{
				"icon_target set"		"player local_player"
			}
		}

		"close"
		{
			"round_end"
			{
			}

			"exit_spawnzone"
			{
				"local_player is"		"player userid"
			}
			
			"player_death"
			{
				"local_player is"		"player userid"
			}
		}
	}
}
