begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = 1;
	question = "White Shade";
	text1 = "Standing here is a shade.  It is a white shade, although beyond those two features, you cannot divine much about its nature.";
	text2 = "It stands before you, staring at what seems to be nothing.  It does not address you, it merely is.";
	text5 = "The shade is still here, hovering about the dais as ominously as before.";
	action = INTRO;

begintalknode 2;
	state = 1;
	nextstate = 1;
	condition = get_flag(22,0) == 0;
	question = "Who are you?";
	text1 = "It turns towards you.  _My name is Emery._";
	text2 = "Emery.  Wasn't that the person whom Zauberer cursed with his last breath?";
	code = 
		set_flag(22,0,1);
	break;

begintalknode 3;
	state = 1;
	nextstate = -1;
	condition = get_flag(22,0) == 1;
	question = "Somebody named Zauberer does not like you.";
	text1 = "_It figures that we could not be friends.  He wanted to escape Canopy._";
	text2 = "The shade turns sharply away from you and moves to the other side of the platform.";
	action = END_TALK;
	code = 
		set_flag(22,0,2);
		erase_char(14);
		activate_hidden_group(4);
	break;

begintalknode 4;
	state = -1;
	nextstate = 2;
	question = "Black Shade";
	text1 = "The shade has changed colors.  It still appears to be the same shade, though.  It waits patiently for you to initiate the conversation.";
	text5 = "The shade is still here, hovering about the dais as ominously as before.";
	action = INTRO;

begintalknode 5;
	state = 2;
	nextstate = 2;
	condition = get_flag(22,0) == 2;
	question = "You said that Zauberer wanted to escape Canopy.  What do you mean?";
	text1 = "_It means that he knows Canopy's secrets.  It also means that he lost._";
	text2 = "_He was a wise man.  Wise, but weak._";
	code = 
		set_flag(22,0,3);
	break;

begintalknode 6;
	state = 2;
	nextstate = -1;
	condition = get_flag(22,0) == 3;
	question = "What are the secrets of Canopy?";
	text1 = "_They aren't secrets to me, and they shouldn't be to you either._";
	text2 = "_Canopy is a beautiful place.  There are other places that are equally as beautiful to others, but they aren't beautiful to me.  But they are similar..._";
	text3 = "The shade hovers from one side to the other.";
	action = END_TALK;
	code = 
		set_flag(22,0,4);
		erase_char(13);
		activate_hidden_group(3);
	break;

begintalknode 7;
	state = 1;
	nextstate = 1;
	condition = get_flag(22,0) == 4;
	question = "Explain yourself!  Who are you, what is this place, and what is so crazy about Canopy?";
	text1 = "_The simplest answer is because I said so, but I suppose you don't want to hear that._";
	text2 = "_I suppose is a funny phrase, isn't it?  You make an assumption and go on it.  I suppose that is what I am._";
	text3 = "_Canopy is my child._";
	code = 
		set_flag(22,0,5);
	break;

begintalknode 8;
	state = 1;
	nextstate = -1;
	condition = get_flag(22,0) == 5;
	question = "Canopy is your child?  Questions remain unanswered!";
	text1 = "_And if you weren't so obedient and outright stupid, they would remain as such._";
	text2 = "_Call me Emery J. Bishop, then.  We will meet someday.  For now, however, you will treat me as your master.  It is a simple arrangement, really._";
	text3 = "_If you figure it out and you complain, then maybe we will have the pleasure of crossing blades._";
	text4 = "He swtches places again.";
	action = END_TALK;
	code = 
		set_flag(22,0,6);
		erase_char(14);
		activate_hidden_group(4);
	break;

begintalknode 9;
	state = 2;
	nextstate = 2;
	condition = get_flag(22,0) == 6;
	question = "How are YOU my master, Emery?";
	text1 = "_I have power over you, regardless of whether you realize it or not.  Zauberer realized it, and that is why he tried to escape._";
	text2 = "_But he also knew that I would not let him escape.  Canopy is my reign.  I used you to stop him from escaping.  Oh, but he came close!_";
	text3 = "_He wanted to use the beam to bore a hole out of Canopy.  I gave you a mirror to bore a hole through him.  Why, I suppose he died from the razor sharp irony!_";
	code = 
		set_flag(22,0,7);
	break;

