require( "levels_scripts/tasksconstants.lua" );

local stopkidsjumpingonbed = 99;
local stopkidsdrawingonwall = 99;
local stopkidsfighting = 99;
local stopsleeping = 99;
local stopeating = 99;
local stopbasketball = 99;
local stopyellingoncel = 99;
local startsweeping = 60;
local startlawning = 60;
local startdusting = 60;
local startcutting = 60;
local startwatering = 60;
local stopkickingcouch = 99;
local stopswearwatchingtv = 99;
local stopdrinkingmilkbox = 99;
local startironing = 60;
local startvacuuming = 60;
local startsqueeging = 60;

day =
{
	-- Goals
	goals_easy =
	{
		"kids",
		"studytime",
		4,
		1,
		"dad",
		"messes",
		3,
		10,
		"mom",
		"messes",
		3,
		10,
		"dad",
		"familytime",
		1,
		1,
		"mom",
		"familytime",
		1,
		1,
		"dad",
		"sendtobed",
		1,
		1,
		"mom",
		"changediaper",
		1,
		1,
	},

	goals_medium =
	{
		"kids",
		"studytime",
		4,
		1,
		"dad",
		"messes",
		3,
		10,
		"mom",
		"messes",
		3,
		10,
		"dad",
		"familytime",
		1,
		1,
		"mom",
		"familytime",
		1,
		1,
		"dad",
		"sendtobed",
		1,
		1,
		"mom",
		"changediaper",
		1,
		1,
	},

	goals_hard =
	{
		"kids",
		"studytime",
		4,
		1,
		"dad",
		"messes",
		3,
		10,
		"mom",
		"messes",
		3,
		10,
		"dad",
		"familytime",
		1,
		1,
		"mom",
		"familytime",
		1,
		1,
		"dad",
		"sendtobed",
		1,
		1,
		"mom",
		"changediaper",
		1,
		1,
	},

	-- Extra Goals
	extragoals_easy =
	{
		"dad",
		"messes",
		3,
		4,
		"mom",
		"messes",
		3,
		4,
		"dad",
		"messes",
		3,
		4,
		"mom",
		"messes",
		3,
		4,
	},

	extragoals_medium =
	{
		"dad",
		"messes",
		3,
		5,
		"mom",
		"messes",
		3,
		5,
	},

	extragoals_hard =
	{
		"dad",
		"messes",
		3,
		5,
		"mom",
		"messes",
		3,
		5,
	},


	-- Scenario initial state
	objects_initial_states_easy =
	{
		"banheira",
		"dirty",
		"banheirasuite",
		"dirty",
		"brinquedos",
		"dirty",
		"brinquedos2",
		"clean",
		"camacrianca",
		"dirty",
		"camapai",
		"clean",
		"camayoungchild",
		"clean",
		"desenhobanheiro",
		"dirty",
		"desenhocozinha2",
		"clean",
		"guardaroupafilho",
		"dirty",
		"guardaroupaspais",
		"clean",
		"mimos",
		"clean",
		"novelo1",
		"clean",
		"piabanheiro",
		"dirty",
		"piabanheirosuite",
		"dirty",
		"toy7",
		"dirty",
		"toy1",
		"dirty",
		"toy10",
		"dirty",
		"toy2",
		"dirty",
		"toy3",
		"dirty",
		"toy5",
		"dirty",
		"toy6",
		"dirty",
		"toy8",
		"dirty",
	},

	toys_on_the_floor_easy = 8,

	objects_initial_states_medium =
	{
		"banheira",
		"dirty",
		"banheirasuite",
		"dirty",
		"brinquedos",
		"dirty",
		"brinquedos2",
		"clean",
		"camacrianca",
		"dirty",
		"camapai",
		"clean",
		"camayoungchild",
		"clean",
		"desenhobanheiro",
		"dirty",
		"desenhocozinha2",
		"clean",
		"guardaroupafilho",
		"dirty",
		"guardaroupaspais",
		"clean",
		"mimos",
		"clean",
		"novelo1",
		"clean",
		"piabanheiro",
		"dirty",
		"piabanheirosuite",
		"dirty",
		"toy7",
		"dirty",
		"toy1",
		"dirty",
		"toy10",
		"dirty",
		"toy2",
		"dirty",
		"toy3",
		"dirty",
		"toy5",
		"dirty",
		"toy6",
		"dirty",
		"toy8",
		"dirty",
	},

	toys_on_the_floor_medium = 8,

	objects_initial_states_hard =
	{
		"banheira",
		"dirty",
		"banheirasuite",
		"dirty",
		"brinquedos",
		"dirty",
		"brinquedos2",
		"clean",
		"camacrianca",
		"dirty",
		"camapai",
		"clean",
		"camayoungchild",
		"clean",
		"desenhobanheiro",
		"dirty",
		"desenhocozinha2",
		"clean",
		"guardaroupafilho",
		"dirty",
		"guardaroupaspais",
		"clean",
		"mimos",
		"clean",
		"novelo1",
		"clean",
		"piabanheiro",
		"dirty",
		"piabanheirosuite",
		"dirty",
		"toy7",
		"dirty",
		"toy1",
		"dirty",
		"toy10",
		"dirty",
		"toy2",
		"dirty",
		"toy3",
		"dirty",
		"toy5",
		"dirty",
		"toy6",
		"dirty",
		"toy8",
		"dirty",
	},

	toys_on_the_floor_hard = 8,

	-- jake
	toddler_initial_state = "normal",
	toddler_initial_node = "28",

	toddler_tasks_tutorial =
	{
	},

	toddler_tasks_easy =
	{
		gotoobjectanddo,
		"fallonfloor7",
		"fallonfloor7",
		"10",
		"1",
		gotoobjectanddo,
		"fallonfloor8",
		"fallonfloor8",
		"10",
		"1",
		gotoobjectanddo,
		"vaso",
		"vaso",
		"10",
		"1",
		gotoobjectanddo,
		"plantagrande",
		"plantagrande",
		"10",
		"1",
		gotoobjectanddo,
		"asksleep1",
		"asksleep1",
		"20",
		"2",
		linkedto,
		teleporttoobjectanddo,
		"berco2",
		"berco2",
		gotoobjectanddo,
		timed,
		160000,
		"asksleep2",
		"asksleep2",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"berco2",
		"berco2",
		gotonodeanddo,
		"19",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		60000,
		"diapersquare8",
		"diapersquare8",
		"30",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotoobjectanddo,
		"diapersquare1",
		"diapersquare1",
		"30",
		"3",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotoobjectanddo,
		"fallonfloor5",
		"fallonfloor5",
		"10",
		"1",
		gotoobjectanddo,
		"mimos",
		"mimos",
		"10",
		"1",
		gotonodeanddo,
		"18",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"12",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"163",
		"familytime",
		"0",
		"1",
	},

	toddler_tasks_medium =
	{
		gotoobjectanddo,
		"fallonfloor7",
		"fallonfloor7",
		"10",
		"1",
		gotoobjectanddo,
		"fallonfloor8",
		"fallonfloor8",
		"10",
		"1",
		gotoobjectanddo,
		"vaso",
		"vaso",
		"10",
		"1",
		gotoobjectanddo,
		"plantagrande",
		"plantagrande",
		"10",
		"1",
		gotoobjectanddo,
		"asksleep1",
		"asksleep1",
		"20",
		"2",
		linkedto,
		teleporttoobjectanddo,
		"berco2",
		"berco2",
		gotoobjectanddo,
		timed,
		160000,
		"asksleep2",
		"asksleep2",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"berco2",
		"berco2",
		gotonodeanddo,
		"19",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		60000,
		"diapersquare8",
		"diapersquare8",
		"30",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotoobjectanddo,
		"diapersquare1",
		"diapersquare1",
		"30",
		"3",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotoobjectanddo,
		"fallonfloor5",
		"fallonfloor5",
		"10",
		"1",
		gotoobjectanddo,
		"mimos",
		"mimos",
		"10",
		"1",
		gotonodeanddo,
		"18",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"12",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"163",
		"familytime",
		"0",
		"1",
	},

	toddler_tasks_hard =
	{
		gotoobjectanddo,
		"fallonfloor7",
		"fallonfloor7",
		"10",
		"1",
		gotoobjectanddo,
		"fallonfloor8",
		"fallonfloor8",
		"10",
		"1",
		gotoobjectanddo,
		"vaso",
		"vaso",
		"10",
		"1",
		gotoobjectanddo,
		"plantagrande",
		"plantagrande",
		"10",
		"1",
		gotoobjectanddo,
		"asksleep1",
		"asksleep1",
		"20",
		"2",
		linkedto,
		teleporttoobjectanddo,
		"berco2",
		"berco2",
		gotoobjectanddo,
		timed,
		160000,
		"asksleep2",
		"asksleep2",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"berco2",
		"berco2",
		gotonodeanddo,
		"19",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		60000,
		"diapersquare8",
		"diapersquare8",
		"30",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotoobjectanddo,
		"diapersquare1",
		"diapersquare1",
		"30",
		"3",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotoobjectanddo,
		"fallonfloor5",
		"fallonfloor5",
		"10",
		"1",
		gotoobjectanddo,
		"mimos",
		"mimos",
		"10",
		"1",
		gotonodeanddo,
		"18",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"12",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"163",
		"familytime",
		"0",
		"1",
	},

	-- jamal
	schoolaged_initial_state = "normal",
	schoolaged_initial_node = "25",

	schoolaged_tasks_tutorial =
	{
	},

	schoolaged_tasks_easy =
	{
		gotoobjectanddo,
		"piabanheiro",
		"piabanheiro",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"51",
		"idle",
		"10",
		"2",
		gotonodeanddo,
		"32",
		"idle",
		"10",
		"2",
		gotoobjectanddo,
		"stereo",
		"stereo",
		"10",
		"1",
		gotonodeanddo,
		"14",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"12",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"32",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"69",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		30000,
		"schoolagedsit",
		"schoolagedsit",
		"10",
		"1",
		linkedto,
		gotoobjectanddo,
		"escrivaninha",
		"escrivaninha",
		gotonodeanddo,
		timed,
		120000,
		"19",
		"familytime",
		"10",
		"1",
	},

	schoolaged_tasks_medium =
	{
		gotoobjectanddo,
		"piabanheiro",
		"piabanheiro",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"51",
		"idle",
		"10",
		"2",
		gotonodeanddo,
		"32",
		"idle",
		"10",
		"2",
		gotoobjectanddo,
		"stereo",
		"stereo",
		"10",
		"1",
		gotonodeanddo,
		"14",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"12",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"32",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"69",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		30000,
		"schoolagedsit",
		"schoolagedsit",
		"10",
		"1",
		linkedto,
		gotoobjectanddo,
		"escrivaninha",
		"escrivaninha",
		gotonodeanddo,
		timed,
		120000,
		"19",
		"familytime",
		"10",
		"1",
	},

	schoolaged_tasks_hard =
	{
		gotoobjectanddo,
		"piabanheiro",
		"piabanheiro",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"51",
		"idle",
		"10",
		"2",
		gotonodeanddo,
		"32",
		"idle",
		"10",
		"2",
		gotoobjectanddo,
		"stereo",
		"stereo",
		"10",
		"1",
		gotonodeanddo,
		"14",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"12",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"32",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"69",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		30000,
		"schoolagedsit",
		"schoolagedsit",
		"10",
		"1",
		linkedto,
		gotoobjectanddo,
		"escrivaninha",
		"escrivaninha",
		gotonodeanddo,
		timed,
		120000,
		"19",
		"familytime",
		"10",
		"1",
	},

	-- pet
	pet_initial_state = "normal",
	pet_initial_node = "28",


	pet_tasks_easy =
	{
		gotonodeanddo,
		"176",
		"camayoungchild",
		"10",
		"2",
		gotoobjectanddo,
		"camapai",
		"camapai",
		"10",
		"2",
		gotoobjectanddo,
		"novelo1",
		"novelo1",
		"10",
		"1",
		gotoobjectanddo,
		"novelo2",
		"novelo2",
		"10",
		"1",
		gotoobjectanddo,
		"novelo3",
		"novelo3",
		"10",
		"1",
		gotonodeanddo,
		"33",
		"idle",
		"15",
		"3",
		gotonodeanddo,
		"9",
		"idle",
		"15",
		"2",
		gotonodeanddo,
		"42",
		"idle",
		"15",
		"3",
		gotonodeanddo,
		"51",
		"idle",
		"15",
		"2",
	},

	pet_tasks_medium =
	{
		gotonodeanddo,
		"176",
		"camayoungchild",
		"10",
		"2",
		gotoobjectanddo,
		"camapai",
		"camapai",
		"10",
		"2",
		gotoobjectanddo,
		"novelo1",
		"novelo1",
		"10",
		"1",
		gotoobjectanddo,
		"novelo2",
		"novelo2",
		"10",
		"1",
		gotoobjectanddo,
		"novelo3",
		"novelo3",
		"10",
		"1",
		gotonodeanddo,
		"33",
		"idle",
		"15",
		"3",
		gotonodeanddo,
		"9",
		"idle",
		"15",
		"2",
		gotonodeanddo,
		"42",
		"idle",
		"15",
		"3",
		gotonodeanddo,
		"51",
		"idle",
		"15",
		"2",
	},

	pet_tasks_hard =
	{
		gotonodeanddo,
		"176",
		"camayoungchild",
		"10",
		"2",
		gotoobjectanddo,
		"camapai",
		"camapai",
		"10",
		"2",
		gotoobjectanddo,
		"novelo1",
		"novelo1",
		"10",
		"1",
		gotoobjectanddo,
		"novelo2",
		"novelo2",
		"10",
		"1",
		gotoobjectanddo,
		"novelo3",
		"novelo3",
		"10",
		"1",
		gotonodeanddo,
		"33",
		"idle",
		"15",
		"3",
		gotonodeanddo,
		"9",
		"idle",
		"15",
		"2",
		gotonodeanddo,
		"42",
		"idle",
		"15",
		"3",
		gotonodeanddo,
		"51",
		"idle",
		"15",
		"2",
	},

	-- amanda
	youngchild_initial_state = "normal",
	youngchild_initial_node = "29",

	youngchild_tasks_tutorial =
	{
	},

	youngchild_tasks_easy =
	{
		gotoobjectanddo,
		"brinquedos",
		"brinquedos",
		"10",
		"1",
		gotoobjectanddo,
		"brinquedos2",
		"brinquedos2",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"56",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"40",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"19",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"13",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"60",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"48",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		"guardaroupaspais",
		"guardaroupaspais",
		"10",
		"1",
		gotoobjectanddo,
		"tvquarto",
		"tvquarto",
		"10",
		"1",
		gotonodeanddo,
		"60",
		"familytime",
		"0",
		"1",
	},

	youngchild_tasks_medium =
	{
		gotoobjectanddo,
		"brinquedos",
		"brinquedos",
		"10",
		"1",
		gotoobjectanddo,
		"brinquedos2",
		"brinquedos2",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"56",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"40",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"19",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"13",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"60",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"48",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		"guardaroupaspais",
		"guardaroupaspais",
		"10",
		"1",
		gotoobjectanddo,
		"tvquarto",
		"tvquarto",
		"10",
		"1",
		gotonodeanddo,
		"60",
		"familytime",
		"0",
		"1",
	},

	youngchild_tasks_hard =
	{
		gotoobjectanddo,
		"brinquedos",
		"brinquedos",
		"10",
		"1",
		gotoobjectanddo,
		"brinquedos2",
		"brinquedos2",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"56",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"40",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"19",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"13",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"60",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"48",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		"guardaroupaspais",
		"guardaroupaspais",
		"10",
		"1",
		gotoobjectanddo,
		"tvquarto",
		"tvquarto",
		"10",
		"1",
		gotonodeanddo,
		"60",
		"familytime",
		"0",
		"1",
	},

	-- bob
	dad_initial_state = "normal",
	dad_initial_node = "11",
	dad_idle_time = 3500,

	dad_idle_tasks_easy =
	{
		"dadsweepingidle",
		"good",
		"gotoanddo",
		"dadsweeping",
		startsweeping,

		"daddustingidle",
		"good",
		"gotoanddo",
		"daddusting",
		startdusting,

		"dadironing",
		"good",
		"gotoanddo",
		"dadironing",
		startironing,

		"dadvacuuming",
		"good",
		"gotoanddo",
		"dadvacuuming",
		startvacuuming,

		"dadfloorsqueegee",
		"good",
		"gotoanddo",
		"dadsqueegee",
		startsqueeging,

	},

	dad_idle_tasks_medium =
	{
		"dadsleepingidle",
		"bad",
		"gotoanddo",
		"dadsleeping",
		stopsleeping,

		"dadironing",
		"good",
		"gotoanddo",
		"dadironing",
		startironing,

		"dadironing",
		"good",
		"gotoanddo",
		"dadironing",
		startironing,

		"dadfloorsqueegee",
		"good",
		"gotoanddo",
		"dadsqueegee",
		startsqueeging,

	},

	dad_idle_tasks_hard =
	{
		"dadsleepingidle",
		"bad",
		"gotoanddo",
		"dadsleeping",
		stopsleeping,

		"dadironing",
		"good",
		"gotoanddo",
		"dadironing",
		startironing,

		"dadironing",
		"good",
		"gotoanddo",
		"dadironing",
		startironing,

		"dadfloorsqueegee",
		"good",
		"gotoanddo",
		"dadsqueegee",
		startsqueeging,

	},

	-- elane
	mom_initial_state = "normal",
	mom_initial_node = "81",
	mom_idle_time = 4200,

	mom_idle_tasks_easy =
	{
		"momsweepingidle",
		"good",
		"gotoanddo",
		"momsweeping",
		startsweeping,

		"momcuttingidle",
		"good",
		"gotoanddo",
		"momcutting",
		startcutting,

		"momvacuuming",
		"good",
		"gotoanddo",
		"momvacuuming",
		startvacuuming,

		"momironing",
		"good",
		"gotoanddo",
		"momironing",
		startironing,

		"momfloorsqueegee",
		"good",
		"gotoanddo",
		"momsqueegee",
		startsqueeging,

	},

	mom_idle_tasks_medium =
	{
		"momwateringidle",
		"good",
		"gotoanddo",
		"momwatering",
		startwatering,

		"momsweepingidle",
		"good",
		"gotoanddo",
		"momsweeping",
		startsweeping,

		"momcuttingidle",
		"good",
		"gotoanddo",
		"momcutting",
		startcutting,

		"momkickingcouch",
		"bad",
		"gotoanddo",
		"momkickingcouch",
		stopkickingcouch,

	},

	mom_idle_tasks_hard =
	{
		"momwateringidle",
		"good",
		"gotoanddo",
		"momwatering",
		startwatering,

		"momsweepingidle",
		"good",
		"gotoanddo",
		"momsweeping",
		startsweeping,

		"momcuttingidle",
		"good",
		"gotoanddo",
		"momcutting",
		startcutting,

		"momkickingcouch",
		"bad",
		"gotoanddo",
		"momkickingcouch",
		stopkickingcouch,

	},

	perfect_time_easy = 225,
	perfect_time_medium = 205,
	perfect_time_hard = 185,
	good_time_easy = 280,
	good_time_medium = 240,
	good_time_hard = 225,
	feedback_positive_easy = 25,
	feedback_positive_medium = 25,
	feedback_positive_hard = 25,
	feedback_negative_easy = 25,
	feedback_negative_medium = 25,
	feedback_negative_hard = 20,
}
