<?xml version="1.0"?>
<story title="In the Jungle">

<!-- locations -->
<location key="start" caption="Intro">
	Oh, my head. It hurts. Why am I out here when I've got this kind 
    of headache? And where is 'here'? And who am I?<br/>
	A simple text adventure. Common shortcuts: n,e,s,w for directions, i for inventory, x for examine. To play: 
	<goto location="path"/>
</location>

<location key="path" caption="The jungle path">
	You are standing on a barely visible path in the middle of nowhere. The path looks like it's been walked by bare feet (or rather paws) for many a year. From the small amount of light reaching the ground here I should say the path runs in almost straight north/south direction. On both sides of the path is the deepest, darkest jungle you've ever seen. I really wouldn't recommend going that way. The path itself isn't much of a place to hold on to either. You get the impression that the vegetation is trying hard to recapture even this tiny part of land. The trees on both sides seems to come closer and there are vines hanging down almost touching your head.
	<exits>
		<exit go="north" to="bank"/>
		<exit go="south" to="clearing"/>
		<exit go="east,west" to="jungle"/>
	</exits>
</location>

<location key="bank" caption="The river bank">
	The path ends here on the south side of a wide river. On the ground you can see lots of paw prints (some pretty big ones, too). The obvious guess is naturally that this is a common place for the wild animals to stop by for a drink or two (and maybe a bite too). The river itself doesn't seem to be too dangerous - it's neither too wide nor too rapid - but those logs with a pair of eyes give you second thoughts.
	<exits>
		<exit go="north" to="river"/>
		<exit go="south" to="path"/>
		<exit go="east,west" to="jungle"/>
	</exits>
</location>
	
<location key="trees" caption="Into the trees">
	You have now ended up high above the ground in the middle of the trees and vines. The vegetation is so thick up here that it seems almost like a green floor.
	<exits>
		<exit go="down" to="path"/>
	</exits>
</location>

<location key="river" caption="In the river">
	Defying the obvious horrors of the river you try for the northern river bank. One crocodile immediately chops your left foot of, but you makes it almost to the middle of the river before another merciful crocodile finishes you off.
	<quit/>
</location>

<location key="clearing" caption="At the clearing">
	Here the jungle opens up a bit and the path takes you straight into a clearing. The path seems to continue on the south side of the clearing some fifty paces away.
	<exits>
		<exit go="north" to="path"/>
		<exit go="east,west" to="jungle"/>
		<exit go="south" to="camp">
			<if test="hero IS repelling">
				<do>
					When you approaches the tiger it looks confused. Then it really takes in your smell. It suddenly bolts, turns and takes off into the jungle.
					<destroy object='tiger'/>
				</do>
				<else>
					The tiger opens its big mouth and lets out a terrifying growl. Apparently it won't let you pass.
					<abort/>
				</else>
			</if>
		</exit>
	</exits>
</location>

<location key="jungle" caption="In the jungle">
	Now you've really done it. Didn't I tell you NOT to enter the jungle.
	<exits>
		<exit go="north,south,east,west" to="jungle">
			Stumbling around in the jungle trying to make your way through the damp vegetation that almost seems to reach out for you, you suddenly stumble onto a snake, which disapprove very clearly of you stepping on it. One bite in the leg and you have had it.
			<quit/>
		</exit>
	</exits>
</location>

<location key="camp" caption="At the camp">
	Here is the scattered parts of what ones was the camp of your expedition. The sight of it makes your memory come back. When you were attacked last night of a herd of wild elephants everyone fled in panic. You yourself ran straight into a tree and must have lost both conciousness and memory. 'Well, hope the computer still works.' you think. 'I think I stick to computer adventures, at least for the immediate future.'
	<quit/>
</location>

<!-- objects -->
<object key="apple" start="path" caption="an apple">A normal size delicious red apple. I wander how it ended up here in the middle of the jungle.</object>
<object key="tiger" start="clearing" caption="a tiger">An enormous tiger is standing here blocking your way.</object>
<object key="book" start="CARRIED" caption="a notebook">The book is called 'The Jungle Book: Tricks and Tips'. It also has your name on it.</object>
<object key="vine" start="path" caption="a vine">A particulary long and thick vine is hanging down just beside you.</object>
<object key="fungus" start="trees" caption="some fungus">Some kind of vaguely familiar fungus is growing here on a vine.</object>

