DATA_SDS_DIALOGUE["Lief_sleeps"]=
	{ 
		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,
		script: [
			{command:"buffer", text:"It's... a small tree that looks like an old man?\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"An old man who looks like a small tree?\n"},
			{command:"wait"},
			{command:"buffer", text:"Either way, it's not responsive...\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Lief_c3_pre_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: "tree spirit",
		script: [
			{command:"buffer", text:"Oh.  Hello.\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Lief_c3_pre_1"]=
	{ 
		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: "tree spirit",
		script: [
			{command:"buffer", text:"Are you supposed to be here?\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Lief_c3_treasure_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: "tree spirit",
		script: [
			{command:"buffer", text:"Mm?  Back again, to see old man Lief, seachild?\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Wait, no, you're someone else, aren't you?  Different color tail and everything.  And your people don't typically live past 500 years, do they?\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"One way or another, you come at a good time.\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"I sensed some terrible catastrophe up above just now.  I fear the Sky Tree may be in grave danger!\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"You wouldn't happen to know anything about that?\n"},
			{command:"chooseV", choices:{"Explain what happened.":12, "Change the subject.":24}},
			{command:"clear"},
			{command:"buffer", text:"Destroyers!  Vagabonds!  Terrorists!  Vegetarians and herbivores!  This cannot stand!\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Just wait until they plant YOU in the ground!  Then we'll see how YOU like being taken advantage of when you can't go anywhere!\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Why, I'll break YOU apart and throw YOU away!  Here and now!  Wings, tail, whatever!  It won't even take me a decade!!\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"But...\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"You say you found a seed?\n"},
			{command:"wait"},
			{command:"buffer", text:"Yes, yes... I do seem to sense one nearby.  It's dormant, but healthy enough.  And... you've even been soaking it in water from the shrine!  Excellent!\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Here, let me wake it up for you...\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Lief_c3_treasure_1"]=
	{ 
		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: "Lief",
		script: [
			{command:"buffer", text:"There you go.  Give it a few years and you'll have a nice healthy sapling!\n"},			//0
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"What, you need it sooner?  And taller??\n"},
			{command:"wait"},
			{command:"buffer", text:"Well, aren't YOU the typical impatient little transient animal person!\n"},
			{command:"buffer", text:"\"Look at me!  I run around but I'm going to DIE in 50 years, so I want everything NOW!\"\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"Tell you what.  I only do what I do, and in my own time.  But if the Goddess really wants, She should be able to give it a boost.\n"},
			{command:"wait"},
			{command:"buffer", text:"Try taking all those trinkets of yours over to the seed and see what happens.\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Lief_c3_seed_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: "Lief",
		script: [
			{command:"buffer", text:"Don't be a stranger!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Lief_c3_seed_1"]=
	{ 
		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: "Lief",
		script: [
			{command:"buffer", text:"Oh, and if you see that eccentric monkey fellow from down the hall, say hello for me!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Why, I don't think he's stopped by in, oh, it must be the better part of a century by now...\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Lief_c3_seed_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: "Lief",
		script: [
			{command:"buffer", text:"Don't be a stranger!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Lief_c5_advice_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: "Meli",
		script: [
			{command:"buffer", text:"(He's lived for hundreds of years.  I'm nothing to him.  Why did I ever think otherwise?)\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

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

		if (GLOBAL_DIARY.check(5,"BOSS",true)){
			retval = "GD_Lief_c3_seed_"+line;
			line = Math.min(line+1,2);
		}
		else if (GLOBAL_DIARY.check(5,"AWAKE")){
			retval = "GD_Lief_c5_advice_"+line;
			line = Math.min(line+1,0);
		}
		else if (GLOBAL_DIARY.check(3,"ACTIVATED_SEED")){
			retval = "GD_Lief_c3_seed_"+line;
			line = Math.min(line+1,2);
		}
		else if (GLOBAL_DIARY.check(3,"TREASURE")){
			retval = "Lief_c3_treasure";
		}
		else{
			retval = "GD_Lief_c3_pre_"+line;
			line = Math.min(line+1,1);
		}
		GLOBAL_SCRATCHPAD.note("Dlg_Lief_Line",line);
		return retval;
	};
