//#include "SHORTCUTT_18b_dlg.h"
#include "cutscene_common.cs"
 
// global variables
int ce01, ce04, ce11, player;
 
void main()
{
 
	LoadScene("se01");
 
	//fade in
	Fade(0, 0, 0, 1, 0, 0, 0, 0, 1, 1);
 
	//show movie border
 
	ShowMovieBorder("movie", 120);
 	
 	// spawn chara and set initial position
 	ce01= SpawnMale(19.2, 333.4, 10.6);
	SetCharaWeapon(ce01, 30);
 
	ce04= SpawnFemale(5.5, 219.9, 2.5);
	SetCharaWeapon(ce04, 20);
	
	ce11= SpawnChara("CE11", -0.7, 316, 10.5);
	SetCharaWeapon(ce11, 32);
 	//19.2, 333.4, 10.6
 	//-18.6, 332.3, 10.5
 
	// Set chara initial direction
	SetEntityDir(ce04, 0, 1, 0);
 	SetEntityDir(ce01, -0.2, -0.9, 0);
 	SetEntityDir(ce11, 0, -1, 0);
 
	// get player and hide acZaras
 	player = GetPlayerChara();
	ShowEntity(ce01, 1);
	ShowEntity(ce04, 1);
	ShowEntity(ce11, 1);
 
	// delete acZaras and resZarae player after end cutscene
	ActorList(ce01);
	ActorList(ce04);
	ActorList(ce11);
	
	LookChara(ce01, ce04);
 	LookChara(ce04, ce11);
 	LookChara(ce11, ce04);
	
 
	//Set Cam initial
	SetCamPos(23.2, 204.6, 26);
	SetCamDir(118.2, 10.9, 0);
 	Sleep(0.5);
	
	//Q1 Excellent. A most powerful attack.
	BeginFadeImg("cs_ce11", 30, 30, 180, 90, 1, 1, 0.5);
		BeginText(SHORTCUTT_18b_Q1, 210, 60, 1.5);
			PlayVoice("t-18_qi_001");
			Sleep(3.3); 
		EndText(SHORTCUTT_18b_Q1, 0.5);
	
	Sleep(0.5);
 
	//Q2a Remember, when fighting, in addition to using
	//Q2b the terrain to your advantage, a warrior uses
	//Q2c everything available as a weapon.
		BeginText(SHORTCUTT_18b_Q2a, 210, 40, 1.5);
		BeginText(SHORTCUTT_18b_Q2b, 210, 60, 1.5);
		BeginText(SHORTCUTT_18b_Q2c, 210, 80, 1.5);
		//	PlayVoice("cs1");
			Sleep(8.7); 
		EndText(SHORTCUTT_18b_Q2a, 0.5);
		EndText(SHORTCUTT_18b_Q2b, 0.5);
		EndText(SHORTCUTT_18b_Q2c, 0.5);
	Sleep(0.5);
 
		
 
	//Q3 This includes objects that you might find.
		BeginText(SHORTCUTT_18b_Q3, 210, 60, 1.5);
		//	PlayVoice("cs1");
			Sleep(2.2);
		EndText(SHORTCUTT_18b_Q3, 0.5);
	Sleep(0.5);
	
	
	//-------------------
	SetCamPos(13.7, 301.4, 41);
	SetCamDir(137.6, 6.7, 0);
	
	//Q4a To throw objects, face the object you want to 
	//Q4b throw. 
		BeginText(SHORTCUTT_18b_Q4a, 210, 50, 1.5);
		BeginText(SHORTCUTT_18b_Q4b, 210, 70, 1.5);
		//	PlayVoice("cs1");
			Sleep(2.2); 
		EndText(SHORTCUTT_18b_Q4a, 0.5);
		EndText(SHORTCUTT_18b_Q4b, 0.5);
	Sleep(0.3);
	
	//Q4c Press and hold the RIGHT THUMBSTICK, then 
	//Q4d press X to pick it up.
		BeginText(SHORTCUTT_18b_Q4c, 210, 50, 1.5);
		BeginText(SHORTCUTT_18b_Q4d, 210, 70, 1.5);
		//	PlayVoice("cs1");
			Sleep(3); 
		EndText(SHORTCUTT_18b_Q4c, 0.5);
		EndText(SHORTCUTT_18b_Q4d, 0.5);
	Sleep(0.3);
		
	//Q4e Press X again to throw it. You will be more 
	//Q4f accurate if locked on to your target. 
		BeginText(SHORTCUTT_18b_Q4e, 210, 50, 1.5);
		BeginText(SHORTCUTT_18b_Q4f, 210, 70, 1.5);
		//	PlayVoice("cs1");
			Sleep(5); 
		EndText(SHORTCUTT_18b_Q4e, 0.5);
		EndText(SHORTCUTT_18b_Q4f, 0.5);
	Sleep(0.5);
	
	//Q4g You can also perform a Chi throw by holding 
	//Q4h down X and letting your Chi build up before 
	//Q4i releasing.
 		BeginText(SHORTCUTT_18b_Q4g, 210, 40, 1.5);
		BeginText(SHORTCUTT_18b_Q4h, 210, 60, 1.5);
		BeginText(SHORTCUTT_18b_Q4i, 210, 80, 1.5);
		//	PlayVoice("cs1");
			Sleep(6.7); 
		EndText(SHORTCUTT_18b_Q4g, 0.5);
		EndText(SHORTCUTT_18b_Q4h, 0.5);
		EndText(SHORTCUTT_18b_Q4i, 0.5);
	Sleep(0.5);
	
	//Q4 Try throwing an object at me now.
		BeginText(SHORTCUTT_18b_Q5, 210, 60, 1.5);
		//	PlayVoice("cs1");
			WaitVoiceUntil(); 
		EndText(SHORTCUTT_18b_Q5, 0.5);
	EndFadeImg("cs_ce11", 0.5);

 
	Fade(0, 0, 0, 0, 0, 0, 0, 1, 2, 1);
	Sleep(2);
 
	//fade out
 
	//end
 
	TheEnd();
 
}