begintalkscript;

variables;

begintalknode 1;
state = -1;
nextstate = 1;
question = "Lord Ashford";
text1 = "Lord Ashford is pacing his cell, looking rather bedraggled, rather than impeccably neat as you last saw him.";
text2 = "When he sees that you are not bandits, heseems pleased to see you.";
text3 = "_Who are you?  Have you come to rescue me?_, he says.";

begintalknode 2;
state = 1;
nextstate = 1;
condition = party_size() > 1;
question = "Follow us.  We'll get you out.";
text1 = "Lord Ashford stops pacing round and shuffles into line behind you.";
action = END_TALK;
code = 
	set_flag(4,4,1);
	add_char_to_party(22);
break;

begintalknode 3;
state = 1;
nextstate = 1;
condition = party_size() == 1;
question = "Follow me.  I'll get you out.";
text1 = "Lord Ashford stops pacing round and starts walking with you.";
action = END_TALK;
code = 
	set_flag(4,4,1);
	add_char_to_party(22);
break;

begintalknode 4;
state = 1;
nextstate = 1;
question = "Stay here for a while.  It's too dangerous out there.";
text1 = "He doesn't seem happy about this, but the mention of danger convinces him to stay.";

begintalknode 5;
state = 1;
nextstate = 1;
question = "Actually, we haven't come to rescue you.  We've come to gloat.";
condition = party_size() > 1;
text1 = "For a moment he looks like he is about to hit you, but he changes hs mind.";
text2 = "_Please take me with you, I can't stand it here!_ he begs.";

begintalknode 6;
state = 1;
nextstate = 1;
question = "Actually, I haven't come to rescue you.  I've come to gloat.";
condition = party_size() == 1;
text1 = "For a moment he looks like he is about to hit you, but he changes hs mind.";
text2 = "_Please take me with you, I can't stand it here!_ he begs.";

begintalknode 7;
state = -1;
nextstate = 2;
question = "Diana";
text1 = "You've finally found Diana.  Her hair is a mess and she is very dirty, but she is otherwise unharmed.";
text2 = "When she sees you, she rushes up to you and hugs you.";
text3 = "_I knew you'd come and rescue me, I knew it!_ she says.";
text4 = "_Well, let's get going.  I want to be out of here as soon as possible._";

begintalknode 8;
state = -1;
nextstate = 2;
question = "Frrza";
text1 = "You've finally found Frrza.  Her fur is matted and tangled and she is very dirty, but she is otherwise unharmed.";
text2 = "When she sees you, she rushes up to you and hugs you.";
text3 = "_I knew you'd come and rescue me, I knew it!_ she says.";
text4 = "_Well, let's get going.  I want to be out of here as soon as possible._";

begintalknode 9;
state = -1;
nextstate = 2;
question = "Sissay";
text1 = "You've finally found Sissay.  Her scales have lost their shine and she is very dirty, but she is otherwise unharmed.";
text2 = "When she sees you, she rushes up to you and hugs you.";
text3 = "_I knew you'd come and rescue me, I knew it!_ she says.";
text4 = "_Well, let's get going.  I want to be out of here as soon as possible._";

begintalknode 10;
state = 2;
nextstate = 2;
question = "Not yet.  It's too dangerous.";
text1 = "She is upset at this, but scared enough to quietly nod agreement rather than start the extended argument that is usual between you.";
text2 = "_Come back soon,_ she says.";

begintalknode 11;
state = 2;
nextstate = -1;
question = "Let's go";
action = END_TALK;
text1 = "She immediately goes with you, happy for you to be together again, if not quite out of danger.";
code =
	set_flag(4,5,1);
	if (get_sdf(1,1) == 0) add_char_to_party(30);
	if (get_sdf(1,1) == 1) add_char_to_party(64);
	if (get_sdf(1,1) == 2) add_char_to_party(76);
break;