begintalkscript;
variables;
short choice,i;

begintalknode 1;
	state = -1;
	nextstate = 1;
	question = "Erasmus";
	text1 = "Erasmus stands reading from one of his books by the light of the setting sun, a rucksack containing his belongings, mostly books, lies in the snow with the top open.";
	text2 = "_You know, when we first got to these mountains I thought, 'the sooner we leave here the better.' But the place grows on you in a strange way, my head feels clearer than it ever did, I could sit and think for hours out here in the silence._";
	text3 = "_We'll kill the Beast, and then this will be a place where a man can live in peace, where the people of Manibor can live in peace. Don't forget that's why we're here, Vincent, don't forget why we're suffering up here._";
	text5 = "Erasmus puts down his book, _I'll be returning to camp soon I think. It's getting too dark to read._";
	action = INTRO;

begintalknode 2;
	state = 1;
	nextstate = -1;
	question = "What are you doing out here?";
	text1 = "_Reading. I do a lot of reading, in case you hadn't noticed, and I always do my best thinking in silence. I can read anywhere, even on the move, you learn that kind of stuff when you teach five classes a day on opposite ends of the school._";
	text2 = "_You can take in information that way, but only in a place like this do you do your best thinking. This is the type of place where you get those thoughts that stick, thoughts that-- well I'm boring you now._";

begintalknode 3;
	state = 1;
	nextstate = 2;
	question = "What are we going to do next?";
	text1 = "_We'll weather this storm, then go from there. It is Sergeant Burden's decision in the end, I have been advising her lately but the decisions are hers._";
	text2 = "_We'll see how Captain Ainsley is doing, and whether I can figure out where we are on this map. I could have SWORN I knew where we were on it; we found a cave for the night so it wasn't catastrophic, but it could have been._";

begintalknode 4;
	state = 2;
	nextstate = 3;
	question = "How is Ainsley doing?";
	text1 = "_I gave him a quick look before I left camp, just to make sure he wasn't in any immediate danger. He isn't improving like a hypothermia victim should, after his core warms up and circulation is restored, it should just be a matter of recupperating._";
	text2 = "_I think the problem is his wounds, which I originally thought wouldn't be life threatening. I cleaned and wrapped them yesterday, but I think they may be becoming infected._";
	text3 = "_I have a recipe for a poultice for treating wounds, animal bites particularly, that can be prepared from holly and epsom salts. Well I have the salts, and I was hoping you could find some holly for me._";

begintalknode 5;
	state = 3;
	nextstate = -1;
	question = "Sure, how do I find them?";
	text1 = "_Well what I need for this poultice are the ripe berries, those are the ones with the healing properties. Ripe berries are a dark purple or wine color, the unripe ones are a bright red-- forget those they're useless._";
	text2 = "He shows you a sketch of the holly plant in one of his many books, _Bring me some ripe holly berries and I could make a poultice that could clear up that infection._";
	code = 
	set_flag(250,2,1);
break;

begintalknode 6;
	state = 2;
	nextstate = 4;
	question = "You're still on that map? Why don't you just forget about it?";
	text1 = "_It's a mad fancy to begin with and I should just forget about it, but the promise of new knowledge, of finding that watch tower and seeing it for myself, is too appealing._";
	text2 = "_The Empire has never been particularly forthcoming about their affairs, and although it is known that Amon Sul was destaffed when the mines closed it has been proposed that some of the researchers remained behind._";
	text3 = "_Anyhow, I was hoping you could help me identify some landmarks, I would really appreciate it if you're headed up the mountain._";

begintalknode 7;
	state = 4;
	nextstate = -1;
	question = "Yeah sure. What landmark is it you're looking for?";
	text1 = "_Well I've been rethinking some of my assumptions. Jamie had told me they found a great cliff with a river running through the bottom. Well that is here on the map._ He holds up the inscrutable map and points to a glyph on it.";
	text2 = "_I think I overestimated how far up we had went yesterday, I just can't imagine how we could be anywhere else on this map._ He shakes his head in frustration.";
	text3 = "_Anyhow, if I'm correct then there should a peak up ahead called Condor Height, if you can find it then I'll know we're in the right place._";
	code =
	set_flag(4,1,1);
break;

begintalknode 8;
	state = 1;
	nextstate = -1;
	question = "I'm looking for firewood, any advice?";
	text1 = "_If you're going higher into the mountains alone, then beware. Some of those wolves you killed looked like they had warg blood in them, which would mean they escaped from a hobgoblin camp._";
	text2 = "_Hobgoblins are nasty, useless, uncivilized creatures; the only thing I've ever found interesting about them is how they tame and breed wargs. Really quite an accomplishment, and naturally they use it to create further evil._";

begintalknode 9;
	state = -1;
	nextstate = 5;
	question = "Erasmus";
	text1 = "Erasmus breathes in shallow and uneven gasps. He bites his lip in an attempt to stifle the pain, before you can even ask what happens he begins to speak slowly and laboriously.";
	text2 = "_The Beast-- it came out of nowhere. I-- I-- I'm sorry Vincent. So *gasp* sorry. Should have-- should have known better. Should have turned *gasp* back earlier._";
	text3 = "Your friend's body lies limply against the tree. The blood flowing from his wounds is beginning to slow down, all the life, knowledge, and passion has gone from his body.";
	text4 = "His last words resonate through your head. The Beast was headed towards the cave, towards the others. You have no time to waste here, as much as it pains you you'll have to leave Erasmus' body for now.";
	code =
	if(get_flag(4,9) == 0){
		remove_string(3);
		remove_string(4);
	}
	else{
		remove_string(1);
		remove_string(2);
	}
break;

begintalknode 10;
	state = 5;
	nextstate = -1;
	condition = get_flag(4,9) == 0;
	question = "Let me see where you're wounded, you need treatment.";
	text1 = "Erasmus holds up a blood stained hand to ward you off, and shakes his head feebly, _No-- no it's too late for me. The-- the Beast got me good. Came out of-- came out of...._";
	text2 = "He trails off, and closes his eyes. You grow alarmed when he doesn't open them at first, but when he does so several seconds later they burn with a new intensity.";
	text3 = "_It went south-- towards-- towards our cave. Please, Vincent-- leave me and-- and find the others. I'm sorry I got us into this-- sorry I-- sorry I didn't ask Burden to turn back earlier. I just thought-- no you must help the others. LEAVE!_";
	text4 = "The last exclamation seems to take all the life that's left from his body. He slumps back, and lets his hands fall off his wounds. You see now just how grievous they are. As you stand to go, one last look back shows you his chest is no longer moving.";
	action = END_TALK;
	code = 
	set_flag(4,9,1);
break;