begintalknode 10;
	state = 2;
	nextstate = -1;
	condition = get_flag(22,0) == 7;
	question = "Enough of this.  How can we get back to the real world?";
	text1 = "_You want to go back to Canopy!  But maybe you don't even realize that you never even left.  You want to return?  So be it, then._";
	text2 = "_Fight your way to the centripetal force and amalgamate yourself with it._";
	text3 = "_I believe a proper demonstration of this willingness would be to kill the rogue General who betrayed you.  Oh, and speak of the devil!_";
	text4 = "He begins to disappear, but before he does, he points a finger towards General Adlerauge.";
	action = END_TALK;
	code = 
		erase_char(13);
		erase_char(14);
		set_flag(22,0,8);
		activate_hidden_group(5);
	break;

begintalknode 11;
	state = -1;
	nextstate = 3;
	question = "General Adlerauge";
	text1 = "Here stands General Adlerauge.  He seems profusely disappointed, perhaps he planned on Zauberer's killing you.";
	text2 = "Regardless of the circumstances for his only now showing up, he isn't attacking you at the moment.";
	text3 = "It's difficult to discern his emotions from inside his helm, but he doesn't appear to be pleased with you.";
	text5 = "General Adlerauge is still standing here.  He seems to be waiting for you to say something.";
	action = INTRO;

begintalknode 12;
	state = 3;
	nextstate = 3;
	condition = get_flag(22,0) == 8;
	question = "Where WERE you?";
	text1 = "_I was here the whole time.  I saw you defeat Zauberer from a distance.  I saw you speak with the shades._";
	text2 = "_You don't know who you are dealing with, nor do you know what you're dealing with._";
	code = 
		set_flag(22,0,9);
	break;

begintalknode 13;
	state = 3;
	nextstate = 3;
	condition = get_flag(22,0) == 9;
	question = "What is going on here?  Tell us answers!";
	text1 = "_You're in Canopy right now.  Problem is, none of us can escape.  We're trapped._";
	code = 
		set_flag(22,0,10);
	break;

begintalknode 14;
	state = 3;
	nextstate = -1;
	condition = get_flag(22,0) >= 12;
	question = "Stuff this noise, it makes no sense at ALL.";
	text1 = "General Adlerauge shakes his head.  _I'm sorry that you had to say that._";
	text2 = "_Your indoctrination makes you as useless to me as Zauberer, but your obnoxious refusal to acknowledge it is even more deplorable._";
	text3 = "_Emery has his warriors hand-selected.  It would appear as if they are you.  I'm sorry, Specialists...  I must put you down._  General Adlerauge readies his bow, and combat is initiated.";
	text4 = "_Emery has his warriors hand-selected.  It would appear as if they are you.  I'm sorry, Specialist...  I must put you down._  General Adlerauge readies his bow, and combat is initiated.";
	action = END_TALK;
	code = 
		if(party_size() > 1)
			remove_string(4);
		if(party_size() == 1)
			remove_string(3);

		set_attitude(15,10);
		set_flag(66,2,1);
	break;

begintalknode 15;
	state = 3;
	nextstate = 3;
	condition = get_flag(22,0) == 10;
	question = "We're all trapped here?";
	text1 = "_Emery J. Bishop is in control of ALL of this.  He's a mastermind!_";
	text2 = "_Zauberer and I collaborated here to bet him.  Leader; however, forced me to take you with.  Emery made him do it._";
	code = 
		set_flag(22,0,11);
	break;

begintalknode 16;
	state = 3;
	nextstate = 3;
	condition = get_flag(22,0) == 11;
	question = "Wait, Emery controls Leader?";
	text1 = "_Yeah!  He works this entire deal behind closed doors._";
	text2 = "_Now THIS one will shock you.  North Canopy and Sud Canopy are not enemies._";
	code = 
		set_flag(22,0,12);
	break;

begintalknode 17;
	state = 3;
	nextstate = -1;
	condition = get_flag(22,0) >= 12;
	question = "The enemy is Sud Canopy.  It will be fought by North Canopy.";
	text1 = "General Adlerauge shakes his head.  _I'm sorry that you had to say that._";
	text2 = "_Your indoctrination makes you as useless to me as Zauberer, but your obnoxious refusal to acknowledge it is even more deplorable._";
	text3 = "_Looks like I'm not convincing you.  I'm sorry, Specialists...  I must put you down._  General Adlerauge readies his bow, and combat is initiated._";
	text4 = "_Looks like I'm not convincing you.  I'm sorry, Specialist...  I must put you down._  General Adlerauge readies his bow, and combat is initiated._";
	action = END_TALK;
	code = 
		if(party_size() > 1)
			remove_string(4);
		if(party_size() == 1)
			remove_string(3);

		set_attitude(15,10);
		set_flag(66,2,1);
	break;

