// TOWN DIALOGUE SCRIPT
//    Town 22: Aranea Web

begintalkscript;

variables;

short i,j,k,r1,choice;

// Spider

begintalknode;
	tag = 10;
	state = -1;
	nextstate = 1;
	question = "Spider";
	text1 = "A spider is hiding in the corner. Strangely, it doesn't seem interested in attacking you. You look closer, and see that it is, in fact, one of the friendly spiders! _Shhhhh! I'm Spider!_ It says this in the loud, chirpy voice you've come to know so well.";
	text5 = "Spider is still hiding back here. He seems terrified. _Don't make a lot of noise or the aranea will totally murder us!_";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_What are you doing in the aranea cave?_";
	text1 = "_I'm spying! I'm a stealth spider!_ It skitters quietly back and forth across the filthy floor.";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_Aren't you afraid of the aranea?_";
	text1 = "_Yeah, the big old meanies! I gotta be real careful. Fortunately, they don't see too good, so they think I look like a dumb spider! I'm sneaky!_";

begintalknode;
	state = 3;
	nextstate = 6;
	question = "_Sneaky?_";
	text1 = "_You gotta be sneaky to be a stealth spider! It's hard work, though. I really miss Spider._";

begintalknode;
	state = 2;
	nextstate = 4;
	question = "_Have you been spying here long?_";
	text1 = "_Yeah - I've been here for ... uhhh ... some days! I know all about this place! What do you want to know?_ It looks you over. _You're cute!_ ";

begintalknode;
	state = 4;
	nextstate = 1;
	question = "_I think you're cute too._";
	text1 = "_Yay!_";

begintalknode;
	state = 4;
	nextstate = 1;
	question = "_Um, thank you._";
	text1 = "_You're welcome!_";

begintalknode;
	state = 6;
	nextstate = -1;
	question = "_Who is Spider?_";
	text1 = "_That's my mate! If you see her, tell her I said hi!_";

begintalknode;
	state = 1;
	nextstate = 5;
	condition = gf(21,7) == 1;
	question = "_I'm here to rescue your spider eggs._";
	text1 = "It hisses. _They have our egg sac here. It's way on the other side, in the far corner, not in the center._ It points northwest. _A bunch of nasty spiders guard it, so I can't get it. They want to do an experiment on them!_ It hisses again, very loudly.";
	text3 = "_It's not here anymore! You rescued it! Yay!_ It jumps up and down happily.";
	action = DEP_ON_SDF 22 1 0;

begintalknode;
	state = 5;
	nextstate = 7;
	question = "_What's in the center of these caves?_";
	text1 = "_That's where the aranea leader is. Stay away from her. She's big and mean._ Spider's leg hairs twitch in aggravation. _It's real, real dangerous._";

begintalknode;
	state = 7;
	nextstate = -1;
	condition = gf(22,11) > 0;
	question = "_Oh, I killed her._";
	text1 = "_Really? Then, truly, you are the hero who was foretold._ You ask Spider what he meant by that. _I have no idea!_";

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(22,1) == 0;
	question = "_You shouldn't be here! It's too dangerous!_";
	text1 = "_I have to stay here until someone rescues the eggs the nasty spiders stole from us. I'm real scared, but I got to stay! It's my sneaky spider duty!_";

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(22,1) >= 1;
	question = "_You shouldn't be here! It's too dangerous!_";
	text1 = "It thinks. It's a slow process. _You're right! Now that you stole the spider eggs, I shouldn't be here anymore! I could get beat up! Thanks!_ It runs away.";
	action = END_TALK;
	code =
		erase_char(2200);
		sf(22,10,1);
	break;

