"use strict";

DATA_SDS_DIALOGUE["Monkey_c3_metraviene_0"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_UPPER.x,
		y: DEFINE_DIALOGUE_BOX_UPPER.y,
		width: DEFINE_DIALOGUE_BOX_UPPER.width,
		height: DEFINE_DIALOGUE_BOX_UPPER.height,
		pauses: false,
		blocks: true,
		title: "[monkey]",
		script: [
			{command:"buffer", text:"Belt?  Want belt?  See chief!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_0"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_UPPER.x,
		y: DEFINE_DIALOGUE_BOX_UPPER.y,
		width: DEFINE_DIALOGUE_BOX_UPPER.width,
		height: DEFINE_DIALOGUE_BOX_UPPER.height,
		pauses: false,
		blocks: true,
		title: "Bobo",
		script: [
			{command:"buffer", text:"Want belt?  See chief!  See chief!  Ekekekeke!  Bobo is chief!  Bobo has belt!  Bobo is chief!  Ekekekekeeee!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Bobo get belt from bird woman!  No give snake woman!  Snake woman not chief!  Bobo is chief!  *hisss*  Keke!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_1"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_LOWER.x,
		y: DEFINE_DIALOGUE_BOX_LOWER.y,
		width: DEFINE_DIALOGUE_BOX_LOWER.width,
		height: DEFINE_DIALOGUE_BOX_LOWER.height,
		pauses: false,
		blocks: true,
		title: "Meli",
		script: [
			{command:"buffer", text:"...\n"},			//0
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"(\"Meli\"... hm.)\n"},
			{command:"wait"},
			{command:"buffer", text:"(If I'm finally going to BE someone, it's probably about time I spoke up.  But...)\n"},
			{command:"wait"},
			{command:"buffer", text:"(How do I even respond to this?)\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Um... o...kay...?\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_2"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_UPPER.x,
		y: DEFINE_DIALOGUE_BOX_UPPER.y,
		width: DEFINE_DIALOGUE_BOX_UPPER.width,
		height: DEFINE_DIALOGUE_BOX_UPPER.height,
		pauses: false,
		blocks: true,
		title: "Bobo",
		script: [
			{command:"buffer", text:"No!  No okay!  No okay!  Ekekekekeeee!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Bird woman break home tree!  Home tree break village!  Ekeke!  Bobo has belt!  Bobo no has home!  Bobo no has village!  Ekeke!  How Bobo chief with no home tree?!\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"See?  Kekeke!  See?  Bobo need belt!  Now belt make chief!  Kekeke!  No tree, keke!\n"},
			{command:"wait"},
			{command:"buffer", text:"Yes!  Kekeke!   Yes!  Yes!  No tree!  No need tree!  Only need belt!  Kekeke!  Bobo smart!  Bobo keep belt!  Bird woman stupid!  Bird woman keep tree seed!  Keke!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_3"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_LOWER.x,
		y: DEFINE_DIALOGUE_BOX_LOWER.y,
		width: DEFINE_DIALOGUE_BOX_LOWER.width,
		height: DEFINE_DIALOGUE_BOX_LOWER.height,
		pauses: false,
		blocks: true,
		title: "Meli",
		script: [
			{command:"buffer", text:"(Is he saying Raviene took the seed in exchange for the Goddess' Belt?  But why the seed?  Didn't she WANT the belt??)\n"},			//0
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"*ehem*  Yes... yes!  Bird woman stupid!  Why want seed?  Seed stupid!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_4"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_UPPER.x,
		y: DEFINE_DIALOGUE_BOX_UPPER.y,
		width: DEFINE_DIALOGUE_BOX_UPPER.width,
		height: DEFINE_DIALOGUE_BOX_UPPER.height,
		pauses: false,
		blocks: true,
		title: "Bobo",
		script: [
			{command:"buffer", text:"Why... want... seed?\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Why want seed?!  Why want seed!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Bird woman say why want seed!  Yes!  Yes keke!\n"},			//0
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Bird woman say tree is path up mountain!  Say snake come climb mountain!  Keke!\n"},
			{command:"wait"},
			{command:"buffer", text:"So when tree broken, take seed stop snake!  Keke!  Come back later get belt!  Keke!  Say monkeys all too stupid to realize!  Kekeke!\n"},
			{command:"wait"},
			{command:"buffer", text:"Yes!  That why want seed!  See?  Bobo smart!  That why Bobo chief!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_5"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_LOWER.x,
		y: DEFINE_DIALOGUE_BOX_LOWER.y,
		width: DEFINE_DIALOGUE_BOX_LOWER.width,
		height: DEFINE_DIALOGUE_BOX_LOWER.height,
		pauses: false,
		blocks: true,
		title: "Meli",
		script: [
			{command:"buffer", text:"(She wrecked the village just to stop me... Why that feathered hussy!)\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"(wait...)\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"(did he say... she said...)\n"},			//0
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Chief Bobo... bird woman say all monkeys stupid, yes?  Say come back for belt, yes?\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_6"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_UPPER.x,
		y: DEFINE_DIALOGUE_BOX_UPPER.y,
		width: DEFINE_DIALOGUE_BOX_UPPER.width,
		height: DEFINE_DIALOGUE_BOX_UPPER.height,
		pauses: false,
		blocks: true,
		title: "Bobo",
		script: [
			{command:"buffer", text:"Ye...es... kiki?\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_7"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_LOWER.x,
		y: DEFINE_DIALOGUE_BOX_LOWER.y,
		width: DEFINE_DIALOGUE_BOX_LOWER.width,
		height: DEFINE_DIALOGUE_BOX_LOWER.height,
		pauses: false,
		blocks: true,
		title: "Meli",
		script: [
			{command:"buffer", text:"Bird woman come back, take belt.  Then chief have no belt.  No belt no tree no village.  How stay chief?\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_8"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_UPPER.x,
		y: DEFINE_DIALOGUE_BOX_UPPER.y,
		width: DEFINE_DIALOGUE_BOX_UPPER.width,
		height: DEFINE_DIALOGUE_BOX_UPPER.height,
		pauses: false,
		blocks: true,
		title: "Bobo",
		script: [
			{command:"buffer", text:"Chief have...\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"...chief have...\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"...\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"EKEKEKEKEKEKEEEEEE!  KEKEKEEEEE!!  Make chief look stupid!  Bird woman!  Snake woman!  Ekekeke!  CHIEF NOT STUPID!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"... maybe bird woman give back seed?  Maybe?  Keke?\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_9"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_LOWER.x,
		y: DEFINE_DIALOGUE_BOX_LOWER.y,
		width: DEFINE_DIALOGUE_BOX_LOWER.width,
		height: DEFINE_DIALOGUE_BOX_LOWER.height,
		pauses: false,
		blocks: true,
		title: "Meli",
		script: [
			{command:"buffer", text:"(Now we're getting somewhere!)\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Bird woman give back seed, chief give back belt?  Stay chief?\n"},
			{command:"wait"},
			{command:"buffer", text:"Snake woman get back seed, chief give back belt?  Stay chief?\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Bobo_c3_meetbobo_10"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_UPPER.x,
		y: DEFINE_DIALOGUE_BOX_UPPER.y,
		width: DEFINE_DIALOGUE_BOX_UPPER.width,
		height: DEFINE_DIALOGUE_BOX_UPPER.height,
		pauses: false,
		blocks: true,
		title: "Bobo",
		script: [
			{command:"buffer", text:"Chief get back seed... seed get back tree... stay... chief...\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"buffer", text:"Keke!  Bird woman let chief think too little!  Snake woman make chief think too much!  Keke!\n"},
			{command:"wait"},
			{command:"buffer", text:"Bring seed.  Only then talk!  No seed no belt!  KEKE!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};


DATA_SDS_DIALOGUE["Bobo_c3_metbobo_0"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_UPPER.x,
		y: DEFINE_DIALOGUE_BOX_UPPER.y,
		width: DEFINE_DIALOGUE_BOX_UPPER.width,
		height: DEFINE_DIALOGUE_BOX_UPPER.height,
		pauses: false,
		blocks: true,
		title: "Bobo",
		script: [
			{command:"buffer", text:"Bring seed.  Only then talk!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Bobo_bossfight_0"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_LOWER.x,
		y: DEFINE_DIALOGUE_BOX_LOWER.y,
		width: DEFINE_DIALOGUE_BOX_LOWER.width,
		height: DEFINE_DIALOGUE_BOX_LOWER.height,
		pauses: false,
		blocks: true,
		title: "Bobo",
		script: [
			{command:"buffer", text:"KYAAAAAKAKAKAKAKAAAAK!\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Seed where??  No seed!  Tricks!  Tricks!  All tricks!\n"},
			{command:"wait"},
			{command:"buffer", text:"Bird woman big talk!  Make Bobo confuse!\n"},
			{command:"buffer", text:"Snake woman big talk!  Make Bobo confuse!\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Smoke- good smoke- smoke make Bobo not confuse!  Make Bobo see strong chief no think!\nStrong chief FIGHT!\n"},
			{command:"wait"},
			{command:"buffer", text:"No snake, no need think: chief problems gone!"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"No need seed!  No need belt!  Just need strong!\n"},
			{command:"wait"},
			{command:"buffer", text:"Just need make lying snake die!\n"},
			{command:"wait"},
			{command:"buffer", text:"Just need...\n"},
			{command:"wait"},
			{command:"buffer", text:"Just need...\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"KYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAKAKAKAKAKAAAKK!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Bobo_bossfight_1"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_LOWER.x,
		y: DEFINE_DIALOGUE_BOX_LOWER.y,
		width: DEFINE_DIALOGUE_BOX_LOWER.width,
		height: DEFINE_DIALOGUE_BOX_LOWER.height,
		pauses: false,
		blocks: true,
		title: "Bobo",
		script: [
			{command:"buffer", text:"Bobo... chief...\n"},
			{command:"wait"},
			{command:"buffer", text:"Chief... strong...\n"},
			{command:"wait"},
			{command:"buffer", text:"Why...\n"},
			{command:"wait"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Bobo... see now. ... Lose think, lose honor; lose fight... lose all.\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Only weak chief choose fight first.  Bobo... weak chief.\n"},
			{command:"wait"},
			{command:"buffer", text:"Snake woman... strong chief.\n"},
			{command:"wait"},
			{command:"buffer", text:"Snake woman... take belt.\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Belt is...\n"},
			{command:"wait"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"buffer", text:"...belt...is...\n"},
			{command:"wait"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"(He's dead.  But he doesn't have the Belt...?)\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

Dialogue_getCurrentEvent["Bobo"] = function(){
		var retval = null;
		var line = 0;
		if (GLOBAL_SCRATCHPAD.check("Dlg_Bobo_Line")){
			line = GLOBAL_SCRATCHPAD.check("Dlg_Bobo_Line");
		}

		if (GLOBAL_DIARY.check(3,"MET_BOBO")){
			retval = "GD_Bobo_c3_metbobo_"+line;
			line = Math.min(line+1,0);
		}
		else{
			retval = "Bobo_meetbobo";
		}
		GLOBAL_SCRATCHPAD.note("Dlg_Bobo_Line",line);
		return retval;
	};