begintalknode 18;
	state = 3;
	nextstate = 3;
	condition = get_flag(22,0) == 12;
	question = "Why would you say that both are enemies?";
	text1 = "_Why, you say!  That's a rich question.  Emery says that they are.  I say that they aren't.  But my why is as good as his- better, if I lie dead._";
	text2 = "_You see, it all has to do with power._";
	code = 
		set_flag(22,0,13);
	break;

begintalknode 19;
	state = 3;
	nextstate = 3;
	condition = get_flag(22,0) == 13;
	question = "Why does power make such a difference?";
	text1 = "_Power tells you what's right and wrong.  With power, you are either right, aligned with that which is right, or dead._";
	text2 = "_I suppose that's all there really is to say.  Is this making sense to you?_";
	code = 
		set_flag(22,0,14);
	break;

begintalknode 20;
	state = 3;
	nextstate = -1;
	condition = get_flag(22,0) >= 14;
	question = "You mean to say that morals and other values are meaningless?  That's wrong!";
	text1 = "He shakes his head.  _Power without aim.  The bulls-eye is only a bunch of zeroes, but if you don't know that..._";
	text2 = "_You can't see.  I apologize for what I must do, but as long as you can't see, you can only go on the path that Emery lays down for you._";
	text3 = "_Emery has his warriors hand-selected.  It would appear as if they are you.  I'm sorry, Specialists...  I must put you down._  General Adlerauge readies his bow, and combat is initiated.";
	text4 = "_Emery has his warriors hand-selected.  It would appear as if they are you.  I'm sorry, Specialist...  I must put you down._  General Adlerauge readies his bow, and combat is initiated.";
	action = END_TALK;
	code = 
		if(party_size() > 1)
			remove_string(4);
		if(party_size() == 1)
			remove_string(3);

		set_attitude(15,10);
		set_flag(66,2,2);
	break;

begintalknode 21;
	state = 3;
	nextstate = 3;
	condition = get_flag(22,0) == 14;
	question = "Influence and power make right and wrong?  Okay, I can buy that.";
	text1 = "_That's because you were born in Canopy.  You learn quickly, what you are taught.  I have come to free myself from it._";
	text2 = "_Zauberer came to free himself from it.  But Canopy wants you inside.  It wants you to abandon the sun, the sun of another way._";
	text3 = "_There must be a way out.  I will find it._";
	code = 
		set_flag(22,0,15);
	break;

begintalknode 22;
	state = 3;
	nextstate = 3;
	condition = get_flag(22,0) == 15;
	question = "How will you find the way out, then?";
	text1 = "He takes a step back.  _How will I find a way out?  Why, I'll make it!  I can make my own way out!  What sort of a question is that?!_";
	text2 = "He seems agitated.  His head twitches.  Perhaps he isn't well?";
	code = 
		set_flag(22,0,16);
	break;

begintalknode 23;
	state = 3;
	nextstate = 3;
	condition = get_flag(22,0) == 16;
	question = "So you will make your own way out.";
	text1 = "He nods firmly, clenches his fist, and raises it into the air.";
	text2 = "_Yes!  I will make my way out of Canopy.  I can make it!  You understand, you finally get it!_";
	text3 = "_Good.  Great.  Yes, this is great!_";
	code = 
		set_flag(22,0,17);
	break;

begintalknode 24;
	state = 3;
	nextstate = -1;
	condition = get_flag(22,0) == 17;
	question = "Then let's crush power!  Emery can't lead Canopy in two pieces, can he?";
	text1 = "_Anti-Power, yes!  With Anti-Power, we can fight power._";
	text2 = "He stops.  _But...  ...negative values, they're positives in reverse, aren't they?  Did Emery send you here to tell me this?_";
	text3 = "He shakes his head.  _Yes...  I think I know the answer.  I can escape Canopy, and Emery can rule it.  Let us duel, then._";
	text4 = "General Adlerauge aims his bow at you, and combat is initiated.";
	action = END_TALK;
	code = 
		set_flag(66,2,3);
		set_attitude(15,10);
	break;

begintalknode 25;
	state = 3;
	nextstate = -1;
	condition = get_flag(22,0) == 17;
	question = "You will make a way out.  With power.";
	text1 = "His head twitches mildly.  _What?  No, with anti-power!_";
	text2 = "_There has to be another way.  I know that there is another way._  His head twitches violently.  _But...  The negative of power...  The way he uses Stahlmann and Leader..._";
	text3 = "He stops twitching and faces you.  _You.  You are demons!  I mustn't know the ways of Canopy.  Then let us do the inevitable._";
	text4 = "General Adlerauge aims his bow at you, and combat is initiated.";
	action = END_TALK;
	code = 
		set_attitude(15,10);
		set_flag(66,2,4);
	break;