"use strict";

DATA_SDS_DIALOGUE["Rinda_c1_advice_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: "Rinda",
		script: [
			{command:"buffer", text:"Well if it isn't our village's newest daughter!  Welcome, my child!\n"},			//0
			{command:"wait"}, // 1
			{command:"buffer", text:"Here to pray to the Sky Dragon?\n"},			//2
			{command:"chooseH", choices:{"Yes":7, "No":4}},					//3
			{command:"buffer", text:"Well, you're welcome back any time."},			//4
			{command:"wait"}, //5
			{command:"return", retval:0}, //6
			{command:"return", retval:1} // 7
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_advice_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: "Rinda",
		script: [
			{command:"buffer", text:"The Sky Dragon watches over us all from the top of the world.\n"},			//0
			{command:"wait"}, // 1
			{command:"buffer", text:"Showing our appreciation and opening up to her with our hopes and fears is the least we can do for all she has given us.\n"}, //2
			{command:"wait"}, // 3
			{command:"buffer", text:"You do at least remember the Sky Dragon legends?\n"}, // 4
	{command:"chooseH", choices:{"Yes":21, "No":6}},					//5
			{command:"buffer", text:"My dear girl!  You would not be here if it were not for the Goddess Sky Dragon!\n"},			//6
			{command:"wait"},	// 7
			{command:"buffer", text:"The Sky Dragon is the great architect of our world.  Her power of divine creation sculpted the earth, and bathed it in nurturing light.\n"},			//
			{command:"wait"},	// 9
			{command:"buffer", text:"She poured our temperate seas and filled them with the spirits of life.  Indeed, she even seeded life in the world above- from lush, fertile valleys to gleaming heights.\n"},			//
			{command:"wait"},	// 11
			{command:"buffer", text:"And cheif among the spirits of the world, she created Peoples to not simply appreciate her work, but to mind it and tend to it that it may continue to grow and prosper.\n"},			//
			{command:"wait"},	// 13
			{command:"buffer", text:"The Peoples of the world are as diverse as its regions.  Some are winged and tend to the skies and mountains.  Others are strong and agile stewards of the earth.\n"},			//
			{command:"wait"},	// 15
			{command:"buffer", text:"It is said that we, who bear both the tails of dragons and the bodies of the other Peoples are her final and dearest creations- the most literal Dragonchildren.\n"},			//
			{command:"wait"},	// 17
			{command:"buffer", text:"While our domain may appear limited by our form, it is said in times of crisis we may manifest even as she does, taking ownership of the lands and skies to commune with her.\n"},			//
			{command:"wait"},	// 19
			{command:"goto", newindex:23}, //20
			{command:"buffer", text:"The Sky Dragon's power is indeed miraculous.\n"}, // 21
			{command:"wait"}, // 22
			{command:"clear"}, // 23
			{command:"buffer", text:"Now, my child, what are you concerned about?\n"}, // 24
			{command:"wait"}, // 24
			{command:"buffer", text:"The earthquakes?\n"}, // 26
			{command:"wait"}, // 27
			{command:"buffer", text:"Well, they are certainly terrifying to newcomers.  I remember my first earthquake, many years ago...\n. . .\n"}, // 28
			{command:"wait"}, // 29
			{command:"buffer", text:"But that's of no importance.  You should try to build your own relationship with the Goddess, but for now, I'll introduce you.\n"}, // 30
			{command:"wait"}, // 31
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_advice_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: "Rinda",
		script: [
			{command:"buffer", text:"Mother Goddess Sky Dragon, your child is in fear.\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Grant her the peace and comfort of knowing that you protect all your children, and prepare them for any trials they may face.\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_advice_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: "Rinda",
		script: [
			{command:"buffer", text:"There.  I'm sure you'll be safe from earthquakes, at least for awhile.\n"},			//0
			{command:"wait"}, // 1
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_advice_4"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"Go on now- you're still young!  I'm sure you have better things to do than bob around indoors!\n"},			//0
			{command:"wait"}, // 1
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_quake_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: "Rinda",
		script: [
			{command:"buffer", text:"Well, I'll be!  That was certainly portentous timing!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"But at my age, I've learned that everything usually happens for a reason.  Perhaps if you had been outside, you would have been buried again, but in here you were safe?\n"},
			{command:"wait"},
			{command:"buffer", text:"Perhaps after this experience, you'll go back outside and find that nothing bad has happened and be reassured!  Yes, I'm sure that's it!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_quake_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: "Rinda",
		script: [
			{command:"buffer", text:"Swim along now, and let your gentleman friend know you're okay- I'm sure he's worried sick!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_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: "Rinda",
		script: [
			{command:"buffer", text:"What, blocked?  A giant boulder??\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_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: "Rinda",
		script: [
			{command:"buffer", text:"Well, dearie, the Sky Dragon must have put it there for a reason.\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_2"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"I suppose we'll just have to wait here like a pair of princesses and be rescued.\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_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: "Rinda",
		script: [
			{command:"buffer", text:"I remember the last time this happened to me... why, I must have been about your age!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"buffer", text:"*mumblemumble*\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_4"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"*mumblemumble*\n"},
			{command:"wait"},
			{command:"buffer", text:"...ohh, but when he came, he was soooo handsome, and ever so strong!\n"},
			{command:"wait"},
			{command:"buffer", text:"*mumble*\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_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: "Rinda",
		script: [
			{command:"buffer", text:"*mumble*\n"},
			{command:"wait"},
			{command:"buffer", text:"...\n"},
			{command:"wait"},
			{command:"buffer", text:". . .\n"},
			{command:"wait"},
			{command:"buffer", text:"...zzz...\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_6"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"!\n"},
			{command:"wait"},
			{command:"buffer", text:"What?\n"},
			{command:"wait"},
			{command:"buffer", text:"Sorry!\n"},
			{command:"wait"},
			{command:"buffer", text:"You could relax some yourself; it will be awhile before anyone gets around to us if they're also trying to fix the village gate.\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_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: "Rinda",
		script: [
			{command:"buffer", text:"Oh, the impatience of youth.\n"},
			{command:"wait"},
			{command:"buffer", text:". . . if you really want to get out, you could always try putting all that energy to use and pushing the rock out of the way yourself!\n"},
			{command:"wait"},
			{command:"buffer", text:"Just keep swimming against it until it moves.\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_8"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"Push the rock!  I'm sure you can do it!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_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: "Rinda",
		script: [
			{command:"buffer", text:"Push the rock!  I'm sure you can do it!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_10"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"Push the rock!  I'm sure you can do it!!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_11"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"Push!\n"},
			{command:"wait"},
			{command:"buffer", text:"Push!\n"},
			{command:"wait"},
			{command:"buffer", text:"Push!\n"},
			{command:"wait"},
			{command:"buffer", text:"It's almost out!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_12"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"Keep pushing!\n"},
			{command:"buffer", text:"Deep breaths!\n"},
			{command:"buffer", text:"Keep pushing!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_13"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"I know it doesn't feel like it, but the opening is big enough, trust me!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_14"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"You're a strong woman!  You can do this!  Just think of how happy you'll be when it's over, and how proud he'll be of you!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_15"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"Here it comes"},
			{command:"pause", frames:5},
			{command:"buffer", text:"."},
			{command:"pause", frames:5},
			{command:"buffer", text:"."},
			{command:"pause", frames:5},
			{command:"buffer", text:"."},
			{command:"pause", frames:5},
			{command:"buffer", text:"?"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_16"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"Delivered at last!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trapped_17"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:". "},			//0
			{command:"pause", frames:15},
			{command:"buffer", text:". "},			//0
			{command:"pause", frames:15},
			{command:"buffer", text:".\n"},			//0
			{command:"pause", frames:45},
			{command:"buffer", text:"Men.\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_push_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: "Rinda",
		script: [
			{command:"buffer", text:"I knew you'd find a way out!  Now go see if the village is alright!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_rescue_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: "Rinda",
		script: [
			{command:"buffer", text:"Monsters?  Well, you can't expect men to take care of everything!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Now go on back to the village and make yourself useful!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_smoke_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: "Rinda",
		script: [
			{command:"buffer", text:"Strange purple smoke?  People are trapped?  My girl, what in the heavens are you doing here?!  Go be helpful!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"What?  Me?  I'm afraid there's little I can do.  Powers are at work here far greater than that of one old sage to intervene.\n"},
			{command:"wait"},
			{command:"buffer", text:"Now off with you!  Save your friends while there's still a chance!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_smoke_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: "Rinda",
		script: [
			{command:"buffer", text:"Off with you!  Save your friends while there's still a chance!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_quake2_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: "Rinda",
		script: [
			{command:"buffer", text:"Oh my.\nOh dear.\nThis is not good..."},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_quake2_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: "Rinda",
		script: [
			{command:"buffer", text:". . .\n"},			//0
			{command:"wait"},		//1
			{command:"buffer", text:"Oh, alright.  I suppose it's finally time, and under the circumstances, you'll need to be The One.  The Goddess knows I'm far too old by now..."},	//2
			{command:"wait"},	//3
			{command:"clear"},	//4
			{command:"buffer", text:"My child, you know of the Sky Dragon, but have you ever heard of Malfose?\n"},	//5
			{command:"chooseH", choices:{"No":12, "Yes":7}},					//6
			{command:"buffer", text:"Curious.  Who ARE you anyway?\n"},			//7
			{command:"wait"},	//8
			{command:"buffer", text:"... No, nevermind that now.  You are who we need.\n"},			//9
			{command:"wait"},	//10
			{command:"goto", newindex:28}, //11

			{command:"buffer", text:"Malfose... was the Goddess Sky Dragon's first creation.  A counterpart, as it were, to her own power.\n"},			//12
			{command:"wait"},	//13
			{command:"buffer", text:"His role was to watch over her creations, and to curtail the excess and see that those weary of the world could leave after accomplishing their purpose.\n"},			//14
			{command:"wait"},	//15
			{command:"buffer", text:"But from the outset, Malfose was jealous of the Goddess' power to create the world to her will.\n"},			//16
			{command:"wait"},	//17
			{command:"buffer", text:"He began employing his own power not to curtail but to corrupt; not to help spirits to their deserved rest but to drive them to do away with each other.\n"},			//18
			{command:"wait"},	//19
			{command:"clear"},	//20
			{command:"buffer", text:"Malfose took the Goddess' perfect and balanced world and shattered it into sharp crags and haunted deeps; scorching days and bitter nights.\n"},			//21
			{command:"wait"},	//22
			{command:"buffer", text:"He created scarcity out of plenty, and seeded the contentment of the world's spirits with greed and jealousy; anger and violence.\n"},			//23
			{command:"wait"},	//24
			{command:"clear"},	//25
			{command:"buffer", text:"Broken-hearted, the Goddess was yet unable to destroy Malfose.  Instead, she created for him a mighty prison, and wrapped our world around it that he may suffer as we do.\n"},			//26
			{command:"wait"},	//27

			{command:"buffer", text:"I had my suspicions about the earthquakes, but this smoke confirms them.  Malfose's power is at work here, without question.\n"},			//28
			{command:"wait"},	//29
			{command:"buffer", text:"However, fearing his eventual escape, the Goddess did not leave us completely defenseless.  We, her closest children, have a natural resistance to his influence.\n"},			//30
			{command:"wait"},	//31
			{command:"buffer", text:"That notwithstanding, she also imbued certain artifacts with her power, and set keepers to watch over them.\n"},			//32
			{command:"wait"},	//33
			{command:"buffer", text:"This very shrine has long housed one such artefact, and my family has kept it for generations.  It would appear circumstances finally call for its use.\n"},			//34
			{command:"wait"},	//35
			{command:"clear"},	//36
			{command:"buffer", text:"...\nAnyway, it's at least good for boulder removal!  Come now; I'll open the catacombs.\n"},			//37
			{command:"wait"},	//38
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_quake2_2"]=
	{ 
		x: DEFINE_DIALOGUE_BOX_UPPER.x,
		y: DEFINE_DIALOGUE_BOX_UPPER.y,
		width: DEFINE_DIALOGUE_BOX_LOWER.width,
		height: DEFINE_DIALOGUE_BOX_LOWER.height,
		pauses: false,
		blocks: true,
		title: "Rinda",
		script: [
			{command:"buffer", text:"Whew.\nThat's' more open than I intended!  Enthusiastic creatures, these altars.\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"I'll put it right later.  For now, get moving!"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_catacombs_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: "Rinda",
		script: [
			{command:"buffer", text:"Dramatics aside, be careful.  The catacombs were tricky when they were empty and I was young.\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Who knows what the earthquakes have done to them, or what kind of beacon the artifact's power is to these new agents of Malfose!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_trident"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"What do you have there?!\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Silly girl- what good is a trident against a boulder?  And that one's not even real!  Swing it around and you're likely to break it on your own thick head!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_takesTrident"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"(Had to return the [Golden Trident]!)"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_treasure_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: "Rinda",
		script: [
			{command:"buffer", text:"Yes!  You found them!  Dearie me, it certainly took you long enough, though.  Get lost in the straight hallway?  Or was it pushing the button that threw you?\n"},			//0
			{command:"wait"},
			{command:"clear"},
			{command:"buffer", text:"No matter.  Just shift those blocks and go see to the village!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_hurry_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: "Rinda",
		script: [
			{command:"buffer", text:"What?  So you moved the blocks?  You want a medal or something?\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Then go help the village, child!  I didn't just give you those bracelets to show off!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_boss_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: "Rinda",
		script: [
			{command:"buffer", text:"I can't raise the dead.  The only thing to do now is try to prevent worse from happening.\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c1_boss_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: "Rinda",
		script: [
			{command:"buffer", text:"Our humble village has given you all the answers we can.  If you want to learn more, I suggest you begin exploring the world outside...\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Rinda_c5_advice_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: "Meli",
		script: [
			{command:"buffer", text:"(I lost her sacred treasure... she'll never forgive me.  I'm not worth forgiveness.)\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

DATA_SDS_DIALOGUE["Rinda_c5_boss_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: "Rinda",
		script: [
			{command:"buffer", text:"Well I'll be!  You only went and did it!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c5_boss_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: "Rinda",
		script: [
			{command:"buffer", text:"Well done, child!  Now, go and finish what I-\n"},			//0
			{command:"wait"},
			{command:"buffer", text:"Oh, never you mind.  Just go and finish the job!\n"},
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};
DATA_SDS_DIALOGUE["Rinda_c5_boss_2"]=
	{ 
		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: "Rinda",
		script: [
			{command:"buffer", text:"May the Goddess' blessing be upon you... and vice-versa!\n"},			//0
			{command:"wait"},
			{command:"return", retval:0},
		] // an array of options/commands which will be evaluated in sequence
	};

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

		if (GLOBAL_DIARY.check(5,"BOSS",true)){
			retval = "GD_Rinda_c5_boss_"+line;
			line = Math.min(line+1,2);
		}
		else if (GLOBAL_DIARY.check(5,"AWAKE")){
			retval = "GD_Rinda_c5_advice_"+line;
			line = Math.min(line+1,0);
		}
		else if (GLOBAL_DIARY.check(1,"BOSS")){
			retval = "GD_Rinda_c1_boss_"+line;
			line = Math.min(line+1,1);
		}
		else if (GLOBAL_DIARY.check(1,"HURRY")){
			retval = "GD_Rinda_c1_hurry_"+line;
			line = Math.min(line+1,0);
		}
		else if (GLOBAL_DIARY.check(1,"TREASURE")){
			retval = "GD_Rinda_c1_treasure_"+line;
			line = Math.min(line+1,0);
		}
		else if (GLOBAL_DIARY.check(1,"CATACOMBS")){
			retval = "GD_Rinda_c1_catacombs_"+line;
			line = Math.min(line+1,0);
		}
		else if (GLOBAL_DIARY.check(1,"SHRINEQUAKE2")){
			if (line==1){
				retval = "Rinda_catacombs_setup";
				//line=1;
			}
			else{
				retval = "GD_Rinda_c1_quake2_"+line;
				line = Math.min(line+1,1);
			}
		}
		else if (GLOBAL_DIARY.check(1,"SMOKE")){
			if (line==0){
				retval = "Rinda_shrinequake2_setup";
				//line=1;
			}
			else{
				retval = "GD_Rinda_c1_smoke_"+line;
				line = Math.min(line+1,1);
			}
		}
		else if (GLOBAL_DIARY.check(1,"PUSH")){
			retval = "GD_Rinda_c1_push_"+line;
			line = Math.min(line+1,0);
		}
		else if (GLOBAL_DIARY.check(1,"RESCUE")){
			retval = "GD_Rinda_c1_rescue_"+line;
			line = Math.min(line+1,0);
		}
		else if (GLOBAL_DIARY.check(1,"TRAPPED") && !GLOBAL_DIARY.check(1,"PUSH") && !GLOBAL_DIARY.check(1,"RESCUE")){
			if (line==16){
				retval = "Rinda_rescue";
			}
			else{
				retval = "GD_Rinda_c1_trapped_"+line;
				line = Math.min(line+1,16);
			}
		}
		else if (GLOBAL_DIARY.check(1,"SHRINEQUAKE") && !GLOBAL_DIARY.check(1,"PUSH") && !GLOBAL_DIARY.check(1,"RESCUE")){
			retval = "GD_Rinda_c1_quake_"+line;
			line = Math.min(line+1,1);
		}
		else{ // still pre-shrinequake
			if (line==0){
				retval = "Rinda_shrinequake_setup";
				//line=1;
			}
			else{
				retval = "GD_Rinda_c1_advice_"+line;
				line = Math.min(line+1,4);
			}
		}

		GLOBAL_SCRATCHPAD.note("Dlg_Rinda_Line",line);
		return retval;
	};