<!-- messages -->
<message key="title">Lost in the Jungle</message>
<message key="exits">Visible exits:</message>
<message key="also">You can also see:</message>
<message key="whatnext">What do you want to do?|Your action?|What next?|What will you do?</message>
<message key="enter">Enter</message>
<message key="footer">The Quill - Adventure System in XML</message>
<message key="dontunderstand">I don't understand this.|I don't know what you mean by that.</message>
<message key="cantmove">I can't go in that direction.</message>
<message key="waiting">You wait.|Nothing happens.|You do nothing.|Time passes.</message>
<message key="cantdo">I cannot perform this action.</message>
<message key="gameover">GAME OVER! Press [Enter] to start a new game.</message>
<message key="continue">Press [Enter].</message>
<message key="youcarry">You have with you:|You are carrying:</message>
<message key="nothingcarried">You carry nothing.</message>
<message key="nothere">There is no such thing here.</message>
<message key="alreadycarried">You have it already.</message>
<message key="donthave">You don't have such item.</message>
<message key="taken">Taken.</message>
<message key="dropped">Dropped.</message>

<!-- vocabulary -->
<word move="1">north,n</word>
<word move="1">south,s</word>
<word move="1">west,w</word>
<word move="1">east,e</word>
<word move="1">up,u</word>
<word move="1">down,d</word>

<word>examine,x</word>
<word>quit,exit,q</word>
<word>inventory,i</word>
<word>describe,redescribe,look,l,r</word>
<word>score</word>
<word>restart</word>

<word>take,get,grab</word>
<word>drop</word>
<word>eat</word>
<word>read,open</word>
<word>climb</word>
<word>wait</word>
<word>fungus</word>
<word>vine</word>
<word>book,notebook</word>
<word>page</word>
<word>kiss,hug</word>
<word>tiger</word>
<word>apple,fruit</word>

<!-- actions -->
<action key="quit"><quit/></action>
<action key="inventory"><inventory/></action>
<action key="describe"><describe/></action>
<action key="score"><turns/><score/></action>
<action key="examine *"><examine/></action>

<action key="take apple"><take object="apple"/></action>
<action key="drop apple"><drop object="apple"/></action>
<action key="eat apple">
	<if test="apple PRESENT">
	<do><destroy object="apple"/>You eat the apple. It tastes delicious.</do>
	<else>I can't see any apples here.</else>
	</if>
</action>

<action key="take vine">
	<if test="vine PRESENT">
	<do>The vine seems strong enough to carry your weight.</do>
	<else>I can't see any vines here.</else>
	</if>
</action>
<action key="climb vine">
	<if test="vine PRESENT">
	<do>The vine is quite slippery, but you still manage to climb well into the trees.<goto location="trees"/></do>
	<else>I can't see any vines here.</else>
	</if>
</action>

<action key="take book"><take object="book"/></action>
<action key="drop book"><drop object="book"/></action>
<action key="read book">
	<if test="book CARRIED">
	<do>You open the book and glance over the notes. It is really a very strange mixture. Something about a tree you shouldn't hide under when it rains, 'cause some kind of bugs will start falling of its leaves, something else about a certain kind of fungus, which grows up among the vines and when eaten is a strong tiger repellant and something about how to make a fire from wet moss. Here are page after page of useful hints of how to survive in the jungle, all in your own hand writing.</do>
	<else>You don't have the book.</else>
	</if>
</action>
<action key="page">All pages are just the same, really...</action>

<action key="take fungus"><take object="fungus" caption="You take some fungus."/></action>
<action key="drop fungus"><drop object="fungus" caption="The fungus immediately clings to a new vine."/></action>
<action key="eat fungus">
	<if test="fungus PRESENT">
	<do><destroy object="fungus"/><make object="hero" value="repelling"/>You try a bit of the fungus. It doesn't taste bad although it isn't that delicious either. You swallow the rest of it almost without chewing. After a short while a strange odour starts perspiring from your body.</do>
	<else>There is no fungus here.</else>
	</if>
</action>

<action key="kiss tiger">
	<if test="tiger PRESENT">
	<do>You pervert! Why do you want to do that for? Don't you know tigers don't like hugging and kissing?</do>
	<else>There is no tiger here (lucky for you).</else>
	</if>
</action>

</story>
