begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = 1;
	question = "Timothy";
	text1 = "The caretaker of this cemetery is sitting in a desk, quietly paging through a book as you enter.  He looks up and smiles as you approach.";
	text2 = "_Hello!  My name's Timothy, Timothy O'Brien.  How may I help you?_";

begintalknode 2;
	state = 1;
	nextstate = 2;
	question = "What do you do here?";
	text1 = "_I am the caretaker of this cemetery.  Is there anyone's grave who you would like to visit, or are you just here to make up stories?_";

begintalknode 3;
	state = 2;
	nextstate = 3;
	question = "What do you mean, make up stories?";
	text1 = "_Every person here tells a unique story.  Why, if you named anyone here, I could tell you a story about them, even if I had no idea who they were.  That's the thing about stories, they allow you to become a literary necromancer._";

begintalknode 4;
	state = 3;
	nextstate = 4;
	question = "Literary necromancer...?";
	text1 = "_You don't know who the dead people here are.  Only by making up stories of them can you come to understand who they are, and when you make up a face to go with each headstone, then that person becomes alive for you._";

begintalknode 5;
	state = 4;
	nextstate = -1;
	question = "Hunh?";
	text1 = "He sighs.  _When you're a caretaker of a graveyard, you gain interesting ideals about death.  I'm sorry if I'm confusing you._";

begintalknode 6;
	state = 2;
	nextstate = -1;
	condition = get_flag(20,0) == 50;
	question = "Can you tell me where a man named Kurojutsu is buried?";
	text1 = "_Kurojutsu, he just came in recently._";
	text2 = "_Just go though the room to the east, and you'll be in a section of graves.  Kurojutsu's is the third grave in the second row._";
	code = 
		set_flag(20,0,100);
		break;

begintalknode 7;
	state = -1;
	nextstate = 10;
	question = "Katherin";
	text1 = "This woman nods her head as you approach, listening to the sound of your boots on the floor, feeling the pot of roses before her, and smelling their aroma.";
	text2 = "_Hello, I'm Katherine O'Flaherty, may I help you?_";

begintalknode 8;
	state = 10;
	nextstate = -1;
	question = "Those roses look lovely.";
	text1 = "She picks one up and sniffs it.  _Ahh, yes indeed._";

begintalknode 9;
	state = 10;
	nextstate = -1;
	question = "May I purchase some roses?";
	text1 = "You finish your business.";
	code = 
		begin_shop_mode("Katherine's Roses","Katherine is selling some of the most beautiful flowers you have ever seen at rock-bottom prices.  It would be a shame not to take advantage of this rare opportunity.",7,0,-1);
		break;