// TOWN DIALOGUE SCRIPT
//    Town 65: Lair of Sulfras

begintalkscript;

variables;

short i,j,k,r1,choice;

// Sulfras

begintalknode;
	tag = 10;
	state = -1;
	nextstate = 1;
	question = "Sulfras";
	text1 = "The mighty beast sits before you. Sulfras is a green and red lizard fifty feet long, with huge, leathery wings folded in at her sides. A single chain, strengthened by powerful magic, holds her to the ground. You will have to get close to the dragon to inspect the chain.";
	text2 = "As she speaks, her voice emerges in a cloud of flames and sulfur. _An Avernite. Unusual. Not unexpected. I am Sulfras._";
	text5 = "Sulfras continues to face you. She constantly watches the entrance, ready to alert you to intruders. Her left foreleg is shackled to the floor by a huge steel chain. _You are delaying. You must rescue me. I command it._";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_Why are you bound by that chain?_";
	text1 = "In a brief burst of fury, the dragon jerks at the chain that holds her down. The force of the tug makes the ground vibrate, but the chain remains undamaged. _I am ... I am kept a prisoner here._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_The Empire captured you?_";
	text1 = "She breathes a burst of searing flame directly onto her chained claw. The ground beneath it melts, but the chain remains perfectly intact. Sulfras turns back to you, furious. _I dealt with the Empire humans, like a fool, and they betrayed me!_";

begintalknode;
	state = 3;
	nextstate = 4;
	question = "_How were you betrayed?_";
	text1 = "_They offered me treasures, treasures from the leader for my help. I let them in to speak with me. Then they tricked me into this bond. Garzahd tricked me! Me!_ She roars in fury, until you think she'll bring the room down on your heads.";
	text2 = "Then she settles back down. _But I do not like speaking of it. I think instead of rewarding those who give me freedom._";

begintalknode;
	state = 4;
	nextstate = -1;
	question = "_Tell me about Garzahd._";
	text1 = "_He is the leader of these pathetic Empire humans. I long to feel his skull pop between my teeth._";

begintalknode;
	state = 1;
	nextstate = 5;
	question = "_Would you like me to free you?_";
	text1 = "The dragon looks down at the chain. _If you can get this thing open, I will give you what little of my treasure remains. I swear it to you._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_What do you plan after I free you from the Empire?_";
	text1 = "_They wanted me to help them fight Avernum. They tricked me into chains instead. Then they tore down my beautiful home, and raised this ugly fort in its place. I want to kill them all._";


begintalknode;
	state = 5;
	nextstate = 6;
	question = "_You mentioned treasure. What do you have left?_";
	text1 = "_Most of it was stolen by the Empire. But if there is anything you want I still have, it will be yours._ She looks at the scattering of items around her. _Look at these pathetic leavings!_ ";
	text2 = "You notice that there is a black scepter under her foreleg. She holds it securely there.";

begintalknode;
	state = 6;
	nextstate = 7;
	question = "_I have looked carefully at your treasure. May I have the Onyx Scepter?_";
	text1 = "The dragon's eyes flash red with fury. For a moment, you think she'll attack. Then she calms down. _You humans! You are a foul and greedy breed. It would be better if you were forever gone from existence._";
	text2 = "_But I am stuck with you, and I need your help. If you free me, I will give you the Onyx Scepter._";

begintalknode;
	state = 6;
	nextstate = -1;
	question = "_Yes, your treasures are a bit meager._";
	text1 = "_The final insult. When they took all I had of value, they left me with this scattering of trash! Garbage I would have thrown out before! Oh, someday I will wreak a rich revenge for what they have done to me!_";

begintalknode;
	state = 6;
	nextstate = 7;
	question = "Try to steal the Scepter.";
	text1 = "You don't have a chance. The moment Sulfras notices that you are looking at it, she says, _Ah! You like this trinket, yes? This mysterious little item? Free me and you may have it._";

begintalknode;
	state = 7;
	nextstate = -1;
	question = "_What does the Scepter do?_";
	text1 = "Sulfras chuckles. _Free me and I may tell you._";

begintalknode;
	state = 7;
	nextstate = -1;
	question = "_How can I free you?_";
	text1 = "Sulfras holds up a claw. You see that the chain holding her down has a keyhole. _There is a key. It is near. Find it._";


begintalknode;
	state = 6;
	nextstate = 8;
	question = "_Give me that Scepter, or I will kill you!_";
	text1 = "Sulfras rises up, towering above you. _Be warned! I am restrained, but I am not harmless! Begone from me, proud humans, or I will slay you!_";

begintalknode;
	state = 8;
	nextstate = -1;
	question = "_Oh. My apologies._ (Back away.)";
	text1 = "Sulfras lets you go. _You may still get my treasure, but only if you free me!_";
	action = END_TALK;

begintalknode;
	state = 8;
	nextstate = -1;
	question = "_Fine! Bring it on!_ (Attack.)";
	text1 = "Sulfras roars in fury, and cuts loose with a sudden gout of flame...";
	action = END_TALK;
	code =
		set_attitude(6555,10);
	break;

begintalknode;
	state = 1;
	nextstate = 9;
	question = "_Why are there no guards in here?_";
	text1 = "_The Empire can chain me, but it can't make me helpless. If their pawns get close to me, I remove them from the board._";

begintalknode;
	state = 9;
	nextstate = -1;
	question = "_Why does the Empire keep you here?_";
	text1 = "_I know a lot. I give them information about Avernum, about the caves, about magic, and in return, they throw food in here._";

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_Can you teach me any magic?_";
	text1 = "_Fools! I am chained here, and you expect my help? Free me, and I might help you! Until then, nothing!_";
