require( "levels_scripts/tasksconstants.lua" );

local stopkidsjumpingonbed = 99;
local stopkidsdrawingonwall = 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;
local stopkidsfighting = 80;

day =
{
	-- Goals
	goals_easy =
	{
		"dad",
		"disciplines",
		1,
		2,
		"mom",
		"changediaper",
		1,
		1,
	},

	goals_medium =
	{
		"dad",
		"disciplines",
		1,
		2,
		"mom",
		"changediaper",
		1,
		1,
	},

	goals_hard =
	{
		"dad",
		"disciplines",
		1,
		2,
		"mom",
		"changediaper",
		1,
		1,
	},

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

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

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


	-- Scenario initial state
	objects_initial_states_easy =
	{
		"banheira",
		"dirty",
		"brinquedos",
		"dirty",
		"brinquedos2",
		"dirty",
		"camacrianca",
		"dirty",
		"camapai",
		"dirty",
		"desenhocorredor",
		"dirty",
		"guardaroupafilha",
		"dirty",
		"guardaroupaspais",
		"dirty",
		"piabanheiro",
		"dirty",
		"plantabanheiro",
		"dirty",
		"sofa",
		"dirty",
		"tv",
		"dirty",
		"vaso",
		"dirty",
		"vasocorredor",
		"dirty",
		"vasocorredor2",
		"dirty",
		"stereo",
		"dirty",
	},

	toys_on_the_floor_easy = 0,

	objects_initial_states_medium =
	{
		"banheira",
		"dirty",
		"brinquedos",
		"dirty",
		"brinquedos2",
		"dirty",
		"camacrianca",
		"dirty",
		"camapai",
		"dirty",
		"desenhocorredor",
		"dirty",
		"guardaroupafilha",
		"dirty",
		"guardaroupaspais",
		"dirty",
		"piabanheiro",
		"dirty",
		"plantabanheiro",
		"dirty",
		"sofa",
		"dirty",
		"tv",
		"dirty",
		"vaso",
		"dirty",
		"vasocorredor",
		"dirty",
		"vasocorredor2",
		"dirty",
		"stereo",
		"dirty",
	},

	toys_on_the_floor_medium = 0,

	objects_initial_states_hard =
	{
		"banheira",
		"dirty",
		"brinquedos",
		"dirty",
		"brinquedos2",
		"dirty",
		"camacrianca",
		"dirty",
		"camapai",
		"dirty",
		"desenhocorredor",
		"dirty",
		"guardaroupafilha",
		"dirty",
		"guardaroupaspais",
		"dirty",
		"piabanheiro",
		"dirty",
		"plantabanheiro",
		"dirty",
		"sofa",
		"dirty",
		"tv",
		"dirty",
		"vaso",
		"dirty",
		"vasocorredor",
		"dirty",
		"vasocorredor2",
		"dirty",
		"stereo",
		"dirty",
	},

	toys_on_the_floor_hard = 0,

	-- jimmy
	toddler_initial_state = "normal",
	toddler_initial_node = "6",

	toddler_tasks_easy =
	{
		gotoobjectanddo,
		"plantabanheiro",
		"plantabanheiro",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		0000,
		"diapersquare4",
		"diapersquare4",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotonodeanddo,
		"38",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"49",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"7",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		20000,
		"asksleep4",
		"asksleep4",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"berco",
		"berco",
		gotoobjectanddo,
		"asksleep7",
		"asksleep7",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"berco",
		"berco",
		gotoobjectanddo,
		"diapersquare5",
		"diapersquare5",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotoobjectanddo,
		"fallonfloor5",
		"fallonfloor5",
		"10",
		"1",
		gotonodeanddo,
		"21",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"39",
		"idle",
		"10",
		"1",
	},

	toddler_tasks_medium =
	{
		gotoobjectanddo,
		"plantabanheiro",
		"plantabanheiro",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		0000,
		"diapersquare4",
		"diapersquare4",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotonodeanddo,
		"38",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"49",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"7",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		20000,
		"asksleep4",
		"asksleep4",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"berco",
		"berco",
		gotoobjectanddo,
		"asksleep7",
		"asksleep7",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"berco",
		"berco",
		gotoobjectanddo,
		"diapersquare5",
		"diapersquare5",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotoobjectanddo,
		"fallonfloor5",
		"fallonfloor5",
		"10",
		"1",
		gotonodeanddo,
		"21",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"39",
		"idle",
		"10",
		"1",
	},

	toddler_tasks_hard =
	{
		gotoobjectanddo,
		"plantabanheiro",
		"plantabanheiro",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		0000,
		"diapersquare4",
		"diapersquare4",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotonodeanddo,
		"38",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"49",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"7",
		"idle",
		"10",
		"1",
		gotoobjectanddo,
		timed,
		20000,
		"asksleep4",
		"asksleep4",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"berco",
		"berco",
		gotoobjectanddo,
		"asksleep7",
		"asksleep7",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"berco",
		"berco",
		gotoobjectanddo,
		"diapersquare5",
		"diapersquare5",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		gotoobjectanddo,
		"fallonfloor5",
		"fallonfloor5",
		"10",
		"1",
		gotonodeanddo,
		"21",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"39",
		"idle",
		"10",
		"1",
	},

	-- steve
	youngchild1_initial_state = "normal",
	youngchild1_initial_node = "29",

	youngchild1_tasks_easy =
	{
		gotoobjectanddo,
		"brinquedos",
		"brinquedos",
		"10",
		"1",
		gotoobjectanddo,
		disciplineneeded,
		stopkidsdrawingonwall,
		"drawingsquare2",
		"drawingsquare2",
		"10",
		"2",
		gotoobjectanddo,
		"guardaroupafilha",
		"guardaroupafilha",
		"10",
		"1",
		gotoobjectanddo,
		"guardaroupaspais",
		"guardaroupaspais",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"5",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"27",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"41",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"53",
		"idle",
		"10",
		"1",
	},

	youngchild1_tasks_medium =
	{
		gotoobjectanddo,
		"brinquedos",
		"brinquedos",
		"10",
		"1",
		gotoobjectanddo,
		disciplineneeded,
		stopkidsdrawingonwall,
		"drawingsquare2",
		"drawingsquare2",
		"10",
		"2",
		gotoobjectanddo,
		"guardaroupafilha",
		"guardaroupafilha",
		"10",
		"1",
		gotoobjectanddo,
		"guardaroupaspais",
		"guardaroupaspais",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"5",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"27",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"41",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"53",
		"idle",
		"10",
		"1",
	},

	youngchild1_tasks_hard =
	{
		gotoobjectanddo,
		"brinquedos",
		"brinquedos",
		"10",
		"1",
		gotoobjectanddo,
		disciplineneeded,
		stopkidsdrawingonwall,
		"drawingsquare2",
		"drawingsquare2",
		"10",
		"2",
		gotoobjectanddo,
		"guardaroupafilha",
		"guardaroupafilha",
		"10",
		"1",
		gotoobjectanddo,
		"guardaroupaspais",
		"guardaroupaspais",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"5",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"27",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"41",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"53",
		"idle",
		"10",
		"1",
	},

	-- judy
	youngchild2_initial_state = "normal",
	youngchild2_initial_node = "29",

	youngchild2_tasks_easy =
	{
		gotoobjectanddo,
		"brinquedos2",
		"brinquedos2",
		"10",
		"1",
		gotoobjectanddo,
		disciplineneeded,
		stopkidsdrawingonwall,
		"drawingsquare2",
		"drawingsquare2",
		"10",
		"2",
		gotoobjectanddo,
		"guardaroupafilha",
		"guardaroupafilha",
		"10",
		"1",
		gotoobjectanddo,
		"guardaroupaspais",
		"guardaroupaspais",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"5",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"27",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"41",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"53",
		"idle",
		"10",
		"1",
	},

	youngchild2_tasks_medium =
	{
		gotoobjectanddo,
		"brinquedos2",
		"brinquedos2",
		"10",
		"1",
		gotoobjectanddo,
		disciplineneeded,
		stopkidsdrawingonwall,
		"drawingsquare2",
		"drawingsquare2",
		"10",
		"2",
		gotoobjectanddo,
		"guardaroupafilha",
		"guardaroupafilha",
		"10",
		"1",
		gotoobjectanddo,
		"guardaroupaspais",
		"guardaroupaspais",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"5",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"27",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"41",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"53",
		"idle",
		"10",
		"1",
	},

	youngchild2_tasks_hard =
	{
		gotoobjectanddo,
		"brinquedos2",
		"brinquedos2",
		"10",
		"1",
		gotoobjectanddo,
		disciplineneeded,
		stopkidsdrawingonwall,
		"drawingsquare2",
		"drawingsquare2",
		"10",
		"2",
		gotoobjectanddo,
		"guardaroupafilha",
		"guardaroupafilha",
		"10",
		"1",
		gotoobjectanddo,
		"guardaroupaspais",
		"guardaroupaspais",
		"10",
		"1",
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"5",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"27",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"41",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"53",
		"idle",
		"10",
		"1",
	},

	-- louise
	schoolaged_initial_state = "normal",
	schoolaged_initial_node = "3",

	schoolaged_tasks_easy =
	{
		gotoobjectanddo,
		disciplineneeded,
		stopkidsjumpingonbed,
		"jumpingsquare",
		"jumpingsquare",
		"10",
		"1",
		gotoobjectanddo,
		"piabanheiro",
		"piabanheiro",
		"10",
		"1",
		gotonodeanddo,
		disciplineneeded,
		stopkidsfighting,
		timed,
		30000,
		"154",
		"fightup1",
		"10",
		"1",
		gotonodeanddo,
		"15",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"25",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"35",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"45",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"55",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"12",
		"idle",
		"10",
		"1",
	},

	schoolaged_tasks_medium =
	{
		gotoobjectanddo,
		disciplineneeded,
		stopkidsjumpingonbed,
		"jumpingsquare",
		"jumpingsquare",
		"10",
		"1",
		gotoobjectanddo,
		"piabanheiro",
		"piabanheiro",
		"10",
		"1",
		gotonodeanddo,
		disciplineneeded,
		stopkidsfighting,
		timed,
		30000,
		"154",
		"fightup1",
		"10",
		"1",
		gotonodeanddo,
		"15",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"25",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"35",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"45",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"55",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"12",
		"idle",
		"10",
		"1",
	},

	schoolaged_tasks_hard =
	{
		gotoobjectanddo,
		disciplineneeded,
		stopkidsjumpingonbed,
		"jumpingsquare",
		"jumpingsquare",
		"10",
		"1",
		gotoobjectanddo,
		"piabanheiro",
		"piabanheiro",
		"10",
		"1",
		gotonodeanddo,
		disciplineneeded,
		stopkidsfighting,
		timed,
		30000,
		"154",
		"fightup1",
		"10",
		"1",
		gotonodeanddo,
		"15",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"25",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"35",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"45",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"55",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"12",
		"idle",
		"10",
		"1",
	},

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

	pet_out = true,

	pet_tasks_easy =
	{
		gotonodeanddo,
		"36",
		"camapai",
		"10",
		"1",
		gotoobjectanddo,
		"playwithdog",
		"playwithdog",
		"10",
		"1",
		gotoobjectanddo,
		"dogball1",
		"dogball1",
		"10",
		"1",
		gotoobjectanddo,
		"dogball2",
		"dogball2",
		"10",
		"1",
		gotoobjectanddo,
		"dogball3",
		"dogball3",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"2",
		gotonodeanddo,
		"11",
		"idle",
		"10",
		"2",
		gotonodeanddo,
		"55",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"61",
		"idle",
		"10",
		"1",
	},

	pet_tasks_medium =
	{
		gotonodeanddo,
		"36",
		"camapai",
		"10",
		"1",
		gotoobjectanddo,
		"playwithdog",
		"playwithdog",
		"10",
		"1",
		gotoobjectanddo,
		"dogball1",
		"dogball1",
		"10",
		"1",
		gotoobjectanddo,
		"dogball2",
		"dogball2",
		"10",
		"1",
		gotoobjectanddo,
		"dogball3",
		"dogball3",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"2",
		gotonodeanddo,
		"11",
		"idle",
		"10",
		"2",
		gotonodeanddo,
		"55",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"61",
		"idle",
		"10",
		"1",
	},

	pet_tasks_hard =
	{
		gotonodeanddo,
		"36",
		"camapai",
		"10",
		"1",
		gotoobjectanddo,
		"playwithdog",
		"playwithdog",
		"10",
		"1",
		gotoobjectanddo,
		"dogball1",
		"dogball1",
		"10",
		"1",
		gotoobjectanddo,
		"dogball2",
		"dogball2",
		"10",
		"1",
		gotoobjectanddo,
		"dogball3",
		"dogball3",
		"10",
		"1",
		gotonodeanddo,
		"22",
		"idle",
		"10",
		"2",
		gotonodeanddo,
		"11",
		"idle",
		"10",
		"2",
		gotonodeanddo,
		"55",
		"idle",
		"10",
		"1",
		gotonodeanddo,
		"61",
		"idle",
		"10",
		"1",
	},

	-- joshua
	dad_initial_state = "normal",
	dad_initial_node = "25",
	dad_idle_time = 3500,

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

		"dadeatingonbedidle",
		"bad",
		"gotoanddo",
		"dadeatingchicken",
		stopeating,

		"dadbasketballidle",
		"bad",
		"gotoanddo",
		"dadbasketball",
		stopbasketball,

		"dadswearwatchingtv",
		"bad",
		"gotoanddo",
		"dadswearwatchingtv",
		stopswearwatchingtv,

	},

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

		"dadeatingonbedidle",
		"bad",
		"gotoanddo",
		"dadeatingchicken",
		stopeating,

		"dadbasketballidle",
		"bad",
		"gotoanddo",
		"dadbasketball",
		stopbasketball,

		"dadswearwatchingtv",
		"bad",
		"gotoanddo",
		"dadswearwatchingtv",
		stopswearwatchingtv,

	},

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

		"dadeatingonbedidle",
		"bad",
		"gotoanddo",
		"dadeatingchicken",
		stopeating,

		"dadbasketballidle",
		"bad",
		"gotoanddo",
		"dadbasketball",
		stopbasketball,

		"dadswearwatchingtv",
		"bad",
		"gotoanddo",
		"dadswearwatchingtv",
		stopswearwatchingtv,

	},

	-- cindy
	mom_initial_state = "normal",
	mom_initial_node = "45",
	mom_idle_time = 4200,

	mom_idle_tasks_easy =
	{
		"momkickingcouch",
		"bad",
		"gotoanddo",
		"momkickingcouch",
		stopkickingcouch,

		"momdrinkingboxmilk",
		"bad",
		"gotoanddo",
		"momdrinkingboxmilk",
		stopdrinkingmilkbox,

		"momeatingicecreamidle",
		"bad",
		"gotoanddo",
		"momeatingicecream",
		stopeating,

		"momyellingoncelidle",
		"bad",
		"gotoanddo",
		"momyellingoncel",
		stopyellingoncel,

	},

	mom_idle_tasks_medium =
	{
		"momkickingcouch",
		"bad",
		"gotoanddo",
		"momkickingcouch",
		stopkickingcouch,

		"momdrinkingboxmilk",
		"bad",
		"gotoanddo",
		"momdrinkingboxmilk",
		stopdrinkingmilkbox,

		"momeatingicecreamidle",
		"bad",
		"gotoanddo",
		"momeatingicecream",
		stopeating,

		"momyellingoncelidle",
		"bad",
		"gotoanddo",
		"momyellingoncel",
		stopyellingoncel,

	},

	mom_idle_tasks_hard =
	{
		"momkickingcouch",
		"bad",
		"gotoanddo",
		"momkickingcouch",
		stopkickingcouch,

		"momdrinkingboxmilk",
		"bad",
		"gotoanddo",
		"momdrinkingboxmilk",
		stopdrinkingmilkbox,

		"momeatingicecreamidle",
		"bad",
		"gotoanddo",
		"momeatingicecream",
		stopeating,

		"momyellingoncelidle",
		"bad",
		"gotoanddo",
		"momyellingoncel",
		stopyellingoncel,

	},

	perfect_time_easy = 55,
	perfect_time_medium = 45,
	perfect_time_hard = 40,
	good_time_easy = 110,
	good_time_medium = 90,
	good_time_hard = 80,
	feedback_positive_easy = 25,
	feedback_positive_medium = 25,
	feedback_positive_hard = 25,
	feedback_negative_easy = 20,
	feedback_negative_medium = 20,
	feedback_negative_hard = 20,
}
