// TOWN DIALOGUE SCRIPT
//    Town 3: Marralis

// This is the dialogue for this town.
// You can use states numbered from 1 to 99.

begintalkscript;

variables;

int i,j,k,r1,choice;

begintalknode 1;
	state = -1;
	personality = 0;
	nextstate = 1;
	condition = 1;
	question = "Hunan raider";
	text1 = "You flay this Hunan cur to within an inch of his life. He is whimpering and bleeding from many wounds. You decide that, as he appears to be the last, you might as well interrogate him.";
	text2 = "The Hunan speak a variant of the language that the Megiddo people speak. It turns out that communication barriers between your two peoples are mostly cultural; with enough kicking and threats, the Hunan breaks down and starts speaking.";
	text3 = "_No killing!_ he screams. _We are right!_";
begintalknode 2;
	state = 1;
	personality = 0;
	nextstate = 2;
	condition = 1;
	question = "You're right? Right to invade our lands?";
	text1 = "The little savage is crying. _We invade because you invade! The chief says you Meggid will come, with big arrows and big spears. So we come first, to stop you._ He whimpers. _We are right._";
begintalknode 3;
	state = 2;
	personality = 0;
	nextstate = 3;
	condition = 1;
	question = "Who is this chief? Why does he think we will invade?";
	text1 = "_Lu Liath!_ the Hunan howls. You almost feel pity; he must be having trouble speaking, what with all the blood that's gushed out of his lungs. _Lu Liath, the biggest chief, he says your shaman has warned that you will hurt us!_";
begintalknode 4;
	state = 3;
	personality = 0;
	nextstate = 3;
	condition = 1;
	question = "Our shaman? We don't have shaman, you superstitious fool.";
	text1 = "The creature just coughs and moans.";
	code = 
		set_flag(2,10,250);
	break;
begintalknode 5;
	state = 3;
	personality = 0;
	nextstate = 4;
	condition = 1;
	question = "So your pathetic plan was to invade and destroy Megiddo, with just you seven rats?";
	text1 = "_Lu Liath, he will bring more!_ the raider cries out. _We are lookers; we look at how to get to your home. Then we will come, all of us._ He is shaking uncontrollably now. He'll probably die soon.";
begintalknode 6;
	state = 4;
	personality = 0;
	nextstate = 4;
	condition = 1;
	question = "We should warn the castle of this coming attack. Maybe we'll get a big reward!";
	text1 = "The Hunan nods weakly. _You go. I stay here._ His breathing becomes more rapid, his voice weaker. _I... I stay in the dirt. I rest here..._ His voice trails away. You check; he's not breathing anymore.";
	text2 = "It would be best if you returned to Megiddo tower to alert the King that the Hunan are planning an attack. You'll probably get a lot of money for this, and medals all around.";
	text3 = "Deadeye walks over to the dead body and gives it a brutal kick. _Good riddance,_ he mutters. _I don't know about you, but I'm heading back to the castle right now. We must protect Megiddo._ He hurries into the forest.";
	code = 
		remove_string(3);
		if (get_flag(0,16) == 250) {
			add_string(3);
			remove_char_from_party(100);
			}
		set_flag(0,15,25);
		end();
	break;