
ZOOMEVENT = 1 --param, x et y : les deux coordonnées de zoom, -- a appeler dans les site de fouilles uniquement !
DIAGEVENT = 2 -- param : "name" , mot clé du dialogue
FADEINEVENT = 3 --event de fade, param : length fadespeed en seconde
FADEOUTEVENT = 4 --idem
SWITCHEVENT = 5 --va sur un autre site de fouille, param dest : nom de la destination
PLAYANIMEEVENT = 6 -- joue l'anim, on ne change pas le fps par contre
SHOWSPRITEEVENT = 7 -- 
HIDESPRITEEVENT = 8
PAUSEEVENT = 9 -- length : longueur de la pause
PLAYSOUNDEVENT = 10  --on joue un son, name : nom du son, length : longueur de l'attente (peut être zéro)
SHAKEEVENT = 11
WAITEVENT = 12 --on attend
TRAVELING = 13  --déplacement des backgrounds , endx et endy pour la destination et speed poru la vitesse ( mettre 5  si vous ne savez pas)
MOVESPRITE = 14 --déplacement d'un sprite, param similaire au traveling sauf que l'on précise le nom de l'unit
SETFRAME = 15 --setframe sur un sprite, unit : nom de l'unit, frame : le numéro de la frame,length longeur de l'event
STOPEMITTING = 16 -- stop les particules, unit nom de l'unit particules ou du node parent si celle-ci est dynamique, length pour la temporisation (peut etre zéro)
FADESPRITE = 17 --fade sprite,  paramétre fadetype : "visible" ou "invisible", et speed
PLAYVIDEO = 18 --pour jouer une cinématique InGame, paramètre name = le nom de la cinématique à jouer
--faire switch d'écran + afficher sprite, et afficher animation


DEFAULTEVENTTIME = 60

DEFAULTFADETIME = 1

CUTSCENEDESC = 
{

	cutscenetest = 
	{
		--{event = ZOOMEVENT , x = 800 , y= 20},
		{event = PLAYSOUNDEVENT , name = "money" , length = 0.5},
		{event = ZOOMEVENT , x = 800 , y= 20},
		{event = SHAKEEVENT, strength = 10, length = 2},
		{event = DIAGEVENT , name = "CONCLUSION_02"}	,
		{event = FADEOUTEVENT , length = 0.5},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event =  FADEINEVENT , length = 1.5},
		{event = SWITCHEVENT , dest = "L01_S03"},
		{event = PLAYANIMEEVENT , unit = "L01_S03_Door"},
		{event = PAUSEEVENT , length = 1.5},
		{event = SHOWSPRITEEVENT , unit = "L01_S03_CuttedBush"},
		{event = HIDESPRITEEVENT , unit = "L01_S03_CuttedBush"},
		--{event = TRAVELING , endx = 100, endy = 200, speed = 5},
		{event = MOVESPRITE , unit = "L01_S03_Door",endx = 550,endy = 0, speed = 5},
		{event = SETFRAME , unit = "L01_S03_Door",frame = 2},
		{event = STOPEMITTING,unit = "L01_S03_EmitterFireflyY",length = 2},
		{event = FADESPRITE,unit = "L01_S03_Door",fadetype = "invisible" ,speed = 2},
		{event = FADESPRITE,unit = "L01_S03_Door",fadetype = "visible" ,speed = 2},
	},
	
	simplefadeloop = 
	{
		{event =  FADEOUTEVENT , length = 1.5},
		{event = WAITEVENT, length = 2},
		{event =  FADEINEVENT , length = 1.5},
	},
	
	--Niveau01
	
	
	CUTSCENE_l01_01 =
	{
		{event = HIDESPRITEEVENT , unit = "L01_S03_SpriteLever"},
		{event = SHOWSPRITEEVENT , unit = "L01_S03_LeverDown"},
		{event = SHOWSPRITEEVENT , unit = "L01_S03_Door"},		
		{event = SWITCHEVENT , dest = "L01_S03"},
		{event = PLAYSOUNDEVENT , name = "stone_door_open",length = 0},
		{event = PLAYANIMEEVENT , unit = "L01_S03_Door"},
		{event = DIAGEVENT , name = "CS_01_A03_03"},
		{event = SETFRAME , unit = "L01_S03_SpriteLever",frame = 0},
		{event = SWITCHEVENT , dest = "L01_S03_C01"},
		{event = HIDESPRITEEVENT , unit = "L01_S03_LeverDown"},
	},
	
	CUTSCENE_l01_01_fail =
	{
		{event = HIDESPRITEEVENT , unit = "L01_S03_SpriteLever"},
		{event = SHOWSPRITEEVENT , unit = "L01_S03_LeverDown"},
		{event = SWITCHEVENT , dest = "L01_S03"},
		{event = PLAYSOUNDEVENT , name = "stone_door_open",length = 0},
		{event = PLAYANIMEEVENT , unit = "L01_S03_Door"},
		{event = SETFRAME , unit = "L01_S03_SpriteLever",frame = 0},
		{event = SWITCHEVENT , dest = "L01_S03_C01"},
		{event = HIDESPRITEEVENT , unit = "L01_S03_LeverDown"},
	},
	
	CUTSCENE_l01_02 =
	{
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = -22 , y= -117, rotx=0, roty=0},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYSOUNDEVENT , name = "stone_door_open",length = 2},
		{event = PLAYANIMEEVENT , unit = "L01_S06_DoorWall"},
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYSOUNDEVENT , name = "relic_reward",length = 2},
		{event = DIAGEVENT , name = "CS_01_A06_02"},
	},
	

	--Niveau02
	
	CUTSCENE_l02_01 =
	{
		{event = PLAYSOUNDEVENT , name = "wick",length = 0},
		{event = PLAYANIMEEVENT , unit = "L02_S01_Dynamite3"},
		{event = PLAYSOUNDEVENT , name = "explosion",length = 0},
		{event = HIDESPRITEEVENT , unit = "L02_S01_Rock", length = 0},
		{event = PLAYANIMEEVENT , unit = "L02_S01_Explosion"},
		{event = PLAYSOUNDEVENT , name = "rock_destroyed",length = 0},
		{event = PLAYSOUNDEVENT , name = "progress_reward",length = 1},
	},
	
	CUTSCENE_l02_02a =
	{
		{event = PLAYANIMEEVENT , unit = "L02_S06_Raylight"},
		{event = PAUSEEVENT , length = 1},
		{event = SHOWSPRITEEVENT , unit = "L02_S04_RaylightRight"},
		{event = SWITCHEVENT , dest = "L02_S04"},
		{event = PAUSEEVENT , length = 2},
		{event = HIDESPRITEEVENT , unit = "L02_S04_RaylightRight"},
		{event = PAUSEEVENT , length = 0.5},
		{event = SWITCHEVENT , dest = "L02_S06"},
		
	},
	
	CUTSCENE_l02_02b =
	{
		{event = PLAYANIMEEVENT , unit = "L02_S06_Raylight"},
		{event = PAUSEEVENT , length = 1},
		{event = SWITCHEVENT , dest = "L02_S04"},
		{event = SHOWSPRITEEVENT , unit = "L02_S04_RaylightRight"},
		{event = SHOWSPRITEEVENT , unit = "L02_S04_RELIC"},
		{event = PLAYANIMEEVENT , unit = "L02_S04_Door"},
		{event = PAUSEEVENT , length = 2},
		{event = HIDESPRITEEVENT , unit = "L02_S04_RaylightRight"},
		{event = PAUSEEVENT , length = 0.5},
		{event = SWITCHEVENT , dest = "L02_S06"},
	},	
	
	CS_02_A01_0203 =
	{
		{event = DIAGEVENT , name = "CS_02_A01_02"},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = PAUSEEVENT , length = 1},
		{event = FADEINEVENT , length = 0.2},
		{event = DIAGEVENT , name = "CS_02_A01_03"},
	},
	
	CUTSCENE_l02_03 =
	{
		{event = SHAKEEVENT, strength = 6, length = 2},
		{event = FADEOUTEVENT , length = 0.5},
		{event = SHOWSPRITEEVENT , unit = "L02_S03_Wall"},
		{event =  FADEINEVENT , length = 1.5},
		{event = DIAGEVENT , name = "CS_02_A03_02b"},
	},

	-- Niveau03
	--crocodile
	
	CS_03_A02_03 =
	{
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = -100 , y= 200, rotx=100, roty=-300},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYANIMEEVENT , unit = "L03_S02_CrocodileAnimation"},
		{event = PAUSEEVENT , length = 1},
 		{event = DIAGEVENT , name = "CS_03_A02_03"},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
	},
	
	CS_03_A02_04 = 
	{
		{event = MOVESPRITE , unit = "L03_S02_CrocoFoliage",endx = 338,endy = 477, speed = 5},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = -100 , y= 200, rotx=100, roty=-300},
		{event = FADEINEVENT , length = 0.2},
		{event = PAUSEEVENT , length = 1},
 		{event = DIAGEVENT , name = "CS_03_A02_04"},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
	},
	
	CUTSCENE_l03_01 =
	{
		{event = SHAKEEVENT, strength = 6, length = 1.5},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 317 , y= -224, rotx=-428, roty=-84},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYANIMEEVENT , unit = "L03_S06_Wall"},
		{event = PLAYSOUNDEVENT , name = "relic_reward",length = 2},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
		
	},
	
	CUTSCENE_l03_02 =
	{
		{event = PAUSEEVENT , length = 1},
		{event = SWITCHEVENT , dest = "L03_S04"},
		{event = STOPEMITTING,unit = "L03_S04_EmitterWave",length = 0},
		{event = FADESPRITE,unit = "L03_S04_Water",fadetype = "invisible" ,speed = 2},
		{event = PLAYSOUNDEVENT , name = "progress_reward",length = 2},
		{event = SWITCHEVENT , dest = "L03_S05"},
		{event = PAUSEEVENT , length = 1},
	},
	
	CUTSCENE_l03_03 =
	{
		{event = PAUSEEVENT , length = 1},
		{event = SWITCHEVENT , dest = "L03_S04"},
		{event = FADESPRITE,unit = "L03_S04_Ladder",fadetype = "invisible" ,speed = 1},
		{event = SETFRAME , unit = "L03_S04_Ladder",frame = 1},
		{event = FADESPRITE,unit = "L03_S04_Ladder",fadetype = "visible" ,speed = 1},
		{event = PLAYSOUNDEVENT , name = "progress_reward",length = 2},
		{event = SWITCHEVENT , dest = "L03_S05"},
		{event = PAUSEEVENT , length = 1},
	},

	
	-- Niveau05
	
	CUTSCENE_l05_01 =
	{
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 70 , y= -240, rotx=0, roty=39},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYSOUNDEVENT , name = "stone_door_open",length = 0},
		{event = PLAYANIMEEVENT , unit = "L05_S06_Door"},
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYSOUNDEVENT , name = "relic_reward",length = 2},
		{event = DIAGEVENT , name = "CS_05_A06_03"},
	
	
	},
	
	-- Niveau06
	
	CUTSCENE_l06_01 =
	{
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 71 , y= -59, rotx=0, roty=0},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYSOUNDEVENT , name = "gas",length = 0},
		{event = PLAYANIMEEVENT , unit = "L06_S03_SmokeRight"},
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
		{event = DIAGEVENT , name = "INFO_06_A03_01"},
	},
	
	CUTSCENE_l06_02 =
	{
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = -164 , y= 240, rotx=6, roty=-319},
		{event = FADEINEVENT , length = 0.2},
		{event = FADESPRITE,unit = "L06_S06_Miror4P1LightedFinal",fadetype = "visible" ,speed = 2},
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
		{event = DIAGEVENT , name = "CS_06_A06_02"},
	},
	
	CUTSCENE_l06_03 =
	{
		{event = STOPEMITTING,unit = "L06_S03_EmitterPoisonFog",length = 2},
		{event = DIAGEVENT , name = "CS_06_A03_02"},
		{event = PLAYSOUNDEVENT , name = "progress_reward",length = 0},
	},
	
	--Niveau07
	
	CUTSCENE_l07_01 =
	{
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 203 , y= 240, rotx=0, roty=-93},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYSOUNDEVENT , name = "stone_door_open",length = 0},
		{event = PLAYANIMEEVENT , unit = "L07_S04_Door"},
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYSOUNDEVENT , name = "progress_reward",length = 0},
	},
	
	CUTSCENE_l07_02 =
	{
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 10 , y= 192, rotx=0, roty=0},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYSOUNDEVENT , name = "stone_door_open",length = 0},
		{event = PLAYANIMEEVENT , unit = "L07_S06_Altar"},
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYSOUNDEVENT , name = "progress_reward",length = 0},
		{event = DIAGEVENT , name = "CS_07_A06_05"},
	},
	
	--Niveau08
	
	CUTSCENE_l08_01 =
	{
		{event = PAUSEEVENT , length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 34 , y= 117, rotx=0, roty=0},
		{event = FADEINEVENT , length = 0.2},
		{event = PAUSEEVENT , length = 2},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
		{event = DIAGEVENT , name = "CS_08_A06_01"},
	},
	
	--Niveau09
	
	CUTSCENE_l09_01 =
	{
		{event =  FADEOUTEVENT , length = 0.2},
		--{event = ZOOMEVENT , x = -59 , y= -240, rotx=0, roty=271},
		{event = FADEINEVENT , length = 0.2},
		{event = DIAGEVENT , name = "INFO_RAY_L09_03"},
		{event = PAUSEEVENT , length = 1},
		--{event =  FADEOUTEVENT , length = 0.2},
		--{event = ZOOMEVENT , x = 20 , y= 20},
		--{event = FADEINEVENT , length = 0.2},
		
	},
	
	CUTSCENE_l09_02 =
	{
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = -23 , y= 327, rotx=-42, roty=-321},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYANIMEEVENT , unit = "L09_S06_RelicAnim"},
		{event = PLAYSOUNDEVENT , name = "relic_reward",length = 1},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = FADEINEVENT , length = 0.2},
		{event = DIAGEVENT , name = "CS_09_A06_03"},
	},
	
	CUTSCENE_l09_03 =
	{
		{event = SWITCHEVENT , dest = "L09_S02"},
		{event = PAUSEEVENT , length = 2},
		{event =  FADEOUTEVENT , length = 0.2},
		{event = ZOOMEVENT , x = 320 , y= 21, rotx=-426, roty=-183},
		{event = FADEINEVENT , length = 0.2},
		{event = PLAYANIMEEVENT , unit = "L09_S02_Gratting"},
		{event = PLAYSOUNDEVENT , name = "progress_reward",length = 2},
		{event = ZOOMEVENT , x = 20 , y= 20},
		{event = SWITCHEVENT , dest = "L09_S04"},
	},
	
	--Niveau10
	
	CUTSCENE_l10_01 =
	{
		{event = PAUSEEVENT , length = 1},
		{event = TRAVELING , endx = 0, endy = -50, speed = 1},
		{event = PLAYANIMEEVENT , unit = "L10_S06_Blood"},
		{event = PAUSEEVENT , length = 0.5},
		{event = DIAGEVENT , name = "CS_10_A06_02"},
		{event = PLAYSOUNDEVENT , name = "progress_reward",length = 2},
	},
	
--~ 	CUTSCENE_l10_02 =
--~ 	{
--~ 		{event = PAUSEEVENT , length = 1},
--~ 		{event = FADESPRITE,unit = "L10_S02_Fire",fadetype = "invisible" ,speed = 2},
--~ 		{event = PLAYSOUNDEVENT , name = "progress_reward",length = 2},
--~ 	},
	
	--Niveau11
	VIDEO_CIN_03 = 
	{
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
		{ event = PLAYVIDEO, name = "Cin_03" },
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
	},
	
	VIDEO_CIN_04 = 
	{
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
		{ event = PLAYVIDEO, name = "Cin_04" },
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
	},
	
	VIDEO_CIN_05 = 
	{
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
		{ event = PLAYVIDEO, name = "Cin_05" },
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
	},
	
	VIDEO_CIN_06 = 
	{
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
		{ event = PLAYVIDEO, name = "Cin_06" },
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
	},
	
	VIDEO_CIN_07 = 
	{
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
		{ event = PLAYVIDEO, name = "Cin_07" },
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
	},
	
	VIDEO_CIN_08 = 
	{
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
		{ event = PLAYVIDEO, name = "Cin_08" },
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
	},
	
	VIDEO_CIN_09 = 
	{
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
		{ event = PLAYVIDEO, name = "Cin_09" },
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
	},
	
	VIDEO_CIN_10 = 
	{
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
		{ event = PLAYVIDEO, name = "Cin_10" },
		{ event = FADEOUTEVENT, length = 0.1 },
		{ event = FADEINEVENT, length = 0.1 },
	},
}
