<?xml version="1.0"?>
<scenes id="Biki's Big Adventure">
   <scene id="plane" north="nowhere" south="nowhere" west="nowhere" east="nowhere" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="jungleFloor">
      <setting>	[p]You are an ethnobotanist collecting 
		exotic specimens in the rainforests of Southeast Asia.  Today you are traveling 
		in a small turbo-prop airplane to your next destination.  Above, the sun shines brightly 
                in a cloudless sky.  Below, the indigo waters are dotted with emerald islands. 
                It almost seems too gorgeous.[/p]
		[p]You turn to your pilot to tell him what a beautiful day it is and you notice that he 
		is very pale and sweating profusely.  He clutches at his chest and passes out.  Your compassionate concern 
		for the pilot is suddenly replaced by the certain knowledge that the plane is nosediving into
		the ocean.[/p]
		[p]You grab the throttle.  You have no idea what you are doing, but somehow you survive
		landing in the treetops of a seemingly uninhabited island.  You turn to assist the pilot, but, sadly, he
		is beyond your help.[/p]
		[p]In the far distance you here a bird calling.  It sounds like, "beekee, beekee."[/p]
		[p]The plane is perched precariously and there's a giant gaping hole where the door should be.  It occurs to you that fifty feet above the ground 
		is not a very safe place to be.[/p]
      </setting>
      <weather>sunny</weather>
      <monolog>
         <when>
            
         </when>
      </monolog>
      <dialog>out
	<when>
	   <say>[p]You are hugging a tree branch.  If you are careful, you might be able to climb down.[/p]</say>
           <handled/> 
        </when>
      </dialog>
      <dialog>down
	 <when>
            <changeProperty type="scene" id="plane" property="setting">
	       [p]You are in an airplane perched precariously in the treetops.  The corpse of
		the pilot is here.  It doesn't look or smell too pleasant.  You really don't 
		want to be here.[/p]
            </changeProperty>
            <say>[p]Whoa! That was a long climb down![/p]</say>
      	</when>
      </dialog>	
      <dialog>pilot
         <when>
            <say>Don't disturb the dead!</say>
            <handled/>
         </when>
      </dialog>
      <dialog>weather
	<when>
	<sayProperty type="scene" id="start" property="weather"/>
	</when>
      </dialog>
   </scene>

   <scene id="jungleFloor" north="twisty1" south="nowhere" west="nowhere" east="waterfall" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="plane" down="nowhere">
      <setting>[p]You are in the middle of a dense jungle.  Above you is a plane precariously perched in the tree tops.  It is totally impenetrable to the West 
		and South.  To the North you a narrow, twisty path.  To the East you see a waterfall in the distance.</setting>
      <weather>dappled sunlight</weather>
   </scene>

   <scene id="twisty1" north="twisty7" south="twisty6" west="twisty8" east="twisty4" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are in a maze of twisty little footpaths that all look alike.  
		The dense jungle foliage crowds arounds you. You hear the racous 
		shout of parrots in the upper canopy.  There are paths going North, South, 
                East, and West[/p]</setting>
      <weather>dappled sunlight</weather>
   </scene>

   <scene id="twisty2" north="twisty3" south="twisty6" west="jungleFloor" east="twisty1" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are in a maze of twisty little footpaths that all look alike.  
		The dense jungle foliage crowds arounds you. You hear the racous 
		shout of parrots in the upper canopy.  There are paths going North, South, 
                East, and West[/p]</setting>
      <weather>dappled sunlight</weather>
   </scene>

   <scene id="twisty3" north="twisty6" south="twisty7" west="twisty4" east="twisty8" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are in a maze of twisty little footpaths that all look alike.  
		The dense jungle foliage crowds arounds you. You hear the racous 
		shout of parrots in the upper canopy.  There are paths going North, South, 
                East, and West[/p]</setting>
      <weather>dappled sunlight</weather>
   </scene>

   <scene id="twisty4" north="twisty1" south="jungleFloor" west="twisty2" east="twisty3" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are in a maze of twisty little footpaths that all look alike.  
		The dense jungle foliage crowds arounds you. You hear the racous 
		shout of parrots in the upper canopy.  There are paths going North, South, 
                East, and West[/p]</setting>
      <weather>dappled sunlight</weather>
   </scene>
 
  <scene id="twisty5" north="twisty1" south="twisty3" west="twisty6" east="waterfall" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are in a maze of twisty little footpaths that all look alike.  
		The dense jungle foliage crowds arounds you. You hear the racous 
		shout of parrots in the upper canopy.  There are paths going North, South, 
                East, and West[/p]</setting>
      <weather>dappled sunlight</weather>
   </scene>

   <scene id="twisty6" north="twisty2" south="twisty3" west="twisty7" east="twisty9" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are in a maze of twisty little footpaths that all look alike.  
		The dense jungle foliage crowds arounds you. You hear the racous 
		shout of parrots in the upper canopy.  There are paths going North, South, 
                East, and West[/p]</setting>
      <weather>dappled sunlight</weather>
   </scene>
   <scene id="twisty7" north="twisty9" south="twisty5" west="twisty4" east="twisty6" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are in a maze of twisty little footpaths that all look alike.  
		The dense jungle foliage crowds arounds you. You hear the racous 
		shout of parrots in the upper canopy.  There are paths going North, South, 
                East, and West[/p]</setting>
      <weather>dappled sunlight</weather>
   </scene>

   <scene id="twisty8" north="waterfall" south="jungleFloor" west="twisty5" east="twisty2" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are in a maze of twisty little footpaths that all look alike.  
		The dense jungle foliage crowds arounds you. You hear the racous 
		shout of parrots in the upper canopy.  There are paths going North, South, 
                East, and West[/p]</setting>
      <weather>dappled sunlight</weather>
   </scene>
   <scene id="twisty9" north="twisty5" south="waterfall" west="twisty7" east="twisty2" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are in a maze of twisty little footpaths that all look alike.  
		The dense jungle foliage crowds arounds you. You hear the racous 
		shout of parrots in the upper canopy.  There are paths going North, South, 
                East, and West[/p]</setting>
      <weather>dappled sunlight</weather>
   </scene>

   <scene id="waterfall" north="nowhere" south="twisty6" west="jungleFloor" east="twisty4" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]The thunderous pounding of the waterfall ahead to the East of you nearly deafens you.  
               The sun hits the mist and thows off thousands of fractured rainbows.  The brilliant colors
               are dazzling.  The wet spray is cooling.  A dangerously fast river with many rapids flows from the waterfall.  
		There is a 50 foot cliff above you.  There is Jungle to the West of you.  There's a twisty path to the South.  
		[/p]</setting>
      <weather>bright sunlight</weather>
      <warning>not warned</warning>
      <monolog>
	 <when>
		
         </when>
      </monolog>
      <dialog>swim
         <when>
            <propertyIs type="scene" id="curScene" property="warning">not warned</propertyIs>
            <say>That river really looks dangerous.  You may want to think twice about it.</say>
            <changeProperty type="scene" id="curScene" property="warning">warned</changeProperty>
            <handled/>
            <done/>
         </when>
         <when>
            <propertyIs type="scene" id="curScene" property="warning">warned</propertyIs>
            <say>[p]Unfortunately the river's current is strong and the rocks are hard.  You did not survive the crossing.  
                 The game is over.  Press your browser's refresh button if you want to try again.[/p]
                 [p]Your score is [/p]</say>
            <sayProperty type="character" id="player" property="score"/>
            <say>[p] out of a possible 200.[/p]</say>
		
            <gameOver/>
            <handled/>
         </when>
      </dialog>
      <dialog>north
         <when>
            <propertyIs type="character" id="player" property="stalk">on</propertyIs>
            <changeProperty type="character" id="player" property="stalk">off</changeProperty>
            <moveTo>river</moveTo>
            <handled/> 
         </when>
      </dialog>
   </scene>

   <scene id="river" north="nowhere" south="nowhere" west="nowhere" east="nowhere" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You are at the river above the waterfall.  You see signs of habitation across the river to the North. There's
		a giant stalk next to the cliff to the South.  There is impenetrable jungle to the East and West[/p]</setting>
      <weather>bright sunlight</weather>
      <dialog>swim
         <when>
            <say>[p]Unfortunately the river's current is strong and the rocks are hard.  You did not survive the crossing.  
                 The game is over.  Press your browser's refresh button if you want to try again.[/p][p]Your score is </say>
            <sayProperty type="character" id="player" property="score"/>
            <say>[p] out of a possible 200.[/p]</say>
            <gameOver/>
            <handled/>
        </when>
     </dialog>
     <dialog>North
         <when>
            <say>[p]Unfortunately the river's current is strong and the rocks are hard.  You did not survive the crossing.  
                 The game is over.  Press your browser's refresh button if you want to try again.[/p][p]Your score is </say>
            <sayProperty type="character" id="player" property="score"/>
            <say>[p] out of a possible 200.[/p]</say>
            <gameOver/>
            <handled/>
        </when>
     </dialog>	
     <dialog>South
       <when>
         <changeProperty type="character" id="player" property="stalk">on</changeProperty>
         <moveTo>waterfall</moveTo>
         <handled/> 
       </when>
     </dialog>       
   </scene>
   <scene id="campground" north="nowhere" south="nowhere" west="nowhere" east="nowhere" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <setting>[p]You see a campground.  You see many cages filled with exotic looking birds.  There are heavily armed people here.  
		  They are probably poachers.  You feel sorry for the birds in the cage. There is impenetrable jungle to the East and West.  The river is to the South.[/p]</setting>
      <weather>bright sunlight</weather>
      <birds>caged</birds>
      <dialog>swim
         <when>
            <say>[p]Unfortunately the river's current is strong and the rocks are hard.  You did not survive the crossing.  
                 The game is over.  Press your browser's refresh button if you want to try again.[/p][p]Your score is </say>
            <sayProperty type="character" id="player" property="score"/>
            <say>[p] out of a possible 200.[/p]</say>
            <gameOver/>
            <handled/>
        </when>
     </dialog>
     <dialog>South
         <when>
            <say>[p]Unfortunately the river's current is strong and the rocks are hard.  You did not survive the crossing.  
                 The game is over.  Press your browser's refresh button if you want to try again.[/p][p]Your score is </say>
            <sayProperty type="character" id="player" property="score"/>
            <say>[p] out of a possible 200.[/p]</say>  
            <gameOver/>
            <handled/>
        </when>
     </dialog>	
     <dialog>North
	<when>
	   <propertyIs type="character" id="player" property="visibility">invisible</propertyIs> 	
           <moveTo>nursery</moveTo>
           <handled/>  
        </when>
	<when>
	   <propertyIs type="character" id="player" property="visibility">visible</propertyIs> 	
           <say>[p]The poachers see you and shoot you.  The game is over.[/p][p]Your score is </say>
           <sayProperty type="character" id="player" property="score"/>
           <say>[p] out of a possible 200.[/p]</say>
           <gameOver/>
           <handled/>		
        </when>
     </dialog>
     <dialog>east
	<when>
	   <propertyIs type="character" id="player" property="visibility">invisible</propertyIs> 	
           <say>[p]The jungle is too dense in that direction.[/p]</say>
           <handled/>  
        </when>
	<when>
	   <propertyIs type="character" id="player" property="visibility">visible</propertyIs> 	
           <say>[p]The poachers see you and shoot you.  The game is over.[/p][p]Your score is </say>
           <sayProperty type="character" id="player" property="score"/>
           <say>[p] out of a possible 200.[/p]</say>
           <gameOver/>
           <handled/>		
        </when>
     </dialog>	
     <dialog>west
	<when>
	   <propertyIs type="character" id="player" property="visibility">invisible</propertyIs> 	
           <say>[p]The jungle is too dense in that direction.[/p]</say>
           <handled/>  
        </when>
	<when>
	   <propertyIs type="character" id="player" property="visibility">visible</propertyIs> 	
           <say>[p]The poachers see you and shoot you.  The game is over.[/p][p]Your score is </say>
           <sayProperty type="character" id="player" property="score"/>
           <say>[p] out of a possible 200.[/p]</say>
           <gameOver/>
           <handled/>		
        </when>
     </dialog>	
     <dialog>open cages
	<when>
           <propertyIs type="scene" id="campground" property="birds">caged</propertyIs>
	   <propertyIs type="character" id="player" property="visibility">invisible</propertyIs> 	
	   <say>[p]The birds fly away in grateful screeching. The poachers, frightened out of their wits, 
                run into the jungle.[/p]</say>
           <increaseProperty type="character" id="player" property="score">100</increaseProperty>		 	
           <changeProperty type="scene" id="campground" property="birds">free</changeProperty>       
           <changeProperty type="scene" id="campground" property="setting">You are in an abandoned campground.  There are many empty, open cages here.[/p]</changeProperty>
	   <updateScene/>
           <handled/>  
        </when>
	<when>
	   <propertyIs type="character" id="player" property="visibility">visible</propertyIs> 	
           <say>The poachers see you and shoot you before you have a chance to anything.  The game is over.[/p][p]Your score is </say>
           <sayProperty type="character" id="player" property="score"/>
           <say> out of a possible 200.[/p]</say>  
           <gameOver/>
           <updateScene/>
           <handled/>		
        </when>
     </dialog>
     <dialog>free birds
	<when>
           <propertyIs type="scene" id="campground" property="birds">caged</propertyIs>
	   <propertyIs type="character" id="player" property="visibility">invisible</propertyIs> 	
	   <say>[p]The birds fly away in grateful screeching. The poachers, frightened out of their wits, 
                run into the jungle.[/p]</say>
           <increaseProperty type="character" id="player" property="score">100</increaseProperty>		 	
           <changeProperty type="scene" id="campground" property="birds">free</changeProperty>       
           <changeProperty type="scene" id="campground" property="setting">You are in an abandoned campground.  There are many empty, open cages here.[/p]</changeProperty>
	   <updateScene/>
           <handled/>  
        </when>
	<when>
	   <propertyIs type="character" id="player" property="visibility">visible</propertyIs> 	
           <say>The poachers see you and shoot you before you have a chance to anything.  The game is over.[/p][p]Your score is </say>
           <sayProperty type="character" id="player" property="score"/>
           <say> out of a possible 200.[/p]</say>  
           <gameOver/>
           <updateScene/>
           <handled/>		
        </when>
     </dialog> 	

	   
   </scene>

   <scene id="nursery" north="nowhere" south="campground" west="nowhere" east="beach" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <weather>dappled sunlight</weather>
      <setting>[p]You are in the jungle.  Above you, you hear the screech of parrots.  To the East, you see a beach.[/p]</setting>
      <monolog>
        <when>
           <propLocatedAt type="scene" id="curScene">spring</propLocatedAt>
           <say>[p]Some of the female birds have gotten into the bad habit of laying their eggs in
                mid-flight.  Try to help them with your spring.  The arrow keys move the spring left
                and right.  Hold down the &lt;ctrl&gt; key to make the spring even faster.  Click [a href=bbb.html target="_blank"]here[/a] to start the game.[/p]
                [p]When you are done. Come back to this web page to continue the adventure.[/p]
           </say>
           <handled/> 
        </when>
        <when>
           <propLocatedAt type="character" id="player">spring</propLocatedAt>
           <say>[p]Some of the female birds have gotten into the bad habit of laying their eggs in
                mid-flight.  Try to help them with your spring.  The arrow keys move the spring left
                and right.  Hold down the &lt;ctrl&gt; key to make the spring even faster.  Click [a href=bbb.html target="_blank"]here[/a] to start the game.[/p]
                [p]When you are done. Come back to this web page to continue the adventure.[/p]
           </say>
           <handled/> 
        </when>
      </monolog>
   </scene>

   <scene id="beach" north="nowhere" south="nowhere" west="nursery" east="nowhere" northeast="nowhere" northwest="nowhere" southeast="nowhere" southwest="nowhere" up="nowhere" down="nowhere">
      <weather>bright sunlight</weather>
      <setting>[p]You are on shell strewn beach.  The ocean stretches out before you.  There's a boat moored on the shore.[/p]</setting>
      <dialog>boat
         <when>
            <propLocatedAt type="character" id="player">compass</propLocatedAt> 
            <say>[p]There are navigation maps and a full tank of gas.  With luck and your compass you might just make it to the main land.  
                 Congratulations, you have won.[/p][p]Your score is </say>
            <sayProperty type="character" id="player" property="score"/>
            <say> out of a possible 200.[/p]</say>
            <gameOver/>
            <handled/>
         </when> 
         <when>
            <propNotLocatedAt type="character" id="player">compass</propNotLocatedAt> 
            <say>[p]There are navigation maps and a full tank of gas.  Unfortunately, you have no compass and so you drift 
                 aimlessly at sea.  The game is over.[/p][p]Your score is </say>
            <sayProperty type="character" id="player" property="score"/>
            <say> out of a possible 200.[/p]</say> 
            <gameOver/>
            <handled/>
         </when> 
       </dialog>
   </scene>
</scenes>
