require( "levels_scripts/tasksconstants.lua" );

local stopkidsjumpingonbed = 100;
local stopkidsdrawingonwall = 20;
local stopsleeping = 20;
local stopeating = 40;
local stopbasketball = 40;
local stopyellingoncel = 40;
local startsweeping = 60;
local startlawning = 60;
local startdusting = 0;
local startcutting = 0;
local startwatering = 60;
--[[
"kids",
"stopjumpingonbed",
2,
stopkidsjumpingonbed,

"dad",
"stopsleeping",
2,
stopsleeping,

"dad",
"stopeating",
2,
stopeating,

"mom",
"stopsleeping",
2,
stopsleeping,

"mom",
"stopeating",
2,
stopeating,

"mom",
"stopyellingoncel",
2,
stopyellingoncel,

"dad",
"stopbasketball",
2,
stopbasketball,

gotoobjectanddo,
disciplineneeded,
stopkidsjumpingonbed,
"jumpingsquare",
"jumpingsquare",
"10",
"1",
linkedto,
gotonodeanddo,
"52",
"jumpingsquare",

gotoobjectanddo,
disciplineneeded,
stopkidsdrawingonwall,
"drawingsquare",
"drawingsquare",
"10",
"1",
linkedto,
gotonodeanddo,
"71",
"drawingsquare",
--]]
day = 
{
	perfect_time_easy = 120,
	perfect_time_medium = 90,
	perfect_time_hard = 60,
	good_time_easy = 180,
	good_time_medium = 150,
	good_time_hard = 120,
	
	feedback_positive_easy = 50,
	feedback_positive_medium = 25,
	feedback_positive_hard = 10,
	feedback_negative_easy = 50,
	feedback_negative_medium = 25,
	feedback_negative_hard = 10,	
	
	--[[
	goals =
	{
		"mom",
		"makethebed",
		1,
		2,
		"mom",
		"changediaper",
		1,
		3,
		"dad",
		"dothedishes",
		1,
		1,
		"mom",
		"setthetable",
		2,
		1,
		"dad",
		"messes",
		3,
		3,
		"mom",
		"messes",
		3,
		3,
		"dad",
		"a",
		3,
		3,
		"dad",
		"b",
		3,
		3,
		"dad",
		"c",
		3,
		3,
		"dad",
		"d",
		3,
		3,
		"dad",
		"e",
		3,
		3,
	},
	--]]
	
	goals_easy =
	{		
		"dad",
		"pickuptoys",
		1,
		6,
		"dad",
		"makethechildbed",
		4,
		1,
		--[[
		"dad",
		"b",
		2,
		1,
		"dad",
		"c",
		2,
		1,
		--]]
		"mom",
		"makethebed",
		4,
		1,
		"mom",
		"organizesofa",
		4,
		1,
		--[[
		"mom",
		"a",
		2,
		1,
		"mom",
		"b",
		2,
		1,
		--]]
		"mom",
		"messes",
		3,
		5,
		--[[
		"mom",
		"changediaper",
		1,
		1,
		
		"dad",
		"makethechildbed",
		4,
		1,
		"dad",
		"stopsleeping",
		2,
		1,
		"mom",
		"makethebed",
		4,
		1,
		
		"mom",
		"stopsleeping",
		2,
		1,
		
		"kids",
		"stopjumpingonbed",
		2,
		stopkidsjumpingonbed,
		"dad",
		"changediaper",
		1,
		3,
		
		"kids",
		"b",
		1,
		1,
		"kids",
		"c",
		1,
		1,
		
		"dad",
		"changediaper",
		1,
		3,
		"kids",
		"stopjumpingonbed",
		2,
		stopkidsjumpingonbed,
		-- "dad",
		-- "stopsleeping",
		-- 2,
		-- stopsleeping,
		-- "dad",
		-- "stopeating",
		-- 2,
		-- stopeating,
		"dad",
		"stopbasketball",
		2,
		stopbasketball,
		"mom",
		"b",
		1,
		1,
		-- "mom",
		-- "c",
		-- 1,
		-- 1,
		-- "mom",
		-- "d",
		-- 1,
		-- 1,
		"mom",
		"e",
		1,
		1,
		"mom",
		"f",
		1,
		1,
		--]]
	},
	
	goals_medium =
	{
		"dad",
		"messes",
		3,
		9,
	},
	
	goals_hard =
	{
		"dad",
		"dothedishes",
		1,
		1,
	},
	
	-- Extra Goals
	extragoals_easy =
	{
		--[[
		"dad",
		"messes",
		3,
		9,
		--]]
		"kids",
		"d",
		1,
		1,
	},

	extragoals_medium =
	{
		"dad",
		"changediaper",
		1,
		1,
		"mom",
		"makethebed",
		1,
		1,
	},

	extragoals_hard =
	{
		"dad",
		"changediaper",
		1,
		1,
		"mom",
		"makethebed",
		1,
		1,
	},
	
	dad_idle_time = 1000,
	--[[
	dad_idle_tasks =
	{
		"dadsleepingidle",
		"bad",
		"gotoanddo",
		"dadsleeping",
		stopsleeping,
		
		"dadsweepingidle",
		"good",
		"gotoanddo",
		"dadsweeping",
		startsweeping,
		
		"dadeatingonbedidle",
		"bad",
		"gotoanddo",
		"dadeatingonbed",
		stopeating,
		
		"dadbasketballidle",
		"bad",
		"gotoanddo",
		"dadbasketball",
		stopbasketball,
		
		"dadlawningidle",
		"good",
		"gotoanddo",
		"dadlawning",
		startlawning,
		
		"daddustingidle",
		"good",
		"gotoanddo",
		"daddusting",
		startdusting,		
	},
	--]]
	
	dad_idle_tasks_easy =
	{
		--[[
		"dadsleepingidle",
		"bad",
		"gotoanddo",
		"dadsleeping",
		100,

		"dadsweepingidle",
		"good",
		"gotoanddo",
		"dadsweeping",
		startsweeping,
		
		"dadeatingonbedidle",
		"bad",
		"gotoanddo",
		"dadeatingonbed",
		stopeating,
		--]]
		"dadbasketballidle",
		"bad",
		"gotoanddo",
		"dadbasketball",
		stopbasketball,
		--[[
		"dadlawningidle",
		"good",
		"gotoanddo",
		"dadlawning",
		startlawning,
		
		"daddustingidle",
		"good",
		"gotoanddo",
		"daddusting",
		startdusting,	
		--]]
	},
	
	dad_idle_tasks_medium =
	{		
		"dadeatingonbedidle",
		"bad",
		"gotoanddo",
		"dadeatingonbed",
		stopeating,
		
		"dadlawningidle",
		"good",
		"gotoanddo",
		"dadlawning",
		startlawning,
	},
	
	dad_idle_tasks_hard =
	{
		"dadsweepingidle",
		"good",
		"gotoanddo",
		"dadsweeping",
		startsweeping,
		
		"dadbasketballidle",
		"bad",
		"gotoanddo",
		"dadbasketball",
		stopbasketball,
	},
	
	mom_idle_time = 1000,
	--[[
	mom_idle_tasks =
	{
		"momsleepingidle",
		"bad",
		"gotoanddo",
		"momsleeping",
		stopsleeping,
		
		"momeatingicecreamidle",
		"bad",
		"gotoanddo",
		"momeatingicecream",
		stopeating,
		
		"momsweepingidle",
		"good",
		"gotoanddo",
		"momsweeping",
		startsweeping,
		
		"momwateringidle",
		"good",
		"gotoanddo",
		"momwatering",
		startwatering,
		
		"momcuttingidle",
		"good",
		"gotoanddo",
		"momcutting",
		startcutting,
		
		"momyellingoncelidle",
		"bad",
		"gotoanddo",
		"momyellingoncel",
		stopyellingoncel,		
	},
	--]]
	
	mom_idle_tasks_easy =
	{
		--[[
		"momsleepingidle",
		"bad",
		"gotoanddo",
		"momsleeping",
		100,
		--]]		
		"momcuttingidle",
		"good",
		"gotoanddo",
		"momcutting",
		startcutting,
		
	},
		
	mom_idle_tasks_medium =
	{
		"momyellingoncelidle",
		"bad",
		"gotoanddo",
		"momyellingoncel",
		stopyellingoncel,
		
		"momwateringidle",
		"good",
		"gotoanddo",
		"momwatering",
		startwatering,
	},
	
	mom_idle_tasks_hard =
	{		
		"momeatingicecreamidle",
		"bad",
		"gotoanddo",
		"momeatingicecream",
		stopeating,
		
		"momsweepingidle",
		"good",
		"gotoanddo",
		"momsweeping",
		startsweeping,
	},
	
	toys_on_the_floor = 0;
	-- scenario initial state
	--[[
	objects_initial_states =
	{
		-- "camayoungchild",
		-- "dirty",
		-- "berco",
		-- "dirty",
		-- "brinquedos1",
		-- "dirty",
		-- "camapai",
		-- "dirty",
		-- "vaso",
		-- "dirty",
		-- "sofa",
		-- "dirty",
		-- "plantabanheiro",
		-- "dirty",
		-- "vasocorredor2",
		-- "dirty",
		-- "vasocorredor",
		--"dirty",
		"toy1",
		"dirty",
		"toy2",
		"dirty",
		"toy3",
		"dirty",
		"toy4",
		"dirty",
		"toy5",
		"dirty",
		"toy6",
		"dirty",
	
	},
	--]]
	toys_on_the_floor_easy = 6;
	objects_initial_states_easy =
	{
		"toy1",
		"dirty",
		"toy2",
		"dirty",
		"toy3",
		"dirty",
		"toy4",
		"dirty",
		"toy5",
		"dirty",
		"toy6",
		"dirty",
		"sofa",
		"dirty",
		"camapai",
		"dirty",
		"camayoungchild",
		"dirty",
	},
	
	toys_on_the_floor_medium = 1;
	objects_initial_states_medium =
	{
		"toy2",
		"dirty",
	},
	
	toys_on_the_floor_hard = 1;
	objects_initial_states_hard =
	{
		"toy3",
		"dirty",	
	},
	
	toddler_initial_state = "normal",
	toddler_initial_node = "12",
	--[[
	toddler_tasks =
	{
		--toddler
		gotoobjectanddo,
		"vaso",
		"vaso",
		"10",
		"1",

		--toddler
		gotoobjectanddo,
		"vasocorredor",
		"vasocorredor",
		"10",
		"1",

		--toddler
		gotoobjectanddo,
		"vasocorredor2",
		"vasocorredor2",
		"10",
		"1",
	},
	--]]
	toddler_tasks_easy =
	{
		gotoobjectanddo,
		"diapersquare1",
		"diapersquare1",
		"10",
		"1",
		linkedto,
		teleporttoobjectanddo,
		"trocador",
		"trocador",
		
		--toddler
		gotoobjectanddo,
		"vasocorredor",
		"vasocorredor",
		"10",
		"1",
	
	},
	toddler_tasks_medium =
	{
		--toddler
		gotoobjectanddo,
		"vaso",
		"vaso",
		"10",
		"1",
	},
	
	toddler_tasks_hard =
	{
		--toddler
		gotoobjectanddo,
		"vasocorredor2",
		"vasocorredor2",
		"10",
		"1",
	},
	
	-- amanda
	youngchild_initial_state = "normal",
	youngchild_initial_node = "22",
	--[[
	youngchild_tasks = 
	{
		--youngchild
		gotoobjectanddo,
		"berco",
		"berco",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"brinquedos1",
		"brinquedos1",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"brinquedos2",
		"brinquedos2",
		"10",
		"1",
		
		--youngchild
		gotoobjectanddo,
		"camapai",
		"camapai",
		"10",
		"1",
		
		--youngchild
		gotoobjectanddo,
		"camayoungchild",
		"camayoungchild",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"desenhocorredor",
		"desenhocorredor",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"desenhoquartopai",
		"desenhoquartopai",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"desenhoquartoyoungchild",
		"desenhoquartoyoungchild",
		"10",
		"1",
		
		--youngchild
		gotoobjectanddo,
		"sofa",
		"sofa",
		"10",
		"1",
		
		--youngchild
		gotoobjectanddo,
		"toy1",
		"toy1",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"toy2",
		"toy2",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"toy3",
		"toy3",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"toy4",
		"toy4",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"toy5",
		"toy5",
		"10",
		"1",

		--youngchild
		gotoobjectanddo,
		"toy6",
		"toy6",
		"10",
		"1",
		
		--youngchild
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		
		--youngchild
		gotoobjectanddo,
		disciplineneeded,
		20,
		"jumpingsquare",
		"jumpingsquare",
		"10",
		"1",
		linkedto,
		gotonodeanddo,
		"52",
		"jumpingsquare",
		
		--youngchild
		gotoobjectanddo,
		"drawingsquare",
		"drawingsquare",
		"10",
		"1",
		linkedto,
		gotonodeanddo,
		"71",
		"drawingsquare",

		gotonodeanddo,
		"3",
		"idle",
		"10",
		"1",

	},
	--]]
	
	youngchild_tasks_easy = 
	{
		--youngchild
		--[[
		gotoobjectanddo,
		"tv",
		"tv",
		"10",
		"1",
		
		gotonodeanddo,
		timed,
		50000,
		"75",
		"mesajantar1",
		"10",
		"1",
		linkedto,
		order,
		"toddler",
		gotonodeanddo,
		"74",
		"mesajantar1",
		
		--youngchild
		gotoobjectanddo,
		disciplineneeded,
		100,
		"drawingsquare1",
		"drawingsquare1",
		"10",
		"1",
		
		gotoobjectanddo,
		"brinquedos1",
		"brinquedos1",
		"10",
		"1",
		
		--youngchild
		gotoobjectanddo,
		disciplineneeded,
		100,
		"drawingsquare2",
		"drawingsquare2",
		"10",
		"1",
		--]]
		gotoobjectanddo,
		disciplineneeded,
		stopkidsjumpingonbed,
		"jumpingsquare",
		"jumpingsquare",
		"10",
		"1",
	},
	
	youngchild_tasks_medium = 
	{
		--[[
		--youngchild
		gotoobjectanddo,
		timed,
		0,
		"mesajantar1",
		"mesajantar1",
		"10",
		"1",
		linkedto,
		order,
		"toddler",
		gotonodeanddo,
		"74",
		"mesajantar1",
		--]]
		--youngchild
		gotoobjectanddo,
		disciplineneeded,
		20,
		"drawingsquare2",
		"drawingsquare2",
		"10",
		"1",
		linkedto,
		gotonodeanddo,
		"15",
		"drawingsquare2",
	},
	
	youngchild_tasks_hard = 
	{
		gotonodeanddo,
		"3",
		"idle",
		"10",
		"1",
	},
	
	-- bob
	dad_initial_state = "normal",
	dad_initial_node = "79",
	
	
	-- elane
	mom_initial_state = "normal",
	mom_initial_node = "81",
}
