This page displays the source code for Age of Fable.
 
It can be used for non-commercial projects, as long as you cite www.ageoffable.net as the source. For the exact license, see here.
 
source code for header.txt
 
<html>
<head>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=2)">
<meta http-equiv="Site-Enter" content="blendTrans(Duration=2)">
<link rel="shortcut icon" href="http://www.apolitical.info/webgame/favicon.ico" type="image/vnd.microsoft.icon">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Age of Fable</title>
<link rel="stylesheet" href="stylesheet.css">
<script language="JavaScript">
window.defaultStatus = "Age of Fable"
</script>
</head>
<body link="#8888ff" alink="#8888ff" vlink="#8888ff" text="ffffff" bgcolor="000000">
 
source code for footer.txt
 
</body>
</html>
 
source code for update.txt
 
(last update: March 11th, 2010)</div>
 
source code for credits.php
 
<?php
@include "http://www.apolitical.info/webgame/header.txt";

$line="<div>&nbsp</div>";
$site="http://www.apolitical.info/webgame/images/";
$startdiv="<div align=\"center\">";

$artists=array (
1=> array ("Azalea","raue-see.de.vu","dragonhead"),
2=> array ("Henning Ludvigsen","www.henningludvigsen.com","dwarf_tree"),
3=> array ("A. Daisy Lee","elfwood.lysator.liu.se/art/d/a/daisy4/daisy4.html","frogprince"),
4=> array ("H.J. Rian de Jong","h-johanna.deviantart.com","greeneye"),
5=> array ("Rowan Lee Hartsuiker","elfwood.lysator.liu.se/art/t/a/tayama/tayama.html","troll"),
6=> array ("Devon Jopling","elfwood.lysator.liu.se/art/j/o/jopling/jopling.html","threeslugs"),
7=> array ("Christopher A Malidore","www.artisticways.com","angergods"),
8=> array ("Pille Heero","elfwood.lysator.liu.se/art/k/e/kesteine/kesteine.html","dragon"),
9=> array ("Patrik Almqvist","elfwood.lysator.liu.se/art/p/a/patrik/patrik.html","work"),
10=> array ("Jenni Chasteen","jeneni.whatthegeek.com","stage"),
11=> array ("Peter Town","elfwood.lysator.liu.se/art/p/t/ptown/ptown.htm","ship"),
12=> array ("Michael Yazijian","www.mikeyaz.com","rogue"),
13=> array ("Mark Huffman","elfwood.lysator.liu.se/art/a/u/auralius/auralius.html","brute"),
14=> array ("Tracy Butler","www.foxprints.com","witches"),
15=> array ("John Frederick Lewis","public","city"),
16=> array ("Frederick Goodall","public","street1"),
17=> array ("Victor Carabain","public","harbour"),
18=> array ("Thomas Cooper Gotch","public","witch"),
19=> array ("Vilja Väisänen","hyel.thedanamark.net","branch"),
20=> array ("Frederick Ferdinand Schafer","public","forest"),
21=> array ("Hans Wichman","www.screatoris.net","swamp"),
22=> array ("Joanna M. Bromley","jbrommers.deviantart.com/gallery","fairies"),
23=> array ("unknown Byzantine artist","public","karrakara"),
24=> array ("Jean-Léon Gérôme","public","apprentice"),
25=> array ("Crystal Rose","redheaded-step-child.deviantart.com","priestess"),
26=> array ("John Singer Sargent","public","dusk"),
27=> array ("Irene Bagiacchi","elfwood.lysator.liu.se/art/b/a/bagiacchi/bagiacchi.html","planet"),
28=> array ("Mattias Snygg","www.mattiassnygg.com","space"),
29=> array ("Ivan Aivazovsky<br>(altered)","public","storm"),
30=> array ("al-Idrisi","public","map"),
31=> array ("Rene Magritte","public","castleair"),
32=> array ("Maryam Gousheh-Forgeot","www.spritewood.net","imp"),
33=> array ("Edward Lear<br>(slightly altered)","public","road"),
34=> array ("David Roberts","public","gods"),
35=> array ("Astrid Castle","www.thecatnip.com","shopkeep"),
36=> array ("Steve Argyle","www.steveargyle.com","gob"),
37=> array ("Eric Martin","www.epilogue.net/cgi/database/art/list.pl?gallery=5398","farm"),
38=> array ("Gunvor Paludan","elfwood.lysator.liu.se/art/t/e/teddybeer/teddybeer.html","sunrise"),
39=> array ("Alex Elie","seabird.deviantart.com","bird"),
40=> array ("Pascal Etienne","lagarie.free.fr","tower"),
41=> array ("Leon Belly","public","crowd"),
42=> array ("Frederick Goodall<br>(slightly altered)","public","nomad"),
43=> array ("Jean-Léon Gérôme","public","fur"),
44=> array ("John Frederick Lewis","public","square1"),
45=> array ("Hélène Brunton","elfwood.lysator.liu.se/art/h/b/hbruneton/hbruneton.html","landscape"),
46=> array ("George Catlin","public","warrior"),
47=> array ("George Catlin","public","village"),
48=> array ("Ember Black","kibs-0.deviantart.com","wisewoman"),
49=> array ("Ashley Applegate","wolvesrealmstudio.tripod.com/Home.html","unicorn"),
50=> array ("Nemo (Alana Jane King)","www.celticblack.deviantart.com","griffin"),
51=> array ("Pilikia (Sue Evans Ross)","www.steamtree.net","elf"),
52=> array ("Jean-Léon Gérôme","public","gladiator"),
53=> array ("Albert Bierstadt<br>(cropped)","public","wander"),
54=> array ("Nathan M. Rosario","elfwood.lysator.liu.se/art/n/m/nmros/nmros.html","hrothulf"),
55=> array ("Frederick Arthur Bridgman<br>(altered)","public","merchant"),
56=> array ("Timo Heikura","timett.deviantart.com","travellers"),
57=> array ("Stephanie Pui-Mun Law","www.shadowscapes.com","dockspriestess"),
58=> array ("Rene Magritte","public","fishwoman"),
59=> array ("Kaila Engar","corvidaeart.deviantart.com","deathhorse"),
60=> array ("Viktor Vasnetsov<br>(cropped and altered)","public","magiccarpet"),
61=> array ("José Posada<br>(slightly altered)","public","spider"),
62=> array ("José Posada<br>(slightly altered)","public","death"),
63=> array ("Ivan Bilibin","public","docks"),
64=> array ("Evgenia P. Petkova<br>aka Foxy Jenny","elfwood.lysator.liu.se/art/l/i/lisana/lisana.html","clearing"),
65=> array ("David Roberts<br>(slightly altered)","public","karra2"),
66=> array ("Jean-Léon Gérôme","public","street2"),
67=> array ("John William Waterhouse","public","mermaid"),
68=> array ("Theodor Kittelsen","public","forestpath"),
69=> array ("Arthur Rackham","public","goblins"),
70=> array ("Laura Pelick","www.fallenlights.net","forestqueen"),
71=> array ("Theodor Kittelsen","public","forestking"),
72=> array ("Johnathan L Bingham","www.johnathanbinghamart.com","dragonslayers"),
73=> array ("Nomi (Hannah Schmidt)","phenomi.deviantart.com","foxwoman"),
74=> array ("-AP-","opengameart.org/content/miscellaneous-concept-art","cave"),
75=> array ("Manon Yapari","www.manonyapari.com","pearl"),
76=> array ("Malcolm Brown","mbfantasyworld.mysite.wanadoo-members.co.uk","child"),
77=> array ("Vitaly Alexius Samarin","www.svitart.com","darkness"),
78=> array ("James McPartlin","www.jamesmcpartlin.com","beguiling"),
79=> array ("Jon O'Mara Yuen Harrison","elfwood.lysator.liu.se/art/h/a/harroj/harroj.html","creature"),
80=> array ("Mats Minnhagen","elfwood.lysator.liu.se/art/m/i/minnhagen/minnhagen.html","battle"),
81=> array ("Johan Tri Handoyo","johantri.deviantart.com","fairyvillage"),
82=> array ("Christina Marie DeLong","elfwood.lysator.liu.se/art/c/h/christimarie/christimarie.html","catspider"),
83=> array ("Jenny Dolfen","www.goldseven.de","elfexile"),
84=> array ("Doug D. Pham","elfwood.lysator.liu.se/art/d/d/ddpham/ddpham.html","pirateelf"),
85=> array ("Kiri Oestergaard","elfwood.lysator.liu.se/art/s/p/spajk/spajk.html","wildwoman"),
86=> array ("Véronique Comeau","verokomo.deviantart.com","zareth"),
87=> array ("unknown artist<br>(slightly altered)","public","wilddog"),
88=> array ("Johnathan L Bingham","www.johnathanbinghamart.com","nara"),
89=> array ("Johnathan L Bingham","www.johnathanbinghamart.com","ritual"),
90=> array ("Giovanni Piranesi<br>(slightly altered)","public","sewer"),
91=> array ("unknown artist","public","town"),
92=> array ("Sophie Anderson","public","swanroad"),
93=> array ("Fernand Khnopff","public","cryer"),
94=> array ("Anzo","totemdog.com/zen","winged"),
95=> array ("Anzo","totemdog.com/zen","elephant"),
96=> array ("unknown artist","public","catpiano"),
97=> array ("Martin Heemskerck<br>(slightly altered)","public","statue"),
98=> array ("John Everett Millais","public","drowned"),
99=> array ("Louis Moe<br>(slightly altered)","public","wizard"),
100=> array ("Édouard Manet","public","raven"),
101=> array ("unknown artist","public","faust"),
102=> array ("Dominique Crouzet","dcrouzet.chez-alice.fr","guard"),
103=> array ("Giovanni Piranesi","public","pyramid"),
104=> array ("Peter Mullen","www.freewebs.com/mullenart","tunnel"),
105=> array ("Howard Pyle","public","plank"),
106=> array ("Lawrence Alma-Tadema","public","latpriestess"),
107=> array ("unknown artist","public","outtosea"),
108=> array ("unknown artist","public","dancers"),
109=> array ("Ricardo Almendáriz","public","walls"),
110=> array ("Viktor Vasnetsov","public","wolf"),
111=> array ("H. Lee","public","sheeptree"),
112=> array ("Albrecht Dürer","public","rhino"),
113=> array ("Christian Krohg","public","captive"),
114=> array ("Armand Welcker","public","flyer"),
115=> array ("unknown artist<br>(slightly altered)","public","highjohn"),
116=> array ("N.C. Wyeth","public","flying"),
117=> array ("N.C. Wyeth","public","magician"),
118=> array ("Dominique Crouzet","dcrouzet.chez-alice.fr","reader"),
119=> array ("Peter Seckler","public","revengefrog"),
120=> array ("Peter Seckler","public","ratperson"),
121=> array ("Jean-Léon Gérôme","public","client"),
122=> array ("Scott Harshbarger","www.harshweb.com","gobguards"),
123=> array ("Emmanuel Roudier","roudier-neandertal.blogspot.com","bearman"),
124=> array ("Willy Pogany","public","square2"),
125=> array ("Willy Pogany","public","square3"),
126=> array ("Gustav Bauernfeind","public","streetsell"),
127=> array ("Jules Laurens<br>(altered)","public","snow"),
128=> array ("Frederick Catherwood","public","temples"),
129=> array ("unknown artist<br>(slightly altered)","public","walled"),
130=> array ("Caspar David Friedrich","public","ruins"),
131=> array ("Dominique Signoret</a><br>(slightly altered)","dominique.signoret.perso.sfr.fr/Index.html","cthulhu"),
132=> array ("Leonardo da Vinci","public","homeless"),
133=> array ("Louis Rhead","public","nobles"),
134=> array ("Louis Rhead","public","carry"),
135=> array ("T. Jordan Peacock","greywolf.critter.net/fonts.htm","book"),
136=> array ("Massimo Lazzari","public","cards"),
137=> array ("J.J. Grandville<br>(slightly altered)","public","bridge"),
138=> array ("GemFonts<br>(Graham Meade)","moorstation.org/typoasis/designers/gemnew/home.htm","slaver"),
139=> array ("GemFonts<br>(Graham Meade)</a><br>(slightly altered)","moorstation.org/typoasis/designers/gemnew/home.htm","priest"),
140=> array ("George du Maurier","public","lodge"),
141=> array ("Caspar David Friedrich<br>(slightly altered)","public","snowruin"),
142=> array ("Alphonse Mucha","public","mpriestess"),
143=> array ("Steve Zieser","curmudgeonsdragons.blogspot.com","gnome"),
144=> array ("Tavik Simon","public","square"),
145=> array ("unknown artist","public","river"),
146=> array ("Thomas Mackenzie","public","foresthut"),
147=> array ("Howard Pyle","public","judge"),
148=> array ("Howard Pyle","public","mermaidsong"),
149=> array ("Arthur Rackham","public","froghawker"),
150=> array ("Harry Clarke","public","youngman"),
151=> array ("GemFonts<br>(Graham Meade)","moorstation.org/typoasis/designers/gemnew/home.htm","sick"),
152=> array ("Herrad von Landsberg","public","hell"),
153=> array ("Age of Fable","public","tapestry"),
154=> array ("Kris Jacque","www.krisjacque.com","goblinsun"),
155=> array ("Kevin Mayle","www.cafepress.com/kevinmayle","kmdril"),
156=> array ("Thomas Seddon","public","sunset"),
157=> array ("Herbert Roe</a><br>(slightly altered)","en.wikipedia.org/wiki/User:Heironymous_Rowe","wvillage"),
158=> array ("Herbert Roe","en.wikipedia.org/wiki/User:Heironymous_Rowe","clowns"),
159=> array ("Vincent Baker","www.lumpley.com","wedding"),
160=> array ("Jensen","mokkurkalfe.deviantart.com","adventurers"),
161=> array ("Flaxton</a><br>(cropped and altered)","en.wikipedia.org/wiki/User:Flaxton","tripods"),
162=> array ("David J. Stanley","www.brutalrpg.com","beetleguard"),
163=> array ("unknown artist","public","strangemount"),
164=> array ("unknown artist","public","redbeast"),
165=> array ("Frederick Goodall<br>(altered)","public","ozyend"),
166=> array ("Herbert James Draper","public","rescue"),
167=> array ("Kawanabe Kyosai","public","hell2"),
168=> array ("Alexander Wilson<br>(cropped and altered)","public","flight"),
169=> array ("Olaus Magnus<br>(altered)","public","land"),
170=> array ("Olaus Magnus","public","island"),
171=> array ("Gustav Klimt<br>(cropped and altered)","public","amazon"),
172=> array ("Frank Godwin","public","queen"),
173=> array ("Martin Heemskerck","public","amacity"),
174=> array ("Balage Balogh","www.balage4art.com","street3"),
175=> array ("H.J. Ford","public","gethorse"),
176=> array ("H.J. Ford<br>(cropped and altered)","public","turtleman"),
177=> array ("Balage Balogh","www.balage4art.com","courtyard"),
178=> array ("Francesco del Cossa","public","eyes"),
179=> array ("Seth Poppy","spoppy.com","street4"),
180=> array ("Seth Poppy","spoppy.com","aircreature"),
181=> array ("N.C. Wyeth","public","robbers"),
182=> array ("Theodor Kittelsen","public","bearprincess"),
183=> array ("Joakim Persson</a><br>(slightly altered)","opengameart.org/content/fortress-backgroundstoryboard-image","exit"),
184=> array ("Misha","opengameart.org/content/orc-002-concept","guide"),
185=> array ("Zeldyn","zeldyn.deviantart.com","youngelf"),
186=> array ("Adriaen van de Venne</a><br>(cropped and altered)","public","owls"),
187=> array ("Gallegos","gallegosart.com","devil"),
188=> array ("-AP-</a><br>(cropped and altered)","opengameart.org/content/sos-at-sea","leaveship"),
189=> array ("Brian Crick","www.oogby.com","archer"),
190=> array ("Mark Allen","www.marjasall.com","moving"),
191=> array ("unknown author","public","page"),
192=> array ("Gallegos","gallegosart.com","bouncer"),
193=> array ("Gallegos","gallegosart.com","croupier"),
194=> array ("Steveman","neuroticfanboy.deviantart.com","bee"),
195=> array ("Odilon Redon","public","skin"),
196=> array ("Odilon Redon","public","spiderhead"),
197=> array ("Dominique Signoret</a><br>(slightly altered)","dominique.signoret.perso.sfr.fr/Index.html","evilgod"),
198=> array ("Louis Wain","public","catgod"),
199=> array ("Alexandre Togeiro","alexandretogeiro.blogspot.com","horsewoman"),
200=> array ("-AP-","opengameart.org/content/miscellaneous-concept-art","stair"),
201=> array ("Virginia Roper","www.varoper.com","baretrees"),
);
$artworks=201;

print $startdiv."The following people have contributed to <a href=\"http://www.apolitical.info/webgame\" onMouseover=\"window.status='back to the starting page'; return true\">Age of Fable</a>:";
print $line;
print $line;
print $startdiv."<b>Your adventures were faithfully chronicled</div>";
print $startdiv."with nothing false set down, nor anything true omitted,</b></div>";
print $startdiv."by <a href=\"http://www.apolitical.info/aboutme\" target=\"_blank\">James Hutchings</a>.</div>";
print $line;
print $line;
print $startdiv."<b>The people, places, gods and monsters";
print $startdiv."of Karrakara and the islands around have been accurately depicted by the following artists.</b></div>";
print $line;
print $startdiv."Thanks are due to these artists for permission to use their work.</div>";
print $startdiv."each of these miniatures must be unlocked by the cunning use of an arrow, and a mouse.</div>";
print $startdiv."do so to the picture, to see a larger version,</div>";
print $startdiv."or to the artist's name to visit them.</div>";
print $line;
print "<table align=\"center\"><tr>";
$row=0;
for ($loop=1;$loop<=$artworks;$loop++) {
if ($artists[$loop][1]<>"public" OR $artists[$loop][0]=="Peter Seckler" OR $artists[$loop][0]=="Age of Fable") {
print "<td align=\"center\">";
$name=$artists[$loop][0];
print "<a href=\"http://www.apolitical.info/webgame/gallery?p=".$artists[$loop][2]."&a=".$artists[$loop][0]."&h=".$artists[$loop][1]."\" onMouseover=\"window.status='see a bigger version of this picture'; return true\">";
print "<img style=\"border-color: #8888FF\" src=\"".$site.$artists[$loop][2]."-thumb.jpg\">";
print "</a>";
print "<br>";
if ($name=="David J. Stanley") {
print "owned and licensed<br>by ";
}
if ($name<>"Peter Seckler" AND $name<>"Age of Fable") {
print "<a href=\"http://".$artists[$loop][1]."\" target=\"_blank\">";
}
print $name;
if ($name=="Peter Seckler") {
print "<br><a href=\"http://creativecommons.org/licenses/by/3.0/us\" target=\"_blank\">license";
} elseif ($name=="Scott Harshbarger" OR $aname=="Zeldyn" OR $aname=="Gallegos") {
print "</a><br><a href=\"http://creativecommons.org/licenses/by-nc-nd/3.0\" target=\"_blank\">license";
} elseif ($name=="Seth Poppy") {
print "</a><br><a href=\"http://creativecommons.org/licenses/by-nc-sa/3.0\" target=\"_blank\">license";
} elseif ($name=="Kris Jacque") {
print "</a><br><a href=\"http://creativecommons.org/licenses/by-nc-nd/3.0/us\" target=\"_blank\">license";
} elseif ($name=="-AP-") {
print "</a><br><a href=\"http://creativecommons.org/licenses/by-sa/3.0\" target=\"_blank\">license";
} elseif ($name=="Dominique Signoret</a><br>(slightly altered)" OR str_replace("Herbert Roe","XXX",$name)<>$name OR $name=="Flaxton</a></br>(cropped and altered)") {
print "<br><a href=\"http://commons.wikimedia.org/wiki/Commons:GNU_Free_Documentation_License\" target=\"_blank\">license";
} elseif ($name=="Age of Fable") {
print "<br>created using the <br><a href=\"http://www.adgame-wonderland.de/type/bayeux.php\" target=\"_blank\">Historic Tale Construction Kit";
}
print "</a>";
if ($name=="David J. Stanley") {
print "<br>illustration by<br>David K. Wong";
}
print "</td>";
$row++;
if ($row==5) {
$row=0;
print "</tr><tr>";
}
}
}
print "</tr></table>";
print $line;
print $startdiv."The pictures in the letters at the start of the game are by <a href=\"http://dcrouzet.chez-alice.fr\" target=\"_blank\">Dominique Crouzet</a>.</div>";
print $line;
print $line;
print $startdiv."This artwork is in the public domain:";
print $line;
print "<table align=\"center\"><tr>";
$row=0;
for ($loop=1;$loop<=$artworks;$loop++) {
if ($artists[$loop][1]=="public" AND $artists[$loop][0]<>"Peter Seckler" AND $artists[$loop][0]<>"Age of Fable") {
print "<td align=\"center\">";
print "<a href=\"http://www.apolitical.info/webgame/gallery?p=".$artists[$loop][2]."&a=".$artists[$loop][0]."&h=public\" onMouseover=\"window.status='see a bigger version of this picture'; return true\">";
print "<img style=\"border-color: #8888FF\" src=\"".$site.$artists[$loop][2]."-thumb.jpg\">";
print "</a>";
print "<br>";
print $artists[$loop][0];
print "</td>";
$row++;
if ($row==5) {
$row=0;
print "</tr><tr>";
}
}
}
print "</tr></table>";
print $line;
print $line;
print $startdiv."<b>Many things which were foretold have come to pass.</b></div>";
print $startdiv."The idea for the oasis on the horizon by <a href=\"http://thefreerpgblog.blogspot.com\" target=\"_blank\">Rob Lang</a>.</div>";
print $startdiv."Gnome named by Nadia Menon.</div>";
print $startdiv."The description of the pyramid taken from Robert E. Howard.</div>";
print $startdiv."Cthulhu invented by H.P. Lovecraft.</div>";
print $startdiv."The rebel's speech by <a href=\"http://en.wikipedia.org/wiki/John Ball (priest)\" target=\"_blank\">John Ball</a>.</div>";
print $startdiv."The cryer's chant by Percy Shelley</a>.</div>";
print $startdiv."The idea of Janooth by the <a href=\"http://www.vitalspot.f9.co.uk\" target=\"_blank\">Vital Spot</a>.</div>";
print $startdiv."The original idea of the Hollow Mockery by <a href=\"http://www.myspace.com/phoenixofborg\" target=\"_blank\">Phoenix Talion</a>.</div>";
print $startdiv."The phrase 'Ape-Rajahs' is inspired by <a href=\"http://www222.pair.com/sjohn/encounter-critical.htm\" target=\"_blank\">Encounter Critical</a>.</div>";
print $startdiv."Prince Dimitri originally inspired by a character in the Fabled Lands series.</div>";
print $startdiv."The mad goblin inspired by the Fabled Lands series. His speech by <a href=\"http://en.wikipedia.org/wiki/Thomas DeQuincey\" target=\"_blank\">Thomas DeQuincey</a>.</div>";
print $startdiv."The rating system for ghosts by <a href=\"http://www.nonadventures.com\" target=\"_blank\">Justin Pierce</a>.</div>";
print $startdiv."'The Crows Call My Name' from an idea by Jack Handey.</div>";
print $startdiv."The living door inspired by a similar feature in the Tunnels and Trolls paperback rules.</div>";
print $startdiv."Dead Eye Street inspired by Forever Street and Nowhere Lane in the Fighting Fantasy series.</div>";
print $startdiv."The description of the smoke in the pyramid based on the D&D module 'White Plume Mountain'.</div>";
print $startdiv."The gods in the pyramid are based on Lolth from D&D, and Yag-kosha from <a href=\"http://www.apolitical.info/webgame/tower.php\">The Tower of the Elephant</a>.</div>";
print $line;
print $startdiv;
?>
<!--the code for the 'Project Wonderful' ad is here in the original page.-->
<?php

print $line;
@include "http://www.apolitical.info/webgame/footer.txt";
?>
 
source code for gallery.php
 
<?php
@include "http://www.apolitical.info/webgame/header.txt";

$line="<div>&nbsp</div>";
$site="http://www.apolitical.info/webgame/images/";
$startdiv="<div align=\"center\">";

print $startdiv."<img style=\"border-color:#888888\" src=\"".$site.$p.".jpg\"></div>";
print $line;
print $startdiv."Artwork ";
if ($a=="Laura Pelick") {
$a="<img src=\"http://www.apolitical.info/webgame/images/fallenlightsbanner.jpg\">";
}

if ($a=="Steve Argyle") {
print "by <a href=\"http://www.steveargyle.com\" target=\"_blank\"><img src=\"http://www.apolitical.info/webgame/images/steveargylebanner.jpg\"></a>";
print $line;
print $startdiv."Copyright <a href=\"http://www.alderac.com\" target=\"_blank\">Alderac Entertainment</a>";
} elseif ($a=="David J. Stanley") {
print "owned and licensed by David J. Stanley of <a href=\"http://www.brutalrpg.com\" target=\"_blank\">BrutalRPG.com</a>";
print $line;
print $startdiv."Original illustration by David K. Wong";
} elseif ($h=="public") {
print "by ".str_replace("<br>"," ",$a);
if ($a=="Age of Fable") {
print "<br>created using the <a href=\"http://www.adgame-wonderland.de/type/bayeux.php\" target=\"_blank\">Historic Tale Construction Kit</a>";
}
} else {
print "copyright <a href=\"http://".$h."\" target=\"_blank\">".str_replace("<br>"," ",$a)."</a>";
if ($a=="Devon Jopling") {
print $line;
print $startdiv."coloured by <a href=\"http://elfwood.lysator.liu.se/art/m/i/mishi/mishi.html\" target=\"_blank\">Michelle Angela Thuldanin</a></div>";
}
}

print "</div>";
print $line;
print $startdiv."As seen in the free online RPG <a href=\"http://www.apolitical.info/webgame\" onMouseover=\"window.status='play Age of Fable'; return true\">Age of Fable</a></div>";
print $line;
print $startdiv."See all the artwork from Age of Fable on the <a href=\"http://www.apolitical.info/webgame/credits.php\" onMouseover=\"window.status='author and artist credits'; return true\">credits page</a></div>";
print $line;
print $startdiv."This image ";
if ($a=="Peter Seckler") {
print "may be used under a <a href=\"http://creativecommons.org/licenses/by/3.0/us\" target=\"_blank\">Creative Commons</a> license";
} elseif ($a=="Age of Fable") {
print "may not be used without the permission of Age of Fable.";
} elseif (str_replace("Dominique Signoret","XXX",$a)<>$a or str_replace("Herbert Roe","XXX",$a)<>$a OR str_replace("Flaxton","XXX",$a)<>$a) {
print "may be used under the <a href=\"http://commons.wikimedia.org/wiki/Commons:GNU_Free_Documentation_License\" target=\"_blank\">GNU Free Documentation License</a>.";
if (str_replace("Dominique Signoret","XXX",$a)<>$a) {
print " The original picture is <a href=\"http://en.wikipedia.org/wiki/File:";
if ($p=="cthulhu") {
print "Cthulhu_and_R%27lyeh";
} else {
print "Shub-Niggurath";
}
print ".jpg\" target=\"_blank\">here</a>.";
} elseif (str_replace("Flaxton","XXX",$a)<>$a) {
print " The original picture is <a href=\"http://en.wikipedia.org/wiki/File:Maunsell1.jpg\" target=\"_blank\">here</a>.";
}
} elseif ($a=="Scott Harshbarger" OR $a=="Zeldyn" OR $a=="Gallegos") {
print "may be used for non-commercial works under a <a href=\"http://creativecommons.org/licenses/by-nc-nd/3.0/\" target=\"_blank\">Creative Commons</a> license.";
} elseif ($a=="Seth Poppy") {
print "may be used for non-commercial works under a <a href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/\" target=\"_blank\">Creative Commons</a> license.";
} elseif ($a=="Kris Jacque") {
print "may be used for non-commercial works under a <a href=\"http://creativecommons.org/licenses/by-nc-nd/3.0/us/\" target=\"_blank\">Creative Commons</a> license.";
} elseif ($a=="-AP-") {
print "may be used under a <a href=\"http://creativecommons.org/licenses/by-sa/3.0\" target=\"_blank\">Creative Commons</a> license.";
} elseif (str_replace("GemFonts","XXX",$a)<>$a) {
print "is from a font, available for non-commercial use on the author's homepage.";
} elseif ($a=="Misha" OR $a=="Joakim Persson</a><br>(slightly altered)" OR $a=="-AP-</a><br>(cropped and altered)") {
print "may be used under an open license. See the item's <a href=\"http://".$h."\" target=\"_blank\">source page</a> for details.";
} elseif ($h=="public") {
print "is in the public domain as copyright has expired.";
} else {
print "may not be used without the permission of ";
if ($a=="David J. Stanley") {
print "David J. Stanley.";
} else {
print "the author.";
}
}
print "</div>";
print $line;
print $startdiv;
?>
<!--the code for the 'Project Wonderful' ad is here in the original page.-->
<?php


@include "http://www.apolitical.info/webgame/footer.txt";
?>
 
source code for index.php
 
<?php
@include "http://www.apolitical.info/webgame/header.txt";
$line="<div>&nbsp</div>";
$startdiv="<div align=\"center\">";
$link=$startdiv."<a href=\"http://www.apolitical.info/webgame/";

if (!isset($mode)) {
$mode=0;
}

// NOTE: Unlike game.php, this file doesn't add or subtract 6
// for values over 25, because currently no stat can start over 25.

//these stats are BEFORE the additions to Stamina and Heroism
//class name, then attributes, then name, then gender:
//4=male, 5=female (courtesan counts as female)

$classes=20;
$class=array (
1=> array ("talking cat",1,20,5,15,1,11,1,20,5,20,1,20,"Seti Nur-ishtar",4),
2=> array ("wizard",3,8,8,8,12,20,10,12,9,10,16,4,"Perilandera",5),
3=> array ("scoundrel",5,16,9,12,5,6,1,5,20,20,1,20,"Urang Semalai",4),
4=> array ("bard",8,20,5,5,10,5,5,5,12,20,9,16,"Hisvet Sigrun",5),
5=> array ("knight",10,5,20,15,9,10,20,5,1,10,10,5,"Be-Steadfast Toth",4),
6=> array ("nomad",15,5,13,13,19,5,14,20,1,5,9,1,"Taruk Few-Clothes",4),
7=> array ("pirate",13,13,13,13,20,1,5,5,14,9,1,13,"Two Souls Macout",4),
8=> array ("fairy",1,19,1,1,1,19,10,10,19,19,15,5,"Damael",5),
9=> array ("dwarf",20,5,10,17,3,3,15,15,8,8,8,8,"Longshanks Macabee",4),
10=> array ("barbarian",14,5,14,19,14,5,9,14,10,10,1,5,"Ektor the Patient One",4),
11=> array ("assassin",1,15,15,15,5,11,1,11,15,11,5,15,"Owl-Waits-For-the-Moon",4),
12=> array ("witch",13,13,5,5,1,20,5,15,5,13,20,5,"Sulia Bukawayo",5),
13=> array ("faun",5,20,1,10,5,20,1,20,20,10,7,1,"Hekatotaratos",4),
14=> array ("troll",20,1,10,20,3,10,5,20,5,10,15,1,"Ingvar Arnesson",4),
15=> array ("courtesan",1,20,1,1,8,10,15,1,8,20,15,20,"White Sparrow",5),
16=> array ("fortune-teller",7,15,6,8,12,1,1,15,15,15,10,15,"Goody Atkins",5),
17=> array ("amazon",15,1,17,17,17,1,12,17,1,4,17,1,"Ana Blood-On-The-Arm",5),
18=> array ("lizard-man",19,1,19,19,1,19,19,19,1,1,1,1,"Bright Skin Young Jewel",4),
19=> array ("explorer",19,15,1,1,19,1,14,19,1,14,15,1,"Temperance Jobsworth",4),
20=> array ("aristocrat",1,10,20,1,20,20,1,10,2,20,10,5,"Euphemia",5),


);

// used to have priest:
// 1=> array ("priest",5,12,1,5,12,9,20,12,5,12,20,7,"Be-Steadfast Toth",4),

// attributes

$word=array (
'Stamina' => array ("near death","sickly","sickly","sickly","unhealthy","unhealthy","unhealthy","unremarkable","unremarkable","unremarkable","unremarkable","healthy","healthy","healthy","healthy","robust","robust","robust","unstoppable","unstoppable","unstoppable"),
'Charisma' => array ("null","repulsive","repulsive","hateful","hateful","hateful","annoying","annoying","annoying","innocuous","innocuous","innocuous","likeable","likeable","likeable","charming","charming","charming","mesmerising","mesmerising","mesmerising"),
'Duelling' => array ("null","clumsy","clumsy","clumsy","clumsy","slow","slow","slow","slow","average","average","average","average","agile","agile","agile","agile","dangerous","dangerous","deadly","deadly"),
'Brawling' => array ("null","puny","puny","puny","weak","weak","weak","unremarkable","unremarkable","unremarkable","unremarkable","strong","strong","strong","strong","strong","powerful","powerful","powerful","legendary","legendary"),
'Seafaring' => array ("null","gets seasick in the bath","gets seasick in the bath","landlubber","landlubber","mediocre","mediocre","mediocre","fair","fair","fair","good","good","good","great","great","great","old salt","old salt","old salt","old salt"),
'Magic' => array ("null","powerless","powerless","poor","poor","mediocre","mediocre","mediocre","fair","fair","fair","good","good","good","great","great","great","superb","superb","overwhelming","overwhelming"),
'Heroism' => array ("wicked","wicked","wicked","corrupt","corrupt","selfish","selfish","wavering","wavering","wavering","good-hearted","good-hearted","good-hearted","bold","bold","bold","bold","heroic","heroic","heroic","heroic"),
'Scouting' => array ("null","gets lost in the back yard", "gets lost in the back yard","terrible","terrible","poor","poor","mediocre","mediocre","fair","fair","good","good","good","great","great","great","superb","superb","legendary","legendary"),
'Roguery' => array ("null","terrible","terrible","poor","poor","mediocre","mediocre","mediocre","fair","fair","fair","good","good","good","great","great","great","superb","superb","legendary","legendary"),
'Luck' => array ("null","cursed","cursed","ill-starred","ill-starred","mediocre","mediocre","mediocre","fair","fair","fair","lucky","lucky","lucky","auspicious","auspicious","auspicious","charmed","charmed","blessed","blessed"),
'Healing' => array ("null","terrible","terrible","poor","poor","mediocre","mediocre","mediocre","fair","fair","fair","good","good","good","great","great","great","superb","superb","legendary","legendary"),
'Streetwise' => array ("null","babe in the woods","babe in the woods","clueless","clueless","foolish","foolish","unwise","unwise","fair","fair","alert","alert","alert","crafty","crafty","crafty","cunning as a fox","cunning as a fox","cunning as a shithouse rat","cunning as a shithouse rat"),
);

//number and names of attributes
$attnum=12;
$attributes=array("null","Stamina","Charisma","Duelling","Brawling","Seafaring","Magic","Heroism","Scouting","Roguery","Luck","Healing","Streetwise");

// current character
$stats=array();



print "<table align=\"center\" width=\"100%\">";
print "<tr";
if ($mode==1 OR $mode==3 OR $mode==6) {
print " valign=\"center\"";
} elseif ($mode<>0) {
print " valign=\"top\"";
}
print "><td width=\"50%\">";
if ($mode==0) {
print $link."index.php?mode=2&method=1\" onMouseover=\"window.status='randomly generated character'; return true\">Random character</a></div>";
print $line;
print $link."index.php?mode=5\" onMouseover=\"window.status='choose from a list of characters'; return true\">Pre-generated character</a></div>";
print $line;
print $startdiv."Create a custom character, using";
print $link."index.php?mode=4&method=2\" onMouseover=\"window.status='choose your character\'s attributes'; return true\">links</a> or <a href=\"http://www.apolitical.info/webgame/index.php?mode=4&method=1\" onMouseover=\"window.status='choose your character\'s attributes'; return true\">drop-down menus</a></div>";
print $line;
print $link."index.php?mode=6\" onMouseover=\"window.status='link to us'; return true\">Link to Age of Fable</a></div>";
print $line;
print $link."index.php?mode=1\" onMouseover=\"window.status='FAQ'; return true\">Frequently Asked Questions</a></div>";
print $line;
print $link."credits.php\" onMouseover=\"window.status='artist and author details'; return true\">Credits</a></div>";
print $line;
// print $startdiv."Age of Fable is unfinished</div>";
// print $startdiv."and under construction.</div>";
print $startdiv;
// @include "http://www.apolitical.info/webgame/update.txt";
// print $startdiv."Please feel free to leave</div>";
// print $startdiv."any feedback in the</div>";
print $startdiv."<a href=\"http://www.apolitical.info/guestbook\" onMouseover=\"window.status='leave feedback, or read other people\'s'; return true\" target=\"_blank\">Guestbook</a></div>";
print $startdiv."(opens in a new window)";
print $line;
print $link."index.php?mode=3\" onMouseover=\"window.status='a small list of similar sites'; return true\">Links</a></div>";
print $line;
print $startdiv."Library";
print $link."index.php?mode=7&branch=1\" onMouseover=\"window.status='stories'; return true\">Fiction</a> . <a href=\"http://www.apolitical.info/webgame/index.php?mode=7&branch=2\" onMouseover=\"window.status='other resources'; return true\">Non-Fiction</a></div>";
print $line;
print $link."sourcecode.php\" onMouseover=\"window.status='source-code for Age of Fable'; return true\" target=\"_blank\">Source Code</a></div>";
print $startdiv."(opens in a new window)";
} elseif ($mode==1) {
print $startdiv."<iframe src=\"faq.html\" height=450 frameborder=0></IFRAME></div>";
print $line;
print $link."index.php?mode=0\" onMouseover=\"window.status='back to the starting page'; return true\">back to the main page</a>";
} elseif ($mode==2) {

//$method (for generating stats):
//1=generate randomly
//2=use $rolls (renaming character randomly)
//3=use profession archetype
//4=use $rolls (entering name for character)
//5=use $rolls, but randomise (randomly changing stats)
//6=use $rolls (returning from choosing to enter name or editing)

if (!isset($method)) {
$method=1;
}

//generate initial stats for character
$total=0;

//for random characters only - choose a pre-generated
//character, do that +/- up to 6.

$rolltemplate=rand(1,$classes);

for ($loop=1;$loop<=$attnum;$loop++) {
if ($method==1) {
$stats[$loop]=min(20,max(1,$class[$rolltemplate][$loop]+6-rand(0,12)));
} elseif ($method==3) {
$stats[$loop]=$class[$type][$loop];
} else {
$stats[$loop]=ord($rolls{$loop-1})-64;
if ($attributes[$loop]=="Stamina" or $attributes[$loop]=="Heroism") {
$stats[$loop]=$stats[$loop]-5;
}
}
$total=$total+$stats[$loop];
}

if ($method==5) {
$tweak=array();
$tote=0;
for ($loop=1;$loop<=$attnum;$loop++) {
do {
$tweak[$loop]=rand(0,3)-rand(0,3);
$attnew=$tweak[$loop]+$stats[$loop];
} while ($attnew<1 OR $attnew>20);
$tote=$tote+$tweak[$loop];
}
while ($tote<>0) {
if ($tote>0) {
$movement=-1;
} else {
$movement=1;
}
do {
$thisatt=rand(1,$attnum);
$newtweak=$tweak[$thisatt]+$movement;
$newvalue=$stats[$thisatt]+$newtweak;
} while ($newvalue==0 OR $newvalue==21 OR $newtweak==4 OR $newtweak==-4);
$tweak[$thisatt]=$tweak[$thisatt]+$movement;
$tote=$tote+$movement;
}
for ($loop=1;$loop<=$attnum;$loop++) {
$stats[$loop]=$stats[$loop]+$tweak[$loop];
}
}

//balance characters stats
while ($total<>$attnum*10) {
$change=rand(1,$attnum);
$total=$total-$stats[$change];
$stats[$change]=0;
$ideal=($attnum*10)-$total;
if (($ideal>2 AND $ideal<19) OR ($ideal>0 AND $ideal<21 AND $method==1)) {
$stats[$change]=$ideal;
} else {
$stats[$change]=rand(1,20);
}
$total=$total+$stats[$change];
}

//decide what class the character is
//(unless you're just re-naming the character)
if ($method<>4 AND $method<>2 AND $method<>6) {
$score=array();
$lowest=100000;
for ($cloop=1;$cloop<=$classes;$cloop++) {
for ($aloop=1;$aloop<=$attnum;$aloop++) {
$ideal=$class[$cloop][$aloop];
$score[$cloop]=$score[$cloop]+abs($stats[$aloop]-$ideal);
}
$lowest=min($lowest,$score[$cloop]);
}
$prof=0;
do {
$prof++;
} while ($score[$prof]>$lowest);
}
//add 5 to Stamina and Heroism
for ($loop=1;$loop<=$attnum;$loop++) {
if ($attributes[$loop]=="Stamina" OR $attributes[$loop]=="Heroism") {
$stats[$loop]=$stats[$loop]+5;
}
}

//generate name if necessary
if (!isset($name) OR $name=="") {

// random name elements
// with flags for where they can be: 1=first, 2=last, 3=alone.
// and for genders 4=male, 5=female
//(doesn't apply if used as surname)

$namebit=array (
1=> array ("Be-Steadfast",1,1,1,1,1),
2=> array ("Toth",1,1,1,1,0),
3=> array ("Perilandera",1,1,1,0,1),
4=> array ("Urang",1,1,1,1,0),
5=> array ("Semalai",1,1,1,1,1),
6=> array ("Djemmela",1,0,1,0,1),
7=> array ("Hisvet",1,0,1,0,1),
8=> array ("Tasmetum-sharrat",1,1,1,0,1),
9=> array ("Goodenough",1,1,0,1,1),
10=> array ("Taruk",1,1,1,1,0),
11=> array ("Few-Clothes",1,1,1,1,1),
12=> array ("Two Souls",1,1,1,1,1),
13=> array ("Macout",1,1,1,1,1),
14=> array ("Damael",1,1,1,1,1),
15=> array ("Gadabout",1,1,1,1,1),
16=> array ("Longshanks",1,1,0,1,1),
17=> array ("Ektor",1,0,1,1,0),
18=> array ("the Patient One",0,1,0,0,0),
19=> array ("Owl-Waits-For-The-Moon",1,1,1,1,1),
20=> array ("Sulia",1,1,1,0,1),
21=> array ("Bukawayo",1,1,1,1,1),
22=> array ("Hekatotaratos",1,1,1,1,0),
23=> array ("Ingvar",1,0,1,1,0),
24=> array ("Arnesson",0,1,0,0,0),
25=> array ("White",1,1,0,1,1),
26=> array ("Sparrow",1,1,1,1,1),
27=> array ("Goody",1,0,0,0,1),
28=> array ("Atkins",0,1,0,0,0),
29=> array ("Ana",1,0,1,0,1),
30=> array ("Blood-On-The-Arm",1,1,1,1,1),
31=> array ("Bright Skin",1,1,1,1,1),
32=> array ("Young Jewel",1,1,1,1,1),
33=> array ("Athousandapologies",1,1,1,1,1),
34=> array ("Gottmundsdaughter",0,1,0,0,1),
35=> array ("the Virtuous",0,1,0,1,1),
36=> array ("Sun",1,1,1,1,1),
37=> array ("Mad Tom",1,0,1,1,0),
38=> array ("Wee Jock",1,0,1,1,0),
39=> array ("Padrath",1,1,1,1,1),
40=> array ("Lori",1,1,1,0,1),
41=> array ("Ingrid",1,0,0,0,1),
42=> array ("Macabee",1,1,1,1,1),
43=> array ("du Mal",0,1,0,1,1),
44=> array ("Obadiah",1,0,1,1,0),
45=> array ("Perdus",1,1,1,1,1),
46=> array ("Iakkos",1,0,1,1,0),
47=> array ("the Unwanted Guest",0,1,0,1,1),
48=> array ("Crumhorn",1,1,1,1,1),
49=> array ("Agatha",1,0,0,0,1),
50=> array ("The Magnificent",0,1,0,1,1),
51=> array ("Cathlin",1,0,0,0,1),
52=> array ("Ajibayo",1,1,1,1,0),
53=> array ("Abanazir",1,1,1,1,1),
54=> array ("Notsoblind",0,1,1,1,1),
55=> array ("Deanna",1,0,0,0,1),
56=> array ("Hassan",1,1,1,1,0),
57=> array ("Kittybiscuits",1,1,1,1,1),
58=> array ("Anaxagoras",1,0,1,1,0),
59=> array ("Charis",1,1,1,0,1),
60=> array ("Leofric",1,1,1,1,0),
61=> array ("Idris",1,1,1,1,1),
62=> array ("Betrys",1,1,1,0,1),
64=> array ("Arnheld",1,1,0,1,0),
65=> array ("She-Is-Not-Sterile",1,1,1,0,1),
66=> array ("Artemisios",1,1,1,1,0),
67=> array ("Chariton",1,1,1,1,0),
68=> array ("Dodekatheon",1,1,1,1,0),
69=> array ("Ambrosia",1,0,1,0,1),
70=> array ("Appolonia",1,1,1,0,1),
71=> array ("Charis",1,1,1,0,1),
72=> array ("Dionysia",1,1,1,0,1),
73=> array ("Euphemia",1,0,1,0,1),
74=> array ("Hekabe",1,1,1,0,1),
75=> array ("Kallistrate",1,1,1,0,1),
76=> array ("Snorri",1,1,0,1,0),
77=> array ("Skallagrim",1,1,1,1,0),
78=> array ("Ragnvald",1,1,1,1,0),
79=> array ("Geirmund",1,1,1,1,0),
80=> array ("Sigrun",1,1,1,0,1),
81=> array ("Sigrid",1,0,1,0,1),
82=> array ("Olwen",1,1,1,0,1),
83=> array ("Grimhildr",1,1,1,0,1),
84=> array ("Freygerd",1,1,1,0,1),
85=> array ("Arnthrud",1,1,1,0,1),
86=> array ("Jobsworth",1,1,1,1,1),
87=> array ("Temperance",1,0,0,1,1),
88=> array ("Timeandtide",1,1,1,1,1),
89=> array ("Hekabe",1,0,1,0,1),
90=> array ("ben Ibrahim",0,1,0,1,0),
91=> array ("Halfull",1,1,0,1,1),
92=> array ("Halfempty",1,1,1,1,1),
93=> array ("Isisnofret",1,1,1,0,1),
94=> array ("Neferu",1,1,1,0,1),
95=> array ("Seti",1,1,1,1,0),
96=> array ("Ishtar-rabi-at",1,1,1,0,1),
97=> array ("Ummi-waqrat",1,1,1,0,1),
98=> array ("Ammat-Baal",1,1,1,0,1),
99=> array ("Yashub-yahad",1,1,1,1,0),
100=> array ("Nur-ishtar",1,1,1,1,0),
101=> array ("Wobblebottom",1,1,1,1,1),
102=> array ("Violet",1,0,0,0,1),
103=> array ("Viola",1,0,0,0,1),
104=> array ("Tibbletibtub",1,1,1,1,1),
105=> array ("Agnes",1,0,0,0,1),
106=> array ("Prudence",1,0,0,0,1),
107=> array ("Barelegs",1,1,0,1,1),
108=> array ("Lackland",1,1,0,1,1),
109=> array ("Boneless",1,1,1,1,1),
110=> array ("Epaminondas",1,0,0,1,0),
111=> array ("Beloved",1,1,1,1,1),
112=> array ("Solemn",1,0,0,1,1),
113=> array ("Brightness",1,1,1,1,1),
114=> array ("Sidebottom",0,1,0,1,1),
115=> array ("Highpants",1,1,0,1,1),
116=> array ("Silka",1,0,1,0,1),
117=> array ("Ichabod",1,0,1,1,0),
118=> array ("Greedyguts",1,1,0,1,1),
);

$namebits=118;

if (rand(1,9)<3) {
// one element
do {
$which=rand(1,$namebits);
} while ($namebit[$which][3]==0 OR $namebit[$which][$class[$prof][$attnum+2]]==0);
// OR gender
$name=$namebit[$which][0];
} else {
// two elements
do {
$whichf=rand(1,$namebits);
$whichl=rand(1,$namebits);
} while ($whichf==$whichl OR $namebit[$whichf][1]==0 OR $namebit[$whichl][2]==0 OR $namebit[$whichf][$class[$prof][$attnum+2]]==0 OR ($whichl==34 AND $class[$prof][$attnum+2]==4) OR ($whichl==90 AND $class[$prof][$attnum+2]==5));
// gender check only for first name
// but elements 34 is special.
$name=$namebit[$whichf][0]." ".$namebit[$whichl][0];
}
} else {
$name=str_replace(chr(92),chr(0),$name);
}



//print character, and create $rolls string
print "<table align=\"center\"><tr><td>";
print $startdiv."<img src=\"http://www.apolitical.info/webgame/images/thumb ".$class[$prof][0].".jpg\"></div>";
print $startdiv."<i>".$name."</i></div>";
print $startdiv.$class[$prof][0]."</div>";
print "</td><td>";
$rolls="";
print "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
for ($loop=1;$loop<=$attnum;$loop++) {
print "<tr><td>".$attributes[$loop].":</td><td align=\"right\">".$stats[$loop]." (</td><td>";
$rating=$stats[$loop];
if ($attributes[$loop]=="Stamina" or $attributes[$loop]=="Heroism") {
$rating=$rating-5;
}
print $word[$attributes[$loop]][$rating];
print ")</td></tr>";
$rolls=$rolls.chr($stats[$loop]+64);
}
print "</table>";
print "</td></tr></table>";

//options - re-roll or accept character
if ($method==2) {
print "<div align=\"center\">";
print "<form name=\"input\" action=\"index\" method=\"get\">";
print "<input type=\"text\" name=\"name\">";
print "<input type=\"submit\" value=\"enter\">";
print "<input type=\"hidden\" name=\"prof\" value=".$prof.">";
print "<input type=\"hidden\" name=\"rolls\" value=\"".$rolls."\">";
print "<input type=\"hidden\" name=\"mode\" value=2>";
print "<input type=\"hidden\" name=\"method\" value=6>";
print "</form>";
print "</div>";
print $startdiv."Enter the character's name in the text box above and click the 'enter' button, or</div>";
print $link."index.php?mode=2&method=6&rolls=".$rolls."&prof=".$prof."&name=".$name."\" onMouseover=\"window.status='leave the character\'s name as it is'; return true\">leave the name as it is</a></div>";
} else {
print $link."game?rolls=".$rolls."&prof=".$prof."&name=".$name."\" onMouseover=\"window.status='start playing'; return true\">start playing with this character</a></div>";
print $line;
print $startdiv."Edit this character, using";
print $link."index.php?mode=4&method=2&rolls=".$rolls."&name=".$name."\" onMouseover=\"window.status='choose your character\'s attributes'; return true\">links</a> or <a href=\"http://www.apolitical.info/webgame/index.php?mode=4&method=1&rolls=".$rolls."&name=".$name."\" onMouseover=\"window.status='choose your character\'s attributes'; return true\">drop-down menus</a></div>";
print $startdiv."or <a href=\"http://www.apolitical.info/webgame/index.php?mode=2&method=5&rolls=".$rolls."&name=".$name."\" onMouseover=\"window.status='make a small, random change to this character'; return true\">randomly change</a> their scores</div>";
print $line;
print $startdiv."rename this character - <a href=\"http://www.apolitical.info/webgame/index.php?mode=2&method=4&prof=".$prof."&rolls=".$rolls."\" onMouseover=\"window.status='random new name for this character'; return true\">randomly</a> or <a href=\"http://www.apolitical.info/webgame/index.php?mode=2&method=2&rolls=".$rolls."&prof=".$prof."&name=".$name."\" onMouseover=\"window.status='enter a name of your choice for this character'; return true\">your choice</a></div>";
print $line;
print $startdiv."New character - <a href=\"http://www.apolitical.info/webgame/index.php?mode=2&method=1\" onMouseover=\"window.status='randomly generate a new character'; return true\">random</a> or <a href=\"http://www.apolitical.info/webgame/index.php?mode=5\" onMouseover=\"window.status='choose from a list of characters'; return true\">pre-generated</a>.</div>";
print $line;
print $startdiv."The following links all open in a new window:</div>";
print $line;
print $link."index.php?mode=6\" onMouseover=\"window.status='link to us'; return true\" target=\"_blank\">Link to Age of Fable</a></div>";
print $line;
print $link."index.php?mode=1\" onMouseover=\"window.status='FAQ'; return true\" target=\"_blank\">Frequently Asked Questions</a></div>";
print $line;
print $link."credits.php\" target=\"_blank\" onMouseover=\"window.status='author and artist details'; return true\">Credits</a></div>";
print $line;
print $startdiv."<a href=\"http://www.apolitical.info/guestbook\" onMouseover=\"window.status='leave feedback, or read other people\'s'; return true\" target=\"_blank\">Guestbook</a></div>";
print $line;
print $link."index.php?mode=3\" onMouseover=\"window.status='a small list of similar sites'; return true\" target=\"_blank\">Links</a></div>";
print $line;
print $startdiv."Library: <a href=\"http://www.apolitical.info/webgame/index.php?mode=7&branch=1\" onMouseover=\"window.status='stories'; return true\" target=\"_blank\">Fiction</a> . <a href=\"http://www.apolitical.info/webgame/index.php?mode=7&branch=2\" onMouseover=\"window.status='other resources'; return true\" target=\"_blank\">Non-Fiction</a></div>";
print $line;
print $link."sourcecode.php\" onMouseover=\"window.status='source-code for Age of Fable'; return true\" target=\"_blank\">Source Code</a></div>";
}
} elseif ($mode==3) {
print $startdiv."<iframe src=\"links.html\" height=450 frameborder=0></IFRAME></div>";
print $line;
print $link."index.php?mode=0\" onMouseover=\"window.status='back to the starting page'; return true\">back to the main page</a></div>";
} elseif ($mode==5) {
if (!isset($order)) {
$classdone=array();
for ($click=1;$click<=$classes;$click++) {
do {
$nextclass=rand(1,$classes);
} while ($classdone[$nextclass]=="done");
$classdone[$nextclass]="done";
$order=$order.chr($nextclass+64);
}
}
if (!isset($orderplace)) {
$orderplace=1;
}
print $line;
print "<table align=\"center\">";
$flag=0;
$x=4;
$y=3;
for ($click=$orderplace;$click<=$orderplace+($x*$y)-1;$click++) {
$bclick=$click;
if ($bclick>$classes) {
$bclick=$bclick-$classes;
}
$loop=ord($order{$bclick-1})-64;
if ($flag==0) {
print "<tr>";
}
print "<td>";
print $startdiv."<a href=\"http://www.apolitical.info/webgame/index.php?mode=2&method=3&type=".$loop."&name=".$class[$loop][$attnum+1]."\" onMouseover=\"window.status='choose ".$class[$loop][$attnum+1]."'; return true\"><img style=\"border-color: #8888FF\" src=\"http://www.apolitical.info/webgame/images/thumb ".$class[$loop][0].".jpg\" alt=\"".$class[$loop][$attnum+1].", a";
$z=substr($class[$loop][0],0,1);
if ($z=="a" OR $z=="e") {
print "n";
}

print " ".$class[$loop][0]."\"></a></div>";
print "</td>";
if ($flag==$x-1) {
print "</tr>";
}
$flag++;
if ($flag==$x) {
$flag=0;
}
}
print "</table>";
print $line;
$orderplace=$orderplace+($x*$y);
if ($orderplace>$classes) {
$orderplace=$orderplace-$classes;
}
print $startdiv."Click a picture to choose that character, or</div>";
print $startdiv."<a href=\"http://www.apolitical.info/webgame/index.php?mode=5&order=".$order."&orderplace=".$orderplace."\" onMouseover=\"window.status='see more characters'; return true\">see more characters</a></div>";

} elseif ($mode==6) {
print $startdiv."<img src=\"http://www.apolitical.info/webgame/images/banner.jpg\"></div>";
print $line;
print $startdiv."You can use the image above to link to us. Use the following three lines of code:</div>";
print $line;
print "<ul>";
print "<li><xmp><a href=\"http://www.ageoffable.net\"></xmp>";
print "<li><xmp><img src=\"http://www.apolitical.info/webgame/images/banner.jpg\"></xmp>";
print "<li><xmp></a></xmp>";
print "</ul>";
print $line;
print $startdiv."if you save the banner to your own server, obviously change the address in the second line to whatever address you save the picture to.</div>";
print $line;
print $startdiv."If you want a banner of a different size or shape, please feel free to email:</div>";
print $startdiv."news (at) apolitical (dot) info.</div>";
print $line;
print $link."index.php?mode=0\" onMouseover=\"window.status='back to the starting page'; return true\">back to the main menu</a></div>";
} elseif ($mode==7) {
print "<ul>";
if (!isset($branch)) {
$branch=2;
}
if ($branch==1) {
print "A small collection of writing in a similar vein to Age of Fable.";
print $line;
print "<li>from <a href=\"http://www.apolitical.info/webgame/confessions\" onMouseover=\"window.status='a short extract from \'Confessions of an Opium-Eater\' by Thomas DeQuincy'; return true\">Confessions of an Opium Eater</a>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/sarnath\" onMouseover=\"window.status='\'The Doom That Came To Sarnath\', by H.P. Lovecraft'; return true\">The Doom That Came To Sarnath</a>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/garden\" onMouseover=\"window.status='\'The Garden of Adompha\', by Clark Ashton Smith'; return true\">The Garden of Adompha</a>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/jackals\" onMouseover=\"window.status='\'Jackals and Arabs\', by Franz Kafka'; return true\">Jackals and Arabs</a>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/masque\" onMouseover=\"window.status='\'The Masque of the Red Death\', by Edgar Allen Poe; return true\">The Masque of the Red Death</a>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/morthylla\" onMouseover=\"window.status='\'Morthylla\', by Clark Ashton Smith'; return true\">Morthylla</a>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/ozymandias.php\" onMouseover=\"window.status='\'Ozymandias\', by Percy Shelley'; return true\">Ozymandias</a>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/poltarnees.php\" onMouseover=\"window.status='\'Poltarnees, Beholder of Ocean\', by Lord Dunsany'; return true\">Poltarnees, Beholder of Ocean</a>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/tower\" onMouseover=\"window.status='\'The Tower of the Elephant\', by Robert E. Howard'; return true\">The Tower of the Elephant</a>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/xanadu\" onMouseover=\"window.status='\'Xanadu\', by Samuel Taylor Coleridge'; return true\">Xanadu</a>";
} else {
print "<li>The <a href=\"http://www.apolitical.info/webgame/ideas\" onMouseover=\"window.status='randomly generates ideas for fantasy stories or role-playing games'; return true\">Adventure Ideas Generator</a> gives ideas for fantasy stories or role-playing games.";
print $line;
print "<li>The <a href=\"http://www.apolitical.info/webgame/plots\" onMouseover=\"window.status='randomly generates short plots for a variety of genres'; return true\">Plot Generator</a> gives short ideas for fantasy, pulp, space opera, superhero, western or cyberpunk plots - or any combination of these.";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/map\" onMouseover=\"window.status='randomly generates maps for stories or role-playing games'; return true\">Random Map Generator</a>";
print $line;
print "<li>The <a href=\"http://www.apolitical.info/webgame/creature\" onMouseover=\"window.status='randomly generates creatures for stories or role-playing games'; return true\">Creature Creator</a> will randomly create fantasy creatures.";
print $line;
print "<li>The <a href=\"http://www.apolitical.info/webgame/class/becmi.php\" onMouseover=\"window.status='Dungeons & Dragons custom class creator'; return true\">Basic/Expert D&D custom class creator</a> is another resource for pen-and-paper role-playing games. It will generate a random character class (not an individual character), for Basic Dungeons & Dragons (the version from the 1980s), or Labyrinth Lord (a free 'clone' of Basic D&D). The <a href=\"http://www.apolitical.info/webgame/class/d20.php\" onMouseover=\"window.status='Dungeons & Dragons custom class creator'; return true\">d20 custom class creator</a> is exactly the same thing, but for 3.5 edition D&D.</div>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/tables.php\" onMouseover=\"window.status='Tables for Fables'; return true\">Tables for Fables</a> is a collection of random tables for pen-and-paper role-playing games.</div>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/heroes\" onMouseover=\"window.status='Cute Board Heroes'; return true\">Cute Board Heroes</a> yet another pen-and-paper resource: a collection of pictures, for making paper miniatures.</div>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/dungeon\" onMouseover=\"window.status='Dungeons & Dragons / Tunnels & Trolls dungeon generator'; return true\">Dungeons & Dragons/Tunnels & Trolls dungeon generator</a> Creates a random 'dungeon' (an underground complex filled with monsters, treasure, traps etc) for the games Tunnels & Trolls, Basic Dungeons & Dragons, or Labyrinth Lord.</div>";
print $line;
print "<li><a href=\"http://www.apolitical.info/webgame/timelord.pdf\" onMouseover=\"window.status='Time Lord - the Doctor Who role-playing game'; return true\">Time Lord</a> - a role-playing game based on the Doctor Who series. This is a 'pen-and-paper' game, not one played on a computer like Age of Fable, and needs at least two or three people to play. To download the file, right-click on the link and choose 'save target as...'. The file is pretty big (545k), and is a pdf, so you need Acrobat Reader to open it (your computer will probably have this free program, but if not you can get it <a href=\"http://www.adobe.com/products/acrobat/readstep2.html\" target=\"_blank\">here</a>). Thanks to the game's creators, Ian Marsh and Peter Darvill-Evans, for making the game freely available on the web (originally at <a href=\"http://www.geocities.com/sege1701\" target=\"_blank\">this site</a>).";
print $line;
print "<li>This speech by <a href=\"http://www.apolitical.info/webgame/ukleguin.php\" onMouseover=\"window.status='speech by Ursula K. LeGuin'; return true\">Ursula K. Le Guin</a> discusses fantasy cliches.</div>";
print $line;
print "<li><a href=\"http://www.apolitical.info/blaze\" onMouseover=\"window.status='Blaze of Glory'; return true\">Blaze of Glory</a> and <a href=\"http://www.apolitical.info/hunters\" onMouseover=\"window.status='Hunters'; return true\">Hunters</a>: two versions of the same simple game - one's about fighting fires, the other's about hunting vampires. <i>Hunters</i> is a bit harder.</div>";
}
print "</ul>";
print "<div><a href=\"http://www.apolitical.info/webgame/index.php?mode=0\" onMouseover=\"window.status='back to the starting page'; return true\">back to the main menu</a> . ";
$otherbranch="fiction";
if ($branch==1) {
$otherbranch="non-fiction";
}
print "<a href=\"http://www.apolitical.info/webgame/index.php?mode=7&branch=".(3-$branch)."\" onMouseover=\"window.status='".$otherbranch."'; return true\">".$otherbranch."</a></div>";
} elseif ($mode==4) {

if (!isset($rolls)) {
$rolls="OJJJJJOJJJJJ";
}

if (isset($name)) {
$name=str_replace(chr(92),chr(0),$name);
}
// get attributes.
if ($rolls=="notusing") {
$stats[1]=$Stamina;
$stats[2]=$Charisma;
$stats[3]=$Duelling;
$stats[4]=$Brawling;
$stats[5]=$Seafaring;
$stats[6]=$Magic;
$stats[7]=$Heroism;
$stats[8]=$Scouting;
$stats[9]=$Roguery;
$stats[10]=$Luck;
$stats[11]=$Healing;
$stats[12]=$Streetwise;
} else {
for ($loop=1;$loop<=$attnum;$loop++) {
$stats[$loop]=ord($rolls{$loop-1})-64;
}
}

// get total of attributes
$total=0;
for ($loop=1;$loop<=$attnum;$loop++) {
$total=$total+$stats[$loop];
}

// decide on $prof (class), except for when first arrive with
// a rolled character, in the rare event of ties.
if (!isset($prof)) {
$score=array();
$lowest=100000;
for ($cloop=1;$cloop<=$classes;$cloop++) {
for ($aloop=1;$aloop<=$attnum;$aloop++) {
$ideal=$class[$cloop][$aloop];
if ($attributes[$aloop]=="Heroism" or $attributes[$aloop]=="Stamina") {
$ideal=$ideal+5;
}
$score[$cloop]=$score[$cloop]+abs($stats[$aloop]-$ideal);
}
$lowest=min($lowest,$score[$cloop]);
}
$prof=0;
do {
$prof++;
} while ($score[$prof]>$lowest);
}
//print character (name and picture)
print $startdiv."<img src=\"http://www.apolitical.info/webgame/images/thumb ".$class[$prof][0].".jpg\"></div>";
print $startdiv."<i>".$name."</i></div>";
print $startdiv.$class[$prof][0]."</div>";
print $line;

if ($method==1) {
print "<table align=\"center\">";
print "<form name=\"input\" action=\"index\" method=\"get\">";
for ($att=1;$att<=$attnum;$att++) {
print "<tr><td align=\"right\">".$attributes[$att].":</td><td>";
print "<select name=".$attributes[$att]." style=\"width:210px\">";
for ($x=1;$x<21;$x++) {
$y=$x;
if ($attributes[$att]=="Stamina" OR $attributes[$att]=="Heroism") {
$y=$y+5;
}
print "<option";
if ($y==$stats[$att]) {
print " selected";
}
print " value=".$y.">";
print $y." (";
print $word [$attributes[$att]][$x];
print ")</option>";
}
print "</select>";
print "</td></tr>";
}
print "<input type=\"hidden\" name=\"mode\" value=4>";
print "<input type=\"hidden\" name=\"method\" value=1>";
print "<input type=\"hidden\" name=\"rolls\" value=\"notusing\">";
if (isset($name)) {
print "<input type=\"hidden\" name=\"name\" value=\"".$name."\">";
}
print "<tr><td></td><td><input type=\"submit\" value=\"check character\"></td></tr>";
if ($total==$attnum*10+10) {
//pack attributes into $rolls;
$rolls="";
for ($loop=1;$loop<=$attnum;$loop++) {
$rolls=$rolls.chr($stats[$loop]+64);
}
}
print "</form></table>";

} else {
print "<table align=\"center\">";
for ($loop=1;$loop<=$attnum;$loop++) {
print "<tr><td align=\"right\"><b>".$attributes[$loop]."</b></td>";
$lowstat=1;
if ($attributes[$loop]=="Stamina" OR $attributes[$loop]=="Heroism") {
$lowstat=6;
}
for ($nloop=0;$nloop<=19;$nloop++) {
$thisone=$lowstat+$nloop;
print "<td align=\"center\"";
if ($thisone==$stats[$loop]) {
print " bgcolor=\"#FF0000\"><font color=\"white\"><b>";
} else {
$newroll=$rolls;
$newroll[$loop-1]=chr($thisone+64);
print "><a href=\"http://www.apolitical.info/webgame/index.php?mode=4&method=2&rolls=".$newroll."&name=".$name."\" onMouseover=\"window.status='change ".$attributes[$loop]." to ".$thisone."'; return true\">";
}
print $thisone;
if ($thisone==$stats[$loop]) {
print "</font></b>";
} else {
print "</a>";
}
print "</td>";
}
$rating=$stats[$loop];
if ($attributes[$loop]=="Stamina" or $attributes[$loop]=="Heroism") {
$rating=$rating-5;
}
print "<td>(".$word[$attributes[$loop]][$rating].")</td></tr>";
}
print "</table>";
}
print $line;
print "<div align=\"center\">The total attributes for this character are ".$total."</div>";
print $line;
print "<div align=\"center\">";
if ($total<>$attnum*10+10) {
print "Total attributes need to be ".($attnum*10+10);
} else {
print "<a href=\"http://www.apolitical.info/webgame/index.php?mode=2&method=6&prof=".$prof."&rolls=".$rolls."&name=".$name."\" onMouseover=\"window.status='continue, with the character as is'; return true\">Accept this character</a>";
}
print "</div>";
}
print $line;
print "</td>";
print "<td width=\"60%\">";
print $startdiv."artwork by Rene Magritte</div>";
print $startdiv."<img src=\"http://www.apolitical.info/webgame/images/intro.jpg\"></div>";

print $line;
print $startdiv;
?>
<!--the code for the 'Project Wonderful' ad is here in the original page.-->
<?php

print "</div>";
print "</td>";
print "</table>";
@include "http://www.apolitical.info/webgame/footer.txt";
?>
 
source code for game.php
 
<?php
@include "http://www.apolitical.info/webgame/header.txt";
$line="<div>&nbsp</div>";
$startdiv="<div align=\"center\">";


//number and names of attributes
//if change attributes, need to do it here, create.php, form.txt

$attnum=12;
$obless=1; //how many non-attribute blessing types
$attributes=array("null","Stamina","Charisma","Duelling","Brawling","Seafaring","Magic","Heroism","Scouting","Roguery","Luck","Healing","Streetwise","Shelter");
// $attributes also includes non-attribute blessing names

//rough description of what a particular score means

$word=array (
'Stamina' => array ("near death","sickly","sickly","sickly","unhealthy","unhealthy","unhealthy","unremarkable","unremarkable","unremarkable","unremarkable","healthy","healthy","healthy","healthy","robust","robust","robust","unstoppable","unstoppable","unstoppable"),
'Charisma' => array ("null","repulsive","repulsive","hateful","hateful","hateful","annoying","annoying","annoying","innocuous","innocuous","innocuous","likeable","likeable","likeable","charming","charming","charming","mesmerising","mesmerising","mesmerising"),
'Duelling' => array ("null","clumsy","clumsy","clumsy","clumsy","slow","slow","slow","slow","average","average","average","average","agile","agile","agile","agile","dangerous","dangerous","deadly","deadly"),
'Brawling' => array ("null","puny","puny","puny","weak","weak","weak","unremarkable","unremarkable","unremarkable","unremarkable","strong","strong","strong","strong","strong","powerful","powerful","powerful","legendary","legendary"),
'Seafaring' => array ("null","gets seasick in the bath","gets seasick in the bath","landlubber","landlubber","mediocre","mediocre","mediocre","fair","fair","fair","good","good","good","great","great","great","old salt","old salt","old salt","old salt"),
'Magic' => array ("null","powerless","powerless","poor","poor","mediocre","mediocre","mediocre","fair","fair","fair","good","good","good","great","great","great","superb","superb","overwhelming","overwhelming"),
'Heroism' => array ("wicked","wicked","wicked","corrupt","corrupt","selfish","selfish","wavering","wavering","wavering","good-hearted","good-hearted","good-hearted","bold","bold","bold","bold","heroic","heroic","heroic","heroic"),
'Scouting' => array ("null","gets lost in the back yard", "gets lost in the back yard","terrible","terrible","poor","poor","mediocre","mediocre","fair","fair","good","good","good","great","great","great","superb","superb","legendary","legendary"),
'Roguery' => array ("null","terrible","terrible","poor","poor","mediocre","mediocre","mediocre","fair","fair","fair","good","good","good","great","great","great","superb","superb","legendary","legendary"),
'Luck' => array ("null","cursed","cursed","ill-starred","ill-starred","mediocre","mediocre","mediocre","fair","fair","fair","lucky","lucky","lucky","auspicious","auspicious","auspicious","charmed","charmed","blessed","blessed"),
'Healing' => array ("null","terrible","terrible","poor","poor","mediocre","mediocre","mediocre","fair","fair","fair","good","good","good","great","great","great","superb","superb","legendary","legendary"),
'Streetwise' => array ("null","babe in the woods","babe in the woods","clueless","clueless","foolish","foolish","unwise","unwise","fair","fair","alert","alert","alert","crafty","crafty","crafty","cunning as a fox","cunning as a fox","cunning as a shithouse rat","cunning as a shithouse rat"),
);

//number of classes: only used for special branching type 23
$classes=20;

//name: get rid of the '\'s that it puts in front of apostrophes
$name=str_replace(chr(92),chr(0),$name);


//classes
$class=array ("clown","talking cat","wizard","scoundrel","bard","knight","nomad","pirate","fairy","dwarf","barbarian","assassin","witch","faun","troll","courtesan","fortune-teller","amazon","lizard-man","explorer","aristocrat","bird");
// 'clown' and 'bird' are special cases:
// you can only be turned into them,
// you can't choose to start as one.

// unpack $rolls to reveal character's stats
$stats=array();
for ($loop=1;$loop<=$attnum;$loop++) {
$z=ord($rolls{$loop-1})-64;
if ($z>26) {
$z=$z-6;
}
$stats[$loop]=$z;
}

if (!isset($maxsta)) {
$maxsta=min(25,5+$stats[1]);
$illumcred=1;
}

//special variable for 'street' and 'square' pictures:
// flips street1/2/3.jpg & square1/2/3/4.

if (!isset($street)) {
$street=rand(1,4);
$square=rand(1,3);
}

//unpack $carry to reveal $items array

if (!isset($carry)) {
$carry=1;
}

$items=array();
$itemnames=array(
1=> array ("done specially below","item"),
2=> array ("goblin-tailored cloak","item"),
3=> array ("dwarven medallion","item"),
4=> array ("Owyth","frog"),
5=> array ("crown","item"),
6=> array ("black pearl","item"),
7=> array ("witch's bundle","item"),
8=> array ("box from the armoured hut","item"),
9=> array ("glass bottle","item"),
10=> array ("Imp","imp"),
11=> array ("fur (possibly magic)","item"),
12=> array ("magic fur","item"),
13=> array ("fur","item"),
14=> array ("Owyth","warrior"),
15=> array ("unicorn","unicorn"),
16=> array ("horse","horse"),
17=> array ("book","item"),
18=> array ("drum","item"),
19=> array ("r.o.p.h., but this isn't used","item"),
20=> array ("neckweasel","item"),
21=> array ("the Pearl of Wisdom","item"),
22=> array ("Piteous Mew","cat"),
23=> array ("raven","raven"),
24=> array ("Ugly Stick","item"),
25=> array ("key","item"),
26=> array ("guide to Dead Eye Street","item"),
27=> array ("red rose","item"),
28=> array ("Yasmina","princess"),
);

$manyitems=28;
//how many items are in the game.

$test=pow(2,$manyitems);
while ($carry>0) {
if ($carry>=$test) {
$carry=$carry-$test;
$items[log($test,2)+1]=1;
}
$test=$test/2;
}

//weapons
$weapontypes=11;
$weaponnames=array("null","club","quarterstaff","machete","dagger","sword","scimitar","spear","trident","axe","war-hammer","mace");

if (!isset($weapon)) {
//trolls always have clubs.
if ($prof==14) {
$weapon=1;

//lizard-men always have spears.
} elseif ($prof==18) {
$weapon=7;

// dwarves don't have clubs or quarterstaffs because
// the story says you use the forge to make your weapon.
} elseif ($prof==9) {
$weapon=rand(3,$weapontypes);

// fairies don't have clubs, axes, war-hammers or maces.
} elseif ($prof==8) {
$weapon=rand(2,8);

// knights don't have clubs.
} elseif ($prof==5) {
$weapon=rand(2,$weapontypes);

// courtesans have quarterstaffs,
// daggers, swords, scimitars or machetes.
} elseif ($prof==15) {
$weapon=rand(2,6);

// aristocrats have daggers, swords, scimitars or spears.
} elseif ($prof==20) {
$weapon=rand(4,7);

} else {
$weapon=rand(1,$weapontypes);
}
}
$itemnames[1][0]="your ".$weaponnames[$weapon];

//unpack $world to reveal $keywords array

if (!isset($world)) {
$world="";
}

$keywords=array();
$manywords=350; //how many keywords are in the game.

for ($loop=1;$loop<=$manywords;$loop++) {
if ($world{$loop-1}=="!") {
$keywords[$loop]=1;
}
}

//unpack $blessings to reveal $bless array

if (!isset($blessings)) {
$blessings="";
for ($loop=1;$loop<=($obless+$attnum);$loop++) {
$blessings=$blessings."1";
}
if ($prof==8 OR $prof==13) {
$sbless=rand(1,$attnum+$obless);
$blessings[$sbless-1]="2";
}
}

$bless=array();
for ($loop=1;$loop<=($obless+$attnum);$loop++) {
$bless[$loop]=ord($blessings{$loop-1})-49;
}

// meanings of keywords:
// 1 - have your boat. If you don't have keyword 31, it's safe.
// 46 - 'check on boat in swamp' flag. Makes sure you don't have to
// do this twice in a row.
// 31 - boat is hidden in swamp
// 32 - boat is definitely stolen from swamp (left it too long)
// however won't lose keyword 1 until you look for it
// or give up on it altogether.
// 33 - have had the chance to see fairies in swamp (whether did or not)
// 34 - someone stole your boat and you now know it (may meet them later)
// 96 - you've found the docks
// (can't find it by wandering again, but have
// the choice to visit it).
//97,98 - a new boat will cost you 10 or 15 gp respectively,
// or 20 if you have neither keyword.
// 100 - you may barter for a boat instead.

// 3 - met the frog prince
// 2 - you know that the frog isn't telling the whole truth.
// Thus you'll get extra Heroism if you kiss it (4 rather than 2).

// 4 - you've been a frog
// 288 - the fox-woman turned you into a frog (in final bit).

// 5 - you saw the dwarves' fire (whether you investigated or not)
// 6 - met the dwarves and didn't make enemies of them
// 7 - met the dwarves and did make enemies of them
// (if you successfully stole from them without announcing
// yourself, you don't get this keyword)

// 8 - met the warrior with the slugs.
// 47 - wounded in the shoulder.
// (later, may lose this keyword if make a Healing roll
// or at the Street of the Gods)
// 62 - met warrior, but didn't tell the goblin about her.

// 9 - met wood elf when frog
// 10 - met troll when a frog
// 11 - tricked wood elf into kissing you
// 217 - you've met the veangeful frog/wood elf
// 218 - flag when looking for cure for wood elf - this
// indicates that it knows its you, thus will attack you if fail.
// 12 - tried to cast a spell when a frog

// 13 - made a bodgy raft
// 14 - made a good raft (both in case you explore island and return)
// 103 - made no raft
// both 13 and 14 are set to zero and 103 to 1
// when you come to island because it's possible to return.
// 283 - you were picked up from island by Lorena Hobbit.
// you met the dragon...
// 15 - ...and he told you not to return
// 16 - ...and he told you not to return until better
// at healing (can be gotten rid of)
// 17 - ...and healed him (can't return to island)
// 102 - you've examined the fish woman's body
// 284 - you're a courtesan, and you were shipwrecked
// (thus you won't get revenge ending)

// 266 - you've been to Serene Dreams (used in final gambling hall)
// 18 - have had the chance to be gladiator
// via looking for work or begging
// 24 - have actually been a gladiator in city,
// OR have been on slave ship:
// ie this one measures 'can you be captured by slavers'
// this isn't set to 1 by going to the gladiator camp
// (you might escape before that).
// if 24 is 1, 18 always 1 (but 18 can be 1 and not 24)
// 25 - have been gladiator and may go back
// 26 - have been gladiator and *must* go back
// (won, failed Heroism roll)
// if you 'drop out' of being a gladiator, 25 & 26 set to zero.
// 83 - have completed first bit of gladiator story
// (up to offer to sell imp)
// this is used if in prison etc, may be forced into
// gladiator life if haven't done it before.

// 84 - sold imp to gladiator owner
// 92 - you made the Streetwise roll to recognise that
// Serene Dreams' owner is conning you.
// 93 - you made the Heroism roll such that you have a choice not
// to go to fights in other cities.
// 94 - you're on your way to the training camp, directly from city.
// 223 - you're on your way to the training camp, via the forest
// (ie having run away from the elf or she runs away in combat)
// 222 - you've met dark elf
// (whether randomly or because going to training camp)
// 224 - you're at the camp, or later in Karsh, without the elf
// (223 and 224 are two seperate keywords so that if you head into
// the forest having been at the camp, you won't get the message
// 'at last you find the camp...'
// 228 - you successfully destroyed the camp.
// 229 - you tried to get everyone out of the ship (bonus to speech)
// 271 - You left the elf in the arena.

// 235 - in Karsh, you will be spared if defeated (first time).
// eg gave 'about to die' speech to crowd, or rebel's speech.
// 249 - you gave rebel's speech to crowd in Karsh:
// can make the rebels accept you.

// 207 - you've met, or heard about, Eddie Lizzard.

// 19 - met Billy Two-Shits
// 20 - can't find BT-S again - either he disappeared or ripped you off,
// or you ripped him off, or otherwise argued.
// 265 - BT-S disappeared, but it's not your fault, was just random.
// (this is only relevant with the rebels)

// to contact him again 19 must be 1, 20 must be 0.

// 21 - B-TS ripped you off (might meet him again)
// 22 - you owe BT-S (only temporary - cleared whether pay him or not)
// 23 - you successfully ripped IH off
// (might meet him again and have the option to repay him 1gp)
// (not sure if any of these are currently used - check later)

// 27 - got taught the job code (maybe easier to find next time)
// 28 - had the chance to take small witch quest
// 29 - on witches quest
// 30 - broke quest: either threw bundle away, sold it,
// or successfully defied witch.
// (this will be re-set if meet imp and he beats you)
// 35 - opened bundle - easier to sell it.

// 36 - can't steal, city guard on alert
// (because stole before, or because of street preacher)
// 37 - tried to rob assassin woman,
// will kill you if happens again
// 38 - robbed temple of black pearl
// 39 - tried to rob fighting merchant
// 40 - you're a murderer

// 41 - have visited 'space' island
// 42 - have met space people
// 43 - stole from space people, or were caught leaving ship
// 44 - stood guard for space people
// (if fail charisma roll can have 42 but neither of 43 or 44)

// 45 - had opportunity to leave spaceship
// 155 - saw the world from space
// 48 - saw alien on small planet (may not have talked to it)
// 49 - know how to fly ship (because alien taught you)

// 50 - met imp in city

// 51 - met street preacher in city
// 52 - gave shell to street preacher in city, or won argument.
// if set out to sea, get free blessing, set to zero.

// 53 - have found courage shop in city
// this means CANT find it again by wandering
// but CAN try and find it if have no shells,
// or if fail heroism roll and have enough shells to buy some.
// if try to find it and fail, this is reset to 0

// 54 - came across 'John Ball' preacher in city (even if walked on)
// 55 - listened to this preacher
// (54 used when exploring city, 55 if leave city and find in camp)
// if you hear speech in the camp, you get kewords 54 AND 55,
// so you won't come across the preacher in the city.
// 174 - helped the preacher against the guards.

// 56 - on JB side
// 57 - against JB (if walked on, don't get either of these)
// 58 - 'won' argument re street preacher

// 59 - in forest: 'hungry' flag. this encounter is repeatable,
// but has this flag so you're less likely to get it twice
// in a row.

// 60 - have met goblin at inn
// 123 - met goblin in Karrakara
// 61 - helped goblin (gave shells, told about slug woman, or
// successfully blessed him).
// whether can have encounter:
// at inn: not if keyword 60 OR 61
// if 123, message not sure, but think recognise him from Karrakara
// in Karrakara: not if 123 OR 61
// if 60, message that not sure, but think recognise him from inn

// 63 - outside of Karrakara, have seen fire with men
// (won't be there next time)
// 64 - threatened man (more likely to be stolen from in your sleep)

// 65 - lost in forest from leaving Karrakara.

// 66 - you've had the opportunity to buy from the fur trader.

// 67 - met the caravan in the desert.
// 68 - found the tower
// 69 - approached the tower ie know it's full of treasure

// 68 means you can't find it again by wandering the desert
// 69 means if you become a pirate captain you think of it again.
// if you go after it again as a pirate captain and fail
// 69 is set to 0 but 68 stays.

// 70 - you've found the street of the gods
// this means you can't find it by wandering, but you can
// go back by choice.
// 126 - you've had the 1st 'Hail, O Kitty' message
// 134 - you've had the 2nd one.

// 71 - you're in contact with magician's apprentice
// (several ways to get this keyword)

// 72 - Karra frog flag - this is set to 1 each time the frog asks
// if you're going to help him. If it's set to 1, it's set to
// zero instead of it asking again (thus doesn't ask twice in
// a row).

// 216 - you know about Janooth
// (can do on quest from main city hub, or tell revenge frog)
// 73 - you are on the quest to find Janooth.
// 74 - have dealt with frog ie won't come across him again.
// also maybe helps eg if enslaved he frees you.
// 75 - have had 'talking frog for sale in city' encounter
// (ie this happens only once)

// 76 - trying to sell horse: have had offer from noble
// 77 - trying to sell horse: have had offer from butcher

// 80 - human-form Owyth has told you about desert ghouls
// 85 - have left human-form Owyth back in Karrakara.
// 86 - ...and he's minding horse
// 87 - ...and he's minding unicorn (85 will =1 if 86 or 87 do)

// 81 - have had your chance to get job offer to kill someone
// (may not have had the actual offer,
// if not assassin or rogue and fail rolls)
// this is also set to 1 if go to encounter from Street of Gods
// 99 - have done the saving roll related to Heroism
// at the Street of the Gods
// 101 - took up the offer, or went there from Street of the Gods
// 82 - successfully completed it
// (may lead to other encounters eg being blackmailed)

// 88 - you've had the miscellaneous street seller encounter

// 89 - have had chance to hear about black pearl when moving boxes
// 90 - actually have heard

// 91 - got chance to buy back imp (whether did or not)

// 95 - have met goblin and boy travellers outside of Karrakara
// 172 - you tried to sneak away from them (arrested in fairy town)
// 183 - you murdered them (also get tag 40). This is used because
// you might meet someone in jail who tells you they were thugs.

// 104 - you've met the death horse (2 seperate encounters)
// 105 - you're meeting death horse via forest
// 107 - you're meeting death horse returning from Janooth.
// (if not it's by general travel)
// 106 - resistance to poison from death horse

// 108 - you've met prince dimitri for the first time
// 109 - you've met prince dimitri for the second time
// 210 - you didn't pay prince dimitri back fully
// (if going into space, man won't pull you back to earth)

// 110 - you've had forest pool (heroism/charisma) encounter

// 111 - you've met the mermaid.
// 112 - great swimmer/can't drown.

// 113 - you've had the goblins encounter
// 114 - you can ask the goblins whether there's anything you can do
// 115 - the goblins have told you (ie you can go on mission below)

// 116 - you've been on the forest king/queen mission (whether succeeded or not)
// 117 - you successfully completed this
// (maybe can recruit goblins later for/against rebels)
// 118 - you're on Forest King/Queen mission for Dahlia in particular

// 119 - you've bought the blessing from the village wise woman
// (ie can't buy it again)
// 225 - you've spent too long in the town.
// 226 - you've visited the wise-woman.
// 279 - you'll get Unnerving Beast rather than guide who might attack.
// 280 - you'll get guide who might attack rather than Unnerving Beast.

// 120 - you've had the forest unicorn encounter
// 205 - you'll be arrested in Tok for spying on the unicorn

// 121 - you've had the forest giant houses 'encounter'

// 122 - you've had the neckweasels encounter

// 124 - met laughing market peasant
// 188 - met her again in Seriphosa.

// 125 - you've found the Well of New Life
// 285 - you drank from it (thus can't get revenge ending)
// 215 - you drank from it AFTER tricking wood elf
// 286 - you're on the quest to re-find it
// 288 - the fox-woman turned you into a frog (in final bit).
// 289 - you're heading back to Karrakara, after Well of New Life
// failed to help you (it turned you into a frog)

// 127 - 'boiling sea' / Anhotep
// 128 - you've worked out that it's Anthotep (extra heroism)
// 129 - you've tried to work out what it is (can only do once)
// 154 - have seen world under the sea.
// 157 - you've tried to figure out world in sea (can only do once)
// 281 - you've been given the orb, which will be the Pearl of Wisdom
// or contain shells.

// 130 - you've had slow child encounter.
// 131,132,141 - temporary flags
// if you complete a relevant part, you get flag 131.
// 132,141 and 133 come about automatically in the main loop.
// encounters which may lead to ability to explore the sewers
// check for 131 to =0 (rather than 132 or 133).
// 133 - you can explore the sewers in Karrakara.
// (set to 0 once you have)

// 135 - you've gotten the bonus for being lizard man in desert.

// 136 - you're in the forest, going over the hills.

// 137 - you've met the 'weighing the heart' priest
// if you enter the pyramid, you also get this keyword.
// maybe change this later.
// 138 - you're on the quest to take vengeance on them
// 199 - you've found the pyramid (this is re-set to 0 if you
// swear vengeance on them)
// 293 - you killed Yag-kosha
// 294 - you freed the gods from the pyramid
// ('Safeisland' can depend on both of these keywords)

// 139 - you've had the diseased town encounter
// 140 - you've tried to defeat the colossos, or healed some of them.
// (get accepted by rebels, maybe also hobos when expand that)
// you've tried to -
// 163 - investigate
// 164 - use magic to find out what happened
// 165 - heal them
// 166 - you've saved to see if you drink the water
// because you can go back to town, and if you leave then
// don't have to save again.
// 170 - you're on the colossos sub-quest
// 180 - you're going back from failing at the colossos sub-quest
// 181 - you have no boat to get back - Prince Dimitri gave a lift,
// or the Colossos blew you and you jumped off.
// 173 - the swamp key is definitely not for the door to Atnos
// (ie tried it - must be for Colossos itself)
// 179 - you've walked around Atnos' walls and found the door
// 245 - you read the walls of Atnos - automatic success for Zareth
// to either teach you, or perform operation on you.
// 182 - you've successfully dealt with the Colossos.
// (currently not used but may be later)

// 171 - you've had the choice to give shells to Numen Mari
// this is also set to 1 if you 'look up on the net' in Town

// 142 - you've had the swanroad encounter
// 143 - you've been rowed across the river
// (have some encounters later that require this)

// 144 - you've met the cryer and sphinx for the first time
// 145 - you know about the Amazons
// 146 - you know about plague from the cryer
// or from drinking the water
// (make this help in town)
// 147 - you've pissed off or fought the cryer

// 148 - you've had fig pun in forest
// 203 - you've found High John in forest

// 149 - you've had the chance to have cat piano encounter
// or get Piteous Mew via 'catscan'.
// 150 - you left cat piano woman (may make rebels not accept you)
// 151 - you stopped cat piano woman (may make rebels accept you,
// might have bad consequences on Dead Eye Street)

// 152 - 'crows call my name' flag
// (probably no game effect, just flavour)

// 153 - 'river phoenix/forest gump' flag
// (again probably just flavour)

// 156 - 'flowers of karrakara' flag (just flavour)

// 158 - you've found the rebels in the sewer
// 159 - you've joined the rebels in the sewer
// (whether sincerely or not). Can lose it if you're
// a scoundrel and seek them out when someone's after you.
// 160 - you've been completely lost in the sewer
// (so you don't have to do it twice)
// 161 - you've informed on them, or made friends with wolf passengers
// who turn out to be connected to the government.
// 78 - have met the Lurker in the sewer
// 79 - you're in the sewers escaping from jail

// 162 - 'set stage on fire' flag
// (probably just flavour)

// 167 - you've been through the Ugly Forest
// 175 - you've encountered the revulsion demon
// 176 - you saw the way out of the forest by climbing a tree

// 168 - you've been to the fairy village ('Market')
// 184 - you've looked at box in Market
// 185 - you've looked at pearl in Market
// 186 - you've looked at book in Market
// 190 - you've had the roll where may hear about selling
// horse or unicorn there.
// 189 - you're on the mission to sell horse or unicorn there

// 169 - you've had the 'gods of different pie' conversation.
// 250 - you've read the 'obbituaries.

// 177 - you succeeded in tunneling out of cell
// 178 - you failed in tunneling out of cell

// 191 - you've had the 'wolf bus' encounter

// 192 - you've met the Hair Witch Project
// 193 - you have the writhing hair extensions
// 194 - you're bald from the Hair Witch Project
// 195 - you can sell your hair if you're broke

// 196 - you've found work in the country
// (doesn't give flag if attempt and fail)

// 197 - you've gone past the island chain
// 198 - ate there (harder to leave)
// 204 - you've noticed that the red flower doesn't wilt
// (make this a path into final bit)

// 201 - you've taken in basics of Nara religion - either
// in pyramid, or succeeded in Ritual of Weighing the Heart
// 208 - pyramid creatures are in your head.
// 200 - you deciphered the script in the entrance
// to the Hall of False Gods.

// 202 - you've had the opportunity for the 'money tree' encounter
// 291 - but you didn't met the actual tree
// (only used for message related to other oasis)

// 206 - you've been to Tok (if arrested, don't get the keyword)
// 221 - you hid from the goblin patrol, and failed (makes them less friendly)

// 209 - you've had the chance to visit the Seal of Approval
// or spell checker, or get a catscan
// 211 - you denounced the seal. Can save you in sewer.
// 212 - have had 'city guards' encounter from Seal or street preacher.

// 213 - you've had 'food court' bit.
// 242 - you've had 'primordial soup' bit.
// 249 - you've had 'deep Freud' bit.
// 256 - you've had 'one with everything' bit.
// 260 - you've had 'dustin half-man' bit.
// 307 - you've had 'Spider-Cultist Dior' bit.

// 214 - you've come across 'reader' in forest.

// 220 - you've met Santa (in space)

// 227 - you've had the encounter which can be cthulhu or friendly

// 230 - met elf pirate on 'arrrr and arrrr'
// 257 - she died.
// 325 - you've had chance to meet her while begging.

// 231 - you've met Robin Goodfellow

// 232 - you've spent the night in a ruined temple
// (can happen on Janooth quest, or when meet Robin Goodfellow)
// 233 - you're spending the night in temple, from Robin Goodfellow
// (if don't have this keyword, it's on Janooth quest)

// 234 - 'goddess of procrastination'

// 187 - heard about Dead Eye Street from gamblers on street,
// OR from gambler in hall.
// (gives you some fore-warning, like guide but less so).
// 236 - you've seen the gamblers.
// 237 - you owe the gamblers 15 shells.
// 252 - you've had the chance to meet
// the gamblers on Dead Eye Street.
// 238 - you're on the assassination mission for the gamblers
// (if have this keyword, will also have 101).

// 239 - you've been to the bridge where Zareth lives.
// 240 - on bridge, you've had the chance to take a taxi.
// 241 - on bridge, you're trying to cure Owyth and have no hut
// (different consequences if leave).
// 244 - you gave Owyth to Zareth.
// 246 - Zareth is helping you get home (may get easier stairs)
// set back to 0 once used (in case I add other uses in the future).
// 247 - you snuck up and saw the dragon - only difference is that
// the message when you win is slightly different.

// 243 - have had sweat lodge encounter.

// 255 - you've used the druids 'go away' spell.
// It can only be used once.

// 251 - you've found Dead Eye Street.
// 254 - you've had the message when you go there for the 2nd time.
// 253 - you've had the chance to meet the *dead* elf pirate
// 258 - you met the *dead* elf pirate
// (gives you help, like guide and keyword 187)
// 259 - you can't go back to Dead Eye Street again.
// If this is 1, 251 is re-set to 0 and stays there.
// 261 - you've had the chance to get a tip from the gambler.
// 262 - you've had a fight on Dead Eye Street.
// (or got out of it because it was the elf pirate)
// 263 - you've had the chance to meet the *live* elf pirate.
// 187 - heard about Dead Eye Street from gamblers on street,
// OR from gambler in hall.
// 287 - you've been to the last hall on Dead Eye Street.

// 264 - you've had troll booth encounter.

// 267 - you've had the chance to fall into hell,
// while walking around island.
// 268 - you've actually visited hell.
// If you visit hell, 267 is set to 1 as well as 268.
// This is in case you're visiting it by another way.
// 269 - you've turned into a demon (will turn back if get out)
// 270 - you're escaping with someone.
// 308 - you're in hell from trying to get into the Amazon city.
// 312 - you were dragged into hell by hands in Amazon park.
// 271 - you left the elf in the arena.

// 272 - you're looking for Ozymandias.

// 273 - you've walked all the way round the island.
// (can trigger final bit)

// 274 - you've been to clown village.
// 275 - you're in clown village in forest.
// (otherwise you're walking round island)

// 276 - you've had wedding encounter.

// 277 - you've been in 'Final' pyramid (not the Nara one).
// 282 - you met the clowns there.

// 278 - you met the cat-spider in the arena
// (notice its webs in the morning in Final)
// 306 - the clowns told you about the webs

// 292 - you're sailing to the safe island in end bit.
// 295 - you're fleeing vengeance by sea.

// 290 - you've met the walking oasis
// 296 - you're fleeing vengeance by land (ie into the desert)

// 298 - you found the lost fleet

// 299 - you're on the mission to investigate the Amazons
// for the city government, or the temple of Daba
// 300 - you're going to be catapulted to the safe island

// 323 - you've been a pirate
// 324 - you've had the chance to become a pirate through
// looking for work. This doesn't effect becoming a pirate
// from revenge ending, that relies only on 323.
// 301 - you've had 'embaaaarrassing' pun from pirates.
// 302 - crew has had dysentry.
// 303 - you've had a duel with one of the pirates.
// 304 - you've gone through the 'revenge' ending.
// 326 - you're being a pirate via 'revenge' ending.

// 305 - you have the password to the Amazon's city.

// 309 - you've had 'eye plant' encounter.
// 310 - you're having eye plant encounter in Karrakara
// (otherwise it's in Amazon city).

// 313 - you've failed the roll at the temple of Averna,
// but because you're an Amazon you got the blessing anyway.

// 314 - you've met the bear and princess.
// 315 - you tried to cast a spell.
// 316 - you tried to greet them.

// 317 - you've been allowed inside the Amazon palace.
// 318 - you took the side of Averna in the argument between Amazons.
// 319 - you took the side of Daba.
// 320 - you met the smugglers in the Amazon city tavern.
// 321 - you found the open inn.
// 322 - you've found the open inn, but decided to leave.
// 329 - you're trying to rob the palace.
// 330 - you've been punished for being a smuggler: can't look
// for lodging.
// 331 - You're in the temple of Daba, and have visited that of
// Averna.
// 332 - you defeated the false priest of Averna.
// 338 - you've gotten the explanation of the Daba temple's layout.

// 327 - you've had goblin guide; at start, or when leaving pirate ship.
// 328 - you've had 'robbed' encounter; as above,
// at start, or when leaving pirate ship.

// 333 - you've had the chance to find the Karrakaran temple of Daba.

// 334 - you've met horsewoman who directs you back to Karrakara.
// 335 - you got directions out of the forest from the wolf,
// and so can't meet the horsewoman this time.

// 336 - you've had the scarecrow gag.

// 337 -

// starting para

if (!isset($para)) {
if ($prof==8) {
$para="Fstart";
} elseif ($prof==9) {
$para="Dstart";
} elseif ($prof==13) {
$para="Faunstart1";
} elseif (rand(0,1)==0 AND $prof==3) {
$para="Rstart";
} elseif (rand(0,1)==0 AND $prof==7) {
$para="Pstart";
} elseif ($prof==11) {
$para="Astart";
} elseif ($prof==14) {
$para="Tstart";
} elseif ($prof==15) {
$para="Cstart";
} elseif ($prof==16) {
$para="Ftstart";
} elseif ($prof==1) {
$para="Catstart";
} elseif ($prof==20) {
$para="Snow";
} else {
$para=200;
}
}

//starting shells

if (!isset($shells)) {
if ($prof==8 OR $prof==13) {
$shells=0;
} elseif ($prof==9) {
$shells=40;
} else {
$shells=20;
}
}

//main paragraph array
//each paragraph is represented by an array,
//whose elements are as follows:
//0:string giving text of para, or "no text"
//1:number giving what type of branching the paragraph has:
// 0 - this is an end paragraph
// 1 - only 1 option, given in slot 2
// 2 - free choice - slot 2 is number of choices, then
// text and number of each in turn.
// 3 - saving roll - slot 2 is which attribute (string)
// slot 3 is difficulty
// slot 4 is success para
// slot 5 is failure para
// if you succeed by 5 or more, make an advancement roll
// ie roll 1d20 and gain 1 of relevant attribute if roll is
// over your score in that attribute.
// 4 - random branching - slot 2 = how many options,
// then paragraph for each
// 5 - does character have an item - slot 2 - which item
// slot 3 - para if do have it
// slot 4 - para if don't
// 6 - as 5, but for a keyword rather than an item

// branches from here on all adjust variables, and all
// lead on to only 1 paragraph.

// 7 - gain or lose an item - slot 2 is which item
// 3 is 0 to lose or 1 to gain
// 4 is new para
// 8 - as 7, but for a keyword rather than an item.
// 9 - change to attributes - slot 2 is which attribute (string)
// 3 is change
// 4 is new para
// 10 - change to shells - slot 2 is change, slot 3 is new para
// 11 - shell check - slot 2 is minimum shells
// slot 3 is para if you have at least that much
// slot 4 is para if you don't
// 12 - multiple saves - slot 2 is how many
// slot 3 is difficulty
// 4 to (3 + slot 2) names of attributes
// (4 + slot 2) to (4 + 2 * slot 2) destinations:
// failed all, made 1,2 etc
// 13 - 'click to continue' - slot 2 is destination.
// 14 - gain a blessing - slot 2 is which one (text),
// or 'random' for a random one
// slot 3 is new paragraph
// 15 - blessing check - only checks non-attribute ones
// slot 2 is which one (text)
// slot 3 is para if do have it
// (only check non-attribute ones)
// (-1 if do so)
// slot 4 is para if don't have it
// 16 - branching based on profession
// slot 2 is the number of a profession
// slot 3 is the destination if you have that profession
// slot 4 is the destination if you have any other profession
// 17 - free choice, but some choices may depend on having keywords
// slot 2 is the maximum number of choices
// then for each choice, text, number -
// +ve number +1000 if requires keyword to =0
// (eg 1020 means 'display this choice if you don't have keyword 20')
// +ve number if keyword
// '0' if no requirement (ie if this choice always appears)
// -ve number if it requires an item/companion
// -ve number -100 if it requires you NOT to have an item/companion
// (eg -110 means 'display this choice if you don't have item #10')

// & finally destination for that choice

// 18 - lose all companions [special exception for cat when a frog]
// slot 2 = destination.
// 19 - 'I haven't written this yet' message.
// 20 - level check
// slot 2 is a level
// slot 3 is destination if you're at least that level
// slot 4 is destination if not.
// 21 - special: change attribute named in slot 2
// to equal attribute named in slot 3
// destination is slot 4
// (used in forest well encounter)
// 22 - special: becomes shell check, against random no (1-99)
// slot 2 is empty
// slot 3 is destination if make it
// slot 4 is destination if don't
// 23 - special: change profession randomly
// (from the Well of New Life)
// slot 2 is destination
// 24 - special: change profession to 0 (clown)
// (from meeting clowns)
// slot 2 is destination
// 25 - winning end. The same as 0 except your attributes are shown.


//$switch - printing variable to control whether to print $line:
// 0 - last thing printed was black text.
// 1 - last thing printed was red information.

$switch=0;

//main array

$paras=array (

'Oops'=> array ("Suddenly, the god of unfinished things appears.<br><br><b>'SORRY!'</b> he says.<br><br>'You've reached a section that hasn't been written yet. Age of Fable is unfinished and under construction, and because it's free I can't give it as much time as I'd like to. However it's updated pretty frequently, so please check back later, or go back and choose another option. For now, I'm sending you back to Karrakara.'",13,271),

// Cstart: courtesan start
'Cstart'=> array ("<img style=\"border:0px\" src=\"http://www.apolitical.info/webgame/images/illuminatedy.jpg\" align=\"left\" alt=\"Y\">ou've spent years climbing up from the gutter, only to find yourself unable to bear your Lord any longer.",4,3,"Snowaltc","200altc","200wreckaltc"),

// Ftstart: fortune-teller start
'Ftstart'=> array ("no text",4,3,"Ftstart1","Ftstart1","200wreck"),
'Ftstart1'=> array ("<img style=\"border:0px\" src=\"http://www.apolitical.info/webgame/images/illuminatedy.jpg\" align=\"left\" alt=\"Y\">ou've spent years as a successful fortune-teller, and yet you make a beginner's mistake. You tell someone what you think will happen, rather than what they want to hear.",4,2,"Snowalt","200alt"),

// Fstart: fairy start
'Fstart'=> array ("<img style=\"border:0px\" src=\"http://www.apolitical.info/webgame/images/illuminatedy.jpg\" align=\"left\" alt=\"Y\">our crimes are so grave that you're cast out of Faerie. You're banished to Karrakara; the greatest city in the world, and the centre of all that is worldly. Your wings are clipped, your blessings almost gone, and you are condemned to time and death. You vow that you'll find your way back.",13,271),

// Pstart: possible pirate start
'Pstart'=> array ("<img style=\"border:0px\" src=\"http://www.apolitical.info/webgame/images/illuminatedy.jpg\" align=\"left\" alt=\"Y\">ou're surprised to find that the rest of the crew thinks 'The Saucy Minnow' is a fine name for a ship. You're cast adrift on a raft in the open sea. They leave you only some hard bread, your WEAPONNAME, a pipe and some tobacco. You also manage to hide a few shells, the islands' most widely-used currency. You have a vague idea that the great city of Karrakara is fairly close.",13,"Islandhub"),

// Dstart, Tstart, Faunstart, Rstart: dwarf, troll, faun and sometimes scoundrel start

'Dstart'=> array ("<img style=\"border:0px\" src=\"http://www.apolitical.info/webgame/images/illuminatedy.jpg\" align=\"left\" alt=\"Y\">ou've grown tired of forging swords for others to use. You make a WEAPONNAME for yourself - and, having committed the hanging crime of using the communal forge for your own ends, decide to commit another by stealing a bagful of cowrie shells, the most common form of currency, from your clan's treasury. You leave the mountain you've known all your life and set out through the forest for the city to which all thieves go, Karrakara.",13,300),
'Faunstart1'=> array ("<img style=\"border:0px\" src=\"http://www.apolitical.info/webgame/images/illuminatedy.jpg\" align=\"left\" alt=\"Y\">ou never thought you'd use the phrase 'sick of nymphs'; but indeed you are. You set out for the centre of all vice, the great city of Karrakara.",1,"Faunstart"),
'Faunstart'=> array ("You have no cowrie-shells, the islands' most common currency. But you suppose people will give them to you for being so handsome, so you make yourself a coin-purse.",13,300),
'Rstart'=> array ("<img style=\"border:0px\" src=\"http://www.apolitical.info/webgame/images/illuminatedy.jpg\" align=\"left\" alt=\"Y\">ou've been given the option of having the skin flogged off your back, or leaving town by sunset. You put on your best outfit and head into the forest, bound for the city which you always said you'd head for one day, Karrakara. Your purse is full of cowrie shells, the islands' most common currency, each one ill-gotten.",13,300),
'Tstart'=> array ("<img style=\"border:0px\" src=\"http://www.apolitical.info/webgame/images/illuminatedy.jpg\" align=\"left\" alt=\"Y\">ou're finally old enough to leave your home cave and make your way in the world. Your mother tearfully gives you a purse full of cowrie shells, the islands' most common currency. You kiss her goodbye and lumber off through the forest, headed for the great city of Karrakara.",13,300),

//Astart: assassins
'Astart'=> array ("no text",3,"Heroism",13,200,"Astart1"),
'Astart1'=> array ("<img style=\"border:0px\" src=\"http://www.apolitical.info/webgame/images/illuminatedy.jpg\" align=\"left\" alt=\"Y\">ou've killed many people and felt nothing. But for some reason you can't stop thinking about the way the man looked at you, just before his eyes glazed over. You know that a dead man's eyes don't really show an image of the last thing he saw, but you keep wondering, what if it did? When you start to plan to dig up the body, you realise that you have lost control. Taking only a few cowrie shells, the islands' most common currency, you leave your home city and buy a berth on a ship headed for Karrakara. If there are no answers in the great city, there are no answers anywhere.",10,20,"Astart2"),
'Astart2'=> array ("no text",8,40,1,"Astart3"),
'Astart3'=> array ("no text",4,2,"Astart3a","Astart3b"),
'Astart3a'=> array ("no text",13,271),
'Astart3b'=> array ("Alas, for once you are in the midst of death without being the cause of it. The ship is wrecked, and it seems that only you survive.",13,211),

//Catstart: talking cats
'Catstart'=> array ("no text",4,5,"Rstart","Rstart","200main","Snow","200wreck"),
// change this if add more options to normal start.

// 1-26: dwarves. Leads to 299.

1=> array ("You creep forward as quietly as you can. The light turns out to be a campfire. Three dwarves are sitting around the fire. They are bemoaning the fact that they don't have a hammer. One claims that if he had a hammer, he'd hammer in the morning. Another disagrees, and says that he'd hammer in the evening, all over this land.",16,9,"1a","1b"),
'1a'=> array ("In the half-light of the campfire, you can't see whether or not they're members of a clan hostile to your own - or worse yet, of your own clan.",1,"1b"),
'1b'=> array ("no text",2,4,"Attack the dwarves",23,"Announce yourself",3,"Try to steal something",4,"Leave",5),
2=> array ("You leap out of the dark with a cry.",1,12),
3=> array ("You step out the darkness and greet the dwarves with open palm.",16,9,"3a","3b"),
'3a'=> array ("no text",3,"Luck",15,"3c","3d"),
'3b'=> array ("They nod in acknowledgment and gesture for you to sit down. They share their bitter tea with you, but your lack of strong opinions on hammering means they mainly talk among themselves. Eventually they settle down to sleep.",2,3,"Settle down to sleep also",15,"Stay awake in case they make a hostile move",16,"Wait until they're asleep and try and steal something from their bag",26),
'3c'=> array ("You see that they're not from any nearby clan, and thus there's no danger of any feud.",1,"3b"),
'3d'=> array ("You see that they're members of a nearby clan, hostile to your own. Alas, if you told them you were outcast they'd be even more likely to kill you.",1,12),
4=> array ("no text",12,2,20,"Scouting","Roguery",11,14,13),
5=> array ("You decide to leave well enough alone, and move off into the dark",1,8),
6=> array ("You could probably defeat one of the dwarves, but you soon realise you have no chance against them as a group. You take several flesh wounds before beating a retreat into the darkness.",9,"Stamina",-3,8),
7=> array ("You're no match for one of the dwarves, let alone three. Within minutes you have taken several flesh wounds. You beg for mercy. The dwarves kick you a few times, and then let you run into the darkness.",9,"Stamina",-6,8),
8=> array ("no text",3,"Scouting",20,21,22),
9=> array ("In the morning the dwarves share breakfast with you.",9,"Stamina",2,"9a"),
'9a'=> array ("no text",8,6,1,24),
10=> array ("no text",1,299),
11=> array ("You carefully circle around the dwarves' campfire. You are about to grab one of their packs when you hear the snap of a branch under your feet.",1,25),
12=> array ("no text",5,19,"12rod","12main"),
'12rod'=> array ("'Let me show you my staff - it's the biggest you've seen!' you cry.",3,"Luck",15,"12rods","12rodf"),
'12rods'=> array ("The dwarves roll around on the ground, occassionally managing to gasp <i>big staff!</i>, as you grab a bag and run into the night.",1,"13a"),
'12rodf'=> array ("Sadly, due to a difference in dialect the dwarves misunderstand you. 'How dare you insult my hammer! My hammer is both practical and attractive!' they cry, incoherent with rage.",1,7),
'12main'=> array ("The dwarves quickly grab their weapons and fan out, attacking you from three sides.<br><br>One utters a traditional Dwarvish prayer to his hammer: 'please hammer, do hurt em.'",3,"Duelling",20,6,7),
13=> array ("You circle around the dwarves' campfire.You carefully reach down, and slowly and gently remove the nearest bag. The dwarves are engrossed in their hammer-time debate and do not notice you.",1,"13a"),
'13a'=> array ("You move some way into the forest before opening it. It contains a loaf of dwarf bread, which makes you realise you're starving. You wolf it down, then turn your attention back to the bag.",5,3,"13shells","13med"),
'13med'=> array ("You also find a finely-wrought medallion.",7,3,1,"13sleep"),
'13shells'=> array ("There are a few shells, but otherwise the bag is empty.",10,5,"13sleep"),
'13sleep'=> array ("You settle down at the base of a tree for a fitful sleep. Next morning you continue your journey.",1,299),
14=> array ("You carefully circle around the dwarves' campfire. You reach down to grab one of their packs, and hear one of them say 'you know we can see in the dark don't you?'",1,25),
15=> array ("no text",9,"Stamina",2,9),
16=> array ("You try and keep one eye open in case the dwarves try anything. You aren't sure whether you manage to stay awake all night, but nothing happens.",1,9),
17=> array ("no text",3,"Luck",15,18,19),
18=> array ("You wait until their breathing becomes regular, then carefully reach down, and slowly and gently pick up the nearest bag.",1,"13a"),
19=> array ("You wait until their breathing becomes regular, then carefully reach down for the nearest bag. A voice from behind you says 'I knew you were up to something'",1,12),
20=> array ("no text",9,"Heroism",-2,299),
21=> array ("You're able to find a cave, make a fire, and settle down for the night.",13,301),
22=> array ("In the forest with no food or means to make a fire, you spend a miserable night with your back to a tree, one eye open and WEAPONNAME at the ready.",9,"Stamina",-3,10),
23=> array ("no text",8,7,1,2),
24=> array ("no text",6,65,"24a","24i"),
'24i'=> array ("no text",6,136,"24c","24b"),
'24a'=> array ("They point you in what they say is the quickest way out of the forest.",1,"Findroad"),
'24b'=> array ("They bid you farewell and you continue your journey.",1,299),
'24c'=> array ("They point you in what they say is the quickest way out of the forest.",1,"Overhill0"),
25=> array ("no text",8,7,1,12),
26=> array ("no text",8,7,1,17),

//30- : docking your boat at Karrakara -
30=> array ("The docks at Karrakara have ships from all over the known world, and sometimes beyond.",1,31),
31=> array ("The dockmistress tells you that the fee to dock here is four shells. You protest at this outrageous sum, and she tells you that this allows you to leave your boat here indefinitely. It occurs to you that you could sail to the swamps outside the city and find a deserted spot to hide your boat.",11,4,32,33),
32=> array ("no text",2,3,"Pay the fee",34,"Haggle",35,"Hide your boat in the swamp",36),
33=> array ("no text",2,2,"Haggle",35,"Hide your boat in the swamp",36),
34=> array ("You reluctantly hand over the shells and custody of your boat, and head into town.",10,-4,37),
35=> array ("no text",4,3,"35a","35b","35c"),
'35a'=> array ("no text",12,2,18,"Charisma","Streetwise",38,39,41),
'35b'=> array ("no text",12,2,18,"Seafaring","Streetwise",38,39,41),
'35c'=> array ("no text",12,2,18,"Charisma","Seafaring",38,39,41),
36=> array ("You sail to the swamps outside of Karrakara. Once you've found a sufficiently out-of-the-way spot, you secure your boat as best you can. The walk back is slow and unpleasant, but you forget your discomfort once you're back in the great city.",8,31,1,"36b"),
'36b'=> array ("no text",8,46,1,37),
37=> array ("no text",13,271),
38=> array ("Your negotiation quickly turns into an argument, which quickly turns into a shouting match. In the end the dockmistress refuses to have anything to do with you.",1,36),
39=> array ("She is unmoved by your skilful appeals to both reason and pity.",11,4,40,36),
40=> array ("no text",2,2,"Hand over the shells",34,"Hide your boat in the swamps",36),
41=> array ("no text",11,2,42,43),
42=> array ("Lowering her voice, the dockmistress tells you that she can charge you only two shells.",2,2,"Pay her",44,"Hide your boat in the swamps",36),
43=> array ("Lowering her voice, the dockmistress tells you that she can charge you only two shells. Since you don't even have that, and you can see you won't get a better price, you leave the dock.",1,36),
44=> array ("You reluctantly hand over the shells and custody of your boat, and head into town.",10,-2,37),

//50-67 : meet the Frog (leads to 299/301 if you're still human, or 69 if a frog)

50=> array ("no text",8,3,1,51),
51=> array ("You are passing by a pond when you hear a voice say 'excuse me'. You look down and see a frog wearing a small crown. The frog introduces itself as Owyth. It tells you it's really a human and has been cursed to stay as a frog until someone kisses it. It asks you to kiss it.",2,3,"Kiss the frog",52,"Ignore it and pass on",53,"Cast a spell to reveal what you should do.",54),
52=> array ("no text",6,2,"52h","52n"),
'52n'=> array ("no text",9,"Heroism",2,"52a"),
'52h'=> array ("no text",9,"Heroism",4,"52a"),
'52a'=> array ("no text",3,"Stamina",20,"52s",67),
'52s'=> array ("You feel a terrible force take hold of you. Your body twists like you were wet clothes wrung out by giant hands. But after a few minutes you fight it off. The frog hasn't changed, except that it now has a guilty look on its face.<br><br>It confesses that kissing it was supposed to turn it back into a human, but that you were supposed to turn into a frog.",2,2,"Offer to take it with you",64,"Leave it","52sl"),
'52sl'=> array ("You leave the pond.",1,301),
53=> array ("You decide not to get involved. You leave the pond, followed by a tirade of abuse from the frog.",9,"Heroism",-1,68),
54=> array ("no text",12,2,18,"Magic","Magic",59,58,57),
// was a 55 and a 56 but changed it.
57=> array ("The spell tells you that the frog really is a human that has been changed by magic. It tells you that if you kiss the frog it will turn back into a human; however, you'll turn into a frog.",2,3,"Kill the frog for trying to trap you",62,"Leave it",63,"Offer to take it with you",64),
58=> array ("The spell tells you that the frog really is a human that has been changed by magic. However it also tells you that the frog isn't entirely telling the truth.",8,2,1,"58c"),
'58c'=> array ("no text",2,3,"Kiss the frog","52h","Leave",61,"Try casting a spell again",54),
59=> array ("The curse, if there is one, is far more powerful than your magic.",1,60),
60=> array ("no text",2,3,"Kiss the frog",52,"Ignore it and pass on",53,"Try casting a spell again",54),
61=> array ("You decide not to help someone who isn't telling you the truth. You leave the pond, followed by a tirade of abuse from the frog.",1,68),
62=> array ("no text",3,"Brawling",15,65,66),
63=> array ("You tell the frog that you should never try and trick a wizard. You leave the pond.",1,68),
64=> array ("You offer to take the frog with you to try and find some way of breaking the curse without inflicting it on anyone else. The frog claims to be sorry for trying to trick you, and grateful for your help. You put it, or him, in your backpack and leave the pond.",7,4,1,299),
65=> array ("You grab hold of the frog and try to wring its neck. However the frog is supernaturally resilient: presumably there is no point cursing someone if they can't stay alive to suffer. You throw the frog aside and leave the pond, followed by a tirade of abuse.",1,299),
66=> array ("You try and grab the frog, but it is surprisingly agile. It manages to leap keep out of your grasp. You lean over to grab it, and the frog takes the opportunity to leap at your face - or more specifically, your lips.",1,67),
67=> array ("The frog begins to change as soon as your lips touch it. Soon it has transformed into a middle-aged man. Equally quickly, you shrink and deform into the shape of a frog. You find that you are wearing the frog's crown, and all your equipment has been changed into a small, frog-sized version of itself. The man leaves, followed by a tirade of abuse from you.",16,14,"67demi","67a"),
'67a'=> array ("no text",16,13,"67demi","67b"),
'67b'=> array ("no text",16,8,"67demi","67c"),
'67c'=> array ("no text",16,9,"67demi","67d"),
'67d'=> array ("no text",16,18,"67demi","67e"),
'67e'=> array ("no text",16,1,"67demi",69),
'67demi'=> array ("You'd heard that some humans were good. In fury and desperation you realise that this must be untrue.",9,"Heroism",-2,69),
68=> array ("no text",13,301),

//69-98 : being a frog
69=> array ("no text",5,2,"69cloak","69b"),
'69cloak'=> array ("Your goblin cloak, while well-tailored, doesn't stand up at all to stretching.",7,2,0,"69cloaka"),
'69cloaka'=> array ("no text",9,"Scouting",-3,"69b"),
'69b'=> array ("no text",5,20,"69neck","69c"),
'69neck'=> array ("The neckweasel tries valiantly to stay wrapped around your tiny neck, but soon realises that it'll smother you, and slinks sadly into the undergrowth.",7,20,0,"69necka"),
'69necka'=> array ("no text",9,"Charisma",-2,"69c"),
'69c'=> array ("no text",5,28,"69cpr","69cc"),
'69cpr'=> array ("Princess Yasmina declares that turning into a frog is just <i>typical</i> of you, and stomps off into the forest.",7,28,0,"69cc"),
// she'll be removed anyway, but not if the cat kills you first.
'69cc'=> array ("no text",5,22,"69cat","69d"),
'69cat'=> array ("Piteous Mew miaows, but you find you can understand him.",12,4,21,"Charisma","Luck","Scouting","Streetwise","69catff","69catff","69catfs","69catss","69catss"),
'69catff'=> array ("'Your role has ever been to provide me with food, and there is only one way you can do that.' His jaws close around your neck.",0),
'69catfs'=> array ("'You have been a reasonable servant, but in this form you can be of no further use to me.' He turns and pads into the forest.",7,22,0,"69catfs1"),
'69catfs1'=> array ("no text",9,"Charisma",-2,"69d"),
'69catss'=> array ("'You have been a good servant, and so I shall give you some time to make up for this lapse in your ability to provide me with food.'",1,"69d"),
'69d'=> array ("no text",5,23,"69raven","69main"),
'69raven'=> array ("The raven chatters on at you, apparently oblivious to your changed form.",1,"69main"),
'69main'=> array ("no text",18,"69a"),
'69a'=> array ("no text",8,4,1,70),
70=> array ("no text",2,3,"Wait and hope to trick someone into kissing you",72,"Cast a spell to change yourself back",78,"Leave the pond looking for someone to help you",74),
// 71 edited out.
72=> array ("no text",3,"Luck",10,75,76),
73=> array ("no text",3,"Magic",25,81,83),
74=> array ("no text",9,"Heroism",2,79),
75=> array ("no text",8,9,1,84),
76=> array ("You wait for a long time. You aren't sure how long; your sense of time seems to have changed along with your body. But it seems obvious to you that no one will come.",2,3,"Cast a spell to change yourself back",73,"Leave the pond looking for help",74,"Wait a bit longer",80),
77=> array ("You're too exhausted to act or think. You realise you must take some time to recover. You aren't sure how long you wait, but it isn't completely unpleasant. After several days you find that you can enjoy the taste of insects, and that your frog body feels normal to you.",1,86),
78=> array ("no text",8,12,1,73),
79=> array ("no text",8,10,1,85),
80=> array ("You settle down to wait and see what else comes along. You aren't sure how long you wait, but it isn't completely unpleasant. After several days you find that you can enjoy the taste of insects, and that your frog body feels normal to you.",1,86),
81=> array ("The curse is strong, but your magic is stronger. You're eventually able to break through.",16,18,"81liz","81not"),
'81liz'=> array ("With the last of its strength, the spell speaks to you. 'I'm supposed to curse you by turning your hands green and webbed. But that seems pretty pointless in your case, so I'm going just going to let you off.' With that, it departs for its home in the nether-world.",1,89),
'81not'=> array ("But it leaves its mark on you. Your hands are stunted, with webbing between the fingers. You practice with your WEAPONNAME and find that at least they don't seem to work any less well.",9,"Charisma",-4,89),
82=> array ("no text",6,12,87,93),
83=> array ("The curse is too powerful for your magic.",1,77),
84=> array ("You don't have to wait long before a forest elf wanders by the pond. You call her over.",2,2,"Try and trick her",97,"Tell her the truth",90),
85=> array ("You hop through the forest. You find your mind wandering from looking for help to looking for water. After some time, you see a swamp and head towards it. A troll steps from behind a tree. He moves towards you.",16,14,"85troll","85not"),
'85not'=> array ("no text",16,9,"85dwarf","85main"),
'85main'=> array ("no text",2,2,"See what he wants",123,"Flee",96),
'85troll'=> array ("You tell him that you're really a troll. He tells you that he can help you, and carries you back to his cave.",13,130),
'85dwarf'=> array ("no text",3,"Streetwise",13,"85main","85die"),
'85die'=> array ("At the sight of your hereditary enemy, you lose all control. You croak a tiny battle-cry, and hop valiantly into battle with the enormous troll. The outcome is sadly predictable.",0),
86=> array ("no text",6,10,82,91),
87=> array ("no text",5,18,"87drum","87main0"),
'87drum'=> array ("You remember the drum that Prince Dimitri gave you, which has shrunk to frog-size. You pat it as best you can with your tiny webbed feet. It barely makes a noise. However, as soon as you look up, you see Prince Dimitri grinning down at you. He begins to cast a spell, and soon you feel your bones beginning to twist and grow. Soon you're back to normal. Prince Dimitri takes the drum from you, breezily tells you that you're now even, and vaguely points out the direction you should go before he disappears into the forest.",7,18,0,89),
'87main0'=> array ("no text",16,18,"87liz","87main"),
'87liz'=> array ("In your head, you hear the spell talking to you. 'Look - the whole point of this spell is changing you into something alien to yourself. But you're already green and inhuman. It doesn't have any symmetry or poetic justice to it. I'm going to just take a bit of your magic and change you back.' With that, you realise that you've turned back into your normal form.",9,"Magic",-4,89),
'87main'=> array ("Thinking clearly seems harder and harder, and catching flies seems more and more important and complicated. Sometimes you have moments of clarity, and then you feel pure despair. But you are never able to find your way out of the prison that your body has become.",0),
// 88 edited out.
89=> array ("no text",5,5,"Frogend","89crown"),
'89crown'=> array ("You notice the crown has transformed into a human-sized crown. You take it with you.",7,5,1,"Frogend"),
90=> array ("no text",9,"Heroism",2,94),
91=> array ("You realise that if you stay here much longer, you'll lose your self altogether. You set out looking for someone to help you.",1,79),
// 92 edited out.
93=> array ("You realise that you have no option but to try and use magic to break the curse.",1,78),
94=> array ("You tell the elf the truth about your curse.",3,"Heroism",16,95,124),
95=> array ("She tells you to wait, and disappears into the forest. You are close to giving up when she returns with her hands full of several different plants. She begins a monotonous chant, while scattering the herbs around and over you. You feel your bones twisting and bending. Your fear gives way to relief as you gradually start to return to human form. After several hours you are in your own body again. The crown has withered away to nothing. You thank the elf, and set off in what you hope is the right direction.",1,"Frogend"),
96=> array ("You turn around and hop back to 'your' pond as quickly as you can. The troll does not pursue you.",6,9,82,98),
97=> array ("You tell the elf that she should kiss you to break the curse. Her face tells you nothing of whether she believes you or not.",3,"Charisma",15,125,126),
98=> array ("no text",3,"Luck",10,75,82),

'Frogend'=> array ("no text",6,288,"Frogend1",299),
'Frogend1'=> array ("no text",8,288,0,"Frogend2"),
'Frogend2'=> array ("no text",2,2,"Try and find the Well again",301,"Go back to Karrakara","Frogend3"),
'Frogend3'=> array ("no text",8,286,0,"Frogend4"),
'Frogend4'=> array ("no text",8,289,1,301),

//99-122 : Slugs (leads to 299/301)

99=> array ("no text",8,8,1,100),
100=> array ("You enter a clearing, and see a warrior lying on the forest floor. She is unconscious or dead. Three Giant Slugs surround her.",2,5,"Attack the slugs",101,"See if you can wake her",102,"Try and attract the slugs attention away from her",103,"Cast a spell to reveal what you should do",104,"Leave her to her fate",105),
101=> array ("You raise your WEAPONNAME and strike at one of the Slugs. It has no obvious effect on the Slug. However the warrior suddenly sits up and says 'what're you doing?'",3,"Charisma",25,109,108),
102=> array ("You tentatively approach the warrior. The slugs are either unaware of you, or ignore you. However before you can tell whether the warrior is alive or dead, her eyes flick open and she says in a sleepy voice 'who are you?'",3,"Charisma",15,109,108),
103=> array ("You start shouting and capering, trying to attact the attention of the Giant Slugs, although you aren't sure what senses they actually use.",3,"Luck",20,106,107),
104=> array ("no text",3,"Magic",15,110,111),
105=> array ("You aren't going to risk your life to save someone who might already be dead. You retreat from the clearing. The slugs are either unaware of you or choose to ignore you.",9,"Heroism",-2,122),
106=> array ("The slugs are either unaware of you, or ignore you. However the warrior stirs says in a sleepy voice 'what're you doing?'",3,"Charisma",10,109,108),
107=> array ("However they are either unaware of you, or ignore you. You decide to try something else.",2,4,"Attack the slugs",101,"See if you can wake her",102,"Try and cast a spell",104,"Leave her to her fate",105),
108=> array ("The warrior mutters 'get back Slimey' to the Slug which you now see she was using as a fairly disgusting pillow. She stands up with sword drawn and asks you what you want. Despite her fine sword and armour she has a peasant's accent. You explain that you thought she was under attack. She shakes her head as if she's heard that one before, and moves to attack you.",2,2,"Flee",118,"Attack her",117),
109=> array ("The warrior mutters 'get back Slimey' to the Slug which you now see she was using as a fairly disgusting pillow. She stands up with sword drawn and asks you what you want. Despite her fine sword and armour she has a peasant's accent. The three Slugs also seem to be watching you. You explain that you thought she was under attack. While she makes no move to attack you, she remains on guard and obviously doesn't believe you.",2,2,"Apologise and retreat",116,"Attack her",117),
110=> array ("no text",3,"Magic",25,112,113),
111=> array ("The magic is beyond your abilities.",1,114),
112=> array ("The spell gives you the ability to sense the warrior's life-force, revealing to you that she is not dead or incapacitated, but merely asleep. It also shows you that the Slugs are standing on guard, not attacking her. You realise that you could easily have created a dangerous situation out of nothing. Without waking the warrior, you leave the clearing.",1,122),
113=> array ("The spell gives you the ability to sense the warrior's life-force, revealing to you that she is alive.",2,5,"Attack the slugs",101,"See if you can wake her",102,"Try and attract the slugs attention away from her",103,"Try casting a spell again",104,"Leave her to her fate",115),
114=> array ("You decide to try something else.",2,4,"Attack the slugs",101,"See if you can wake her",102,"Try and attract the slugs attention away from her",103,"Leave her to her fate",105),
115=> array ("You decide you've done your best, and abandon the warrior. The slugs are either unaware of you or ignore you.",9,"Heroism",-4,299),
116=> array ("You back out of the clearing, bowing and apologising. She does not relax her guard, but nor does she pursue you.",1,299),
117=> array ("no text",5,19,"117rod","117main"),
'117rod'=> array ("You shout 'Behold the enormous rod that I hold in my hand!' and leave the clearing to the sound of her hysterical guffaws.",1,299),
'117main'=> array ("no text",3,"Duelling",15,119,120),
118=> array ("You raise your WEAPONNAME as if to meet her attack, then turn and bolt out of the clearing as fast as you can. You head blindly through the forest for several minutes. You think you've gotten away scot free. However, when you stop to catch your breath you feel a stinging in your shoulder. She has hit you with some kind of dart.",6,47,"118a","118b"),
'118a'=> array ("no text",9,"Stamina",-3,299),
'118b'=> array ("It's raised a large red welt, but doesn't seem to have done any other damage.",8,47,1,299),
119=> array ("Her fighting technique shows far less evidence of training than you would have expected from her obviously expensive equipment. You are able to get the better of her. You notice that the Slugs do not take any role in the fight. Presumably their role is to warn her. You make as if to deliver a killing blow, then say 'I told you I was trying to help you', and run out of the clearing before she can recover. When you stop to catch your breath, you reflect that you'll be less likely to try and help someone next time.",9,"Heroism",-1,299),
120=> array ("You meet the warrior's attack. Her fighting technique seems slow and clumsy. Yet when you seperate you realise that she has cut you several times and you haven't made a mark.",9,"Stamina",-3,121),
121=> array ("no text",2,2,"Continue fighting",117,"Flee",118),
122=> array ("no text",13,301),

//123-131 : overflow from 'being a frog' encounter 69-98
123=> array ("The troll slowly walks over to you and bends down. Then, with a lightning-quick movement he grabs you. He holds you gently in his huge hands, but escape is impossible. You can see nothing, but the background noise of the forest suddenly drops and you seem to be indoors. Then, for a moment, his grip relaxes and you have enough space to leap free.",2,2,"Escape",128,"Wait",129),
124=> array ("The elf studies you for a while, then speaks in a clear, emotionless voice. 'You can do less harm this way.' Without a word, she stands and disappears back into the forest. You feel an overwhelming sense of despair. This form seems a fitting punishment for you, and for a moment you are unsure whether you ever really were human.",1,86),
125=> array ("no text",8,11,1,127),
126=> array ("Without a word, the elf stands and disappears back into the forest. Your sense of failure is equalled only by your sense of self-loathing.",1,86),
127=> array ("The elf obviously lacks the wisdom attributed to her kin. She leans forward and kisses what in other circumstances would be your forehead. The transformation is far easier to watch when you are playing the opposite role. You feel nothing but joy - although you know that the guilt will come later. You continue your journey.",1,"Frogend"),
128=> array ("You leap free and hop out the door. The troll gives an animal howl but doesn't come after you. Despite not having seen the route you travelled, some extra sense tells you the way back to 'your' pond.",6,9,82,98),
129=> array ("no text",3,"Luck",18,130,131),
130=> array ("The troll puts you down on the dirt floor of his lair. He sits cross-legged next to you and starts rocking back and forth, howling and grunting in a chant-like rhythm. You feel your bones twisting and bending. Your fear gives way to relief as you gradually start to return to your normal form. After several hours you are in your own body again. All your equipment returns to normal along with you. The crown has withered away to nothing. You try to thank the troll, but once he has worked his magic he seems to have reverted to an entirely animal state. Indeed he begins to snarl and hiss threateningly at you. You leave his lair and continue on your way.",1,"Frogend"),
131=> array ("You hear what sounds like another troll. It sounds like they and 'your' troll are having a conversation. You are passed from one pair of hands to another. The new pair of hands is rough and damp, covered in a ridge of callouses. You suddenly realise they're teeth, and that you aren't being held in a pair of hands at all. But a split second later this is demonstrated to you practically anyway.",0),
//140- : in Karrakara, don't need money.
140=> array ("no text",4,8,"Karraglad","Karrashell","Karrashell","Karrashell","Karrashell","Karrashell","Karrashell","Karrashell"),
'Karraglad'=> array ("no text",6,26,"Gladiator","Karraglad1"),
'Karraglad1'=> array ("no text",6,25,"Gladconsider","Karrashell"),
'Karrashell'=> array ("no text",4,4,"Karrashellmain","Karrashellmain","Karrashellmain","Karrashell0"),
'Karrashell0'=> array ("no text",4,6,"Karrashelldior","Karrashelldh","Karrashellowe","Karrashellps","Karrahshell1","Karrashellfreud"),
'Karrahshell1'=> array ("no text",6,213,"Karrashellmain","Karrashell2"),
'Karrashell2'=> array ("You decide to eat at a new food court. However you leave when your sandwich is found guilty of treason.",8,213,1,"Karraowyth"),
'Karrashellfreud'=> array ("no text",6,249,"Karrashellmain","Karrashellfr1"),
'Karrashellfr1'=> array ("Your food tastes extra-delicious. The waiter explains that it's been deep-Freud. This makes it taste just like Mother used to make.",8,249,1,"Karrashellps2"),
'Karrashelldior'=> array ("no text",6,307,"Karrashellmain","Karrashelldior2"),
'Karrashelldior2'=> array ("A nearby cafe has become fashionable, and is patronised by the wealthy and famous. You see the famous fashion designer, Spider-Cultist Dior.",8,307,1,"Karrashellps2"),
'Karrashellowe'=> array ("no text",6,256,"Karrashellmain","Karrashellowe1"),
'Karrashellowe1'=> array ("A well-known holy sage has closed his monastery and opened a sandwich shop. He promises to make you one with everything.<br><br>He also asks if you want some infini-tea. But you decline. You've heard it takes forever to make.",8,256,1,"Karrashellps2"),
'Karrashellps'=> array ("no text",6,242,"Karrashellmain","Karrashellps1"),
'Karrashellps1'=> array ("You visit a cafe that promises 'food like Great-Great-Great-Great-Great-Great-Grandmother used to make', and enjoy a bowl of primordial soup.",8,242,1,"Karrashellps2"),
'Karrashellps2'=> array ("no text",10,-1,"Karraowyth"),
'Karrashelldh'=> array ("no text",6,260,"Karrashellmain","Karrashelldh1"),
'Karrashelldh1'=> array ("You visit a new restaurant, owned by the noted actor and hideous mutant Dustin Half-Man.",8,260,1,"Karrashellps2"),
'Karrashellmain'=> array ("You spend a shell on a meal and a room.",10,-1,"Karraowyth"),
// if put anything else before Karrashell, because 'Gladconsider'
// goes to Karrashell if you decide not to go, change 'Gladconsider'
// ditto 'Gladiator8a' etc.

'Karraowyth'=> array ("no text",6,304,"Karraowythmain","Karraowythc0"),
'Karraowythc0'=> array ("no text",6,273,"Karraowythc1","Karraowythmain"),
'Karraowythc1'=> array ("no text",6,284,"Karraowythmain","Karraowythc2"),
'Karraowythc2'=> array ("no text",6,285,"Karraowythmain","Karraowythc3"),
'Karraowythc3'=> array ("no text",4,6,"Karraowythmain","Karraowythmain","Karraowythmain","Karraowythmain","Karraowythmain","Karraowythc4"),
'Karraowythc4'=> array ("no text",16,15,"Karraowythcc","Karraowythc5"),
'Karraowythc5'=> array ("no text",16,3,"Karraowythcs","Karraowythc6"),
'Karraowythc6'=> array ("no text",16,16,"Karraowythcf","Karraowythc7"),
'Karraowythc7'=> array ("no text",16,9,"Karraowythcd","Karraowythc8"),
'Karraowythc8'=> array ("no text",16,11,"Karraowythca","Karraowythc9"),
'Karraowythc9'=> array ("no text",16,7,"Karraowythcp","Karraowythc10"),
'Karraowythc10'=> array ("no text",16,1,"Karraowythcs","Karraowythc11"),
'Karraowythc11'=> array ("no text",16,20,"Karraowythcar","Karraowythmain"),
'Karraowythcc'=> array ("The porter of your flophouse idly mentions that some men were asking after you a while back. You ask for a description. To your horror you recognise them - senior retainers of your former lord. You realise he's traced you to Karrakara, and has no intention of letting you go.",1,"Karraowythcch"),
'Karraowythcs'=> array ("The porter of your flophouse idly mentions that some men were asking after you a while back. You ask for a description. To your horror you recognise them - senior retainers of an aristocrat you defrauded some time ago. You realise she's traced you to Karrakara, and must intend revenge.",1,"Karraowythcch"),
'Karraowythcf'=> array ("The porter of your flophouse idly mentions that some men were asking after you a while back. You ask for a description. To your horror you recognise them - senior retainers of the very aristocrat who you foolishly gave an honest prophecy. No doubt your prophecy came true and, in the manner of the wealthy and powerful, he's convinced himself it was your fault.",1,"Karraowythcch"),
'Karraowythcd'=> array ("The porter of your flophouse idly mentions that some dwarves were asking after you a while back. You ask for a more detailed description. To your horror you recognise them - members of your former clan. They've traced you to Karrakara, and seek to mete out punishment for your crime.",1,"Karraowythcch"),
'Karraowythca'=> array ("The porter of your flophouse idly mentions that some men were asking after you a while back. You ask for a description. To your horror you recognise them - senior retainers of an aristocratic family, one of whom you murdered years ago. You realise they've tracked you to Karrakara, and must intend revenge.",1,"Karraowythcch"),
'Karraowythcar'=> array ("The porter of your flophouse idly mentions that some men were asking after you a while back. You ask for a description. To your horror you recognise them - senior retainers of your family. You realise they've tracked you to Karrakara, and must intend to erase the shame of your quarrel with them, by killing you.",1,"Karraowythcch"),
'Karraowythcp'=> array ("The porter of your flophouse idly mentions that some people were asking after you a while back. You ask for a description. To your horror you recognise them - crew of the Sobbing Molly, a ship you served on years ago, until you stabbed one in a drunken fight and had to leave. They must have tracked you to Karrakara, intending revenge.",1,"Karraowythcch"),
'Karraowythcch'=> array ("no text",8,304,1,"Karraowythcch1"),
'Karraowythcch1'=> array ("no text",2,3,"Flee","Karrac1","Seek help","Karrac2","Try and find them before they find you","Karrac3"),
'Karraowythmain'=> array ("no text",5,14,"Karraowythy","Karraowythn"),
'Karraowythy'=> array ("no text",4,5,"Karraowyth1","Karraowyth1","Karraowyth1","Karraowyth1","Karraowythy1"),
'Karraowythy1'=> array ("Owyth's room is empty, but for a note.",7,14,0,"Karraowythy2"),
'Karraowythy2'=> array ("no text",5,8,"Karraowythbox","Karraowythnobox"),
'Karraowythnobox'=> array ("'My Dear Friend', it reads, 'I thank you again for saving my life. In return, I give you my most precious posession. Years ago, while wandering the empty foothills near Tok, I saw what seemed to be the bastard child of a hut and a giant's suit of armour. I found inside a metal box, festooned all over with unearthly-seeming jewels, which I have never been able to prise from it. Though all agreed it must be of great value, none have been able to tell me what it is - not even the owners, if owners there be, for though I combed the area many times, I never found the hut again.'",7,8,1,"Karraowythnobox1"),
'Karraowythnobox1'=> array ("'No doubt the wise would take this as a sign of the futility and illusion of the adventuring life. Yet I find myself unable to live any other; and, indeed, any way but on my own. And after all, what sign is it that the box survived even my life as a frog? And so I thank you again. Farewell, Owyth.'",1,"Karraowythnobox2"),
'Karraowythnobox2'=> array ("You find the box in your room. Valuable though it may be, you realise it's poor compensation for the loss of your companion.",1,"Karraowythbox2"),
'Karraowythbox'=> array ("no text",5,21,"Karraowythbox0","Karraowythboxa"),
'Karraowythboxa'=> array ("'My Dear Friend', it reads, 'I thank you again for saving my life. In return, I give you my most precious posession. It is the fabled Pearl of Wisdom. It is said that it may be easily broken, and any who do so will find it full of the very stuff of knowledge, which they may drink. It was given to me some time ago, for much the same reasons as I now pass it on to you.",7,21,1,"Karraowythboxb"),
'Karraowythboxb'=> array ("'No doubt this is a condemnation of the adventuring life, that we gain wisdom, and give it away, but make no use of it ourselves. Yet I find myself unable to live any other; and, indeed, any way but on my own. And who will say that passing such a thing on unchanged is worse than destroying it? And so I thank you again. Farewell, Owyth.'",1,"Karraowythboxc"),
'Karraowythboxc'=> array ("You find the Pearl in your room. Valuable though it may be, you realise it's poor compensation for the loss of your companion.",1,"Karraowythbox2"),
'Karraowythbox0'=> array ("'My Dear Friend', it reads, 'I thank you again for saving my life. In return, I give you my entire fortune - some seven shells.'<br><br>'No doubt the wise would take this paltry sum as a sign of the futility of the adventuring life. Yet I find myself unable to live any other; and, indeed, any way but on my own. And after all, who may say that shells are the only measure of worth? Be that as it may, I leave mine with you, and thank you again. Farewell, Owyth.'",1,"Karraowythbox1"),
'Karraowythbox1'=> array ("You find the shells in your room. Owyth's philosophy aside, you're sure that you've received poor compensation for the loss of your companion.",10,7,"Karraowythbox2"),
'Karraowythbox2'=> array ("no text",13,141),
'Karraowyth1'=> array ("no text",4,6,"Karraowyth2","Karraowyth2","Karraowyth3","Karraowyth4","Karraowyth4","Karraowyth4"),
'Karraowyth2'=> array ("Owyth tells you vaguely that he's had some luck, and gives you a couple of shells.",10,2,"Karraowyth4"),
'Karraowyth3'=> array ("You have to pay another shell to feed Owyth.",10,-1,"Karraowyth4"),
'Karraowyth4'=> array ("no text",6,80,141,"Karraowyth5"),
'Karraowyth5'=> array ("no text",4,5,141,141,141,141,"Karraowyth6"),
'Karraowyth6'=> array ("Owyth tells you of his travels in the inland. He says that once he travelled to the edge of a great desert. The people who lived there told him that travellers lost in the desert sometimes met the souls of the dead. The dead would lead the virtuous to safety, but the wicked must travel with them forever.",8,80,1,"Karraowyth7"),
'Karraowyth7'=> array ("no text",13,141),
'Karraowythn'=> array ("no text",5,8,"Karraowythn1","Karraowythno"),
'Karraowythn1'=> array ("no text",4,6,141,141,141,141,141,"Karraowythn2"),
'Karraowythn2'=> array ("You're idly looking at the box from the armoured hut, trying to work out what it is, when it starts talking to you.",1,"Karraowythn3"),
'Karraowythn3'=> array ("'Look' it says in an annoyed voice.<br><br>'You're supposed to go to the island and find the statue of Ozymandias. It's supposed to be obsessing you by now.'",6,272,"Karraowythny","Karraowythnn"),
'Karraowythny'=> array ("You recall the news chanted by the cryer.",13,"Karraowythnn1"),
'Karraowythnn'=> array ("You answer that you don't know what the box is talking about. It sighs and begins to chant.",13,"Karraowythnn0"),
'Karraowythnn0'=> array ("\"I met a traveller from an antique land who said:<br>Two vast and trunkless legs of stone<br>Stand in the desert. Near them on the sand,<br>Half sunk, a shatter'd visage lies, whose frown<br>And wrinkled lip and sneer of cold command<br>Tell that its sculptor well those passions read<br>Which yet survive, stamp'd on these lifeless things,<br>The hand that mock'd them and the heart that fed.<br>And on the pedestal these words appear:<br><i>My name is Ozymandias, king of kings:<br>Look on my works, ye mighty, and despair!</i><br>Nothing beside remains: round the decay<br>Of that colossal wreck, boundless and bare,<br>The lone and level sands stretch far away.\"",13,"Karraowythnn1"),
'Karraowythnn1'=> array ("You are indeed filled with a certain longing to see the desolate scene for yourself.",8,272,1,"Karraowythnn2"),
'Karraowythnn2'=> array ("'OK, fine. I'm going to transport you there now.' You protest, but the box begins to glow with magical energy. At once you find yourself standing on a beach. Looking inland you see two stone pyramids. Beyond that, the island seems to offer nothing but sand. The sun is setting. Too late, you realise the box's true nature. It's a terrible machine of the Ancients: a Plot Device.",7,8,0,"Final"),
'Karraowythno'=> array ("no text",6,273,"Karraowythno1",141),
'Karraowythno1'=> array ("no text",4,6,141,141,141,141,141,"Karraowythno2"),
'Karraowythno2'=> array ("The noise of a crowd brings you into the street. You see a strange sight in the sky. It looks like the result if a hut and a giant suit of armour decided to have a child. As you stare open-mouthed, you hear a whistling sound, which gets louder and louder. Before you realise what's happening, something has hit you on the head.",9,"Stamina",-4,"Karraowythno3"),
'Karraowythno3'=> array ("When you recover, you look at the object. It's a box, set all over with unearthly-seeming jewels. You try to pry them off, without success. Everyone you show it to agrees it must be valuable, but no one can tell you what it is.",7,8,1,"Karraowythno4"),
'Karraowythno4'=> array ("no text",13,141),
'Karrac1'=> array ("no text",6,1,"Karrac1b","Karrac1n"),
'Karrac1b'=> array ("no text",8,295,1,"Karrac1b1"),
'Karrac1b1'=> array ("You prepare to leave Karrakara for the last time.",1,"Karragovshia1"),
'Karrac1n'=> array ("You decide to head for the only place they'll fear to follow you; the desert.",8,296,1,"Karragovshia1"),
'Karrac2'=> array ("no text",6,283,"Karrac2prep","Karrac2a"),
'Karrac2prep'=> array ("no text",6,323,"Karrac2a","Karracpir"),
'Karrac2a'=> array ("no text",6,161,"Karracgov","Karrac2aa"),
'Karrac2aa'=> array ("no text",16,20,"Karrac2ar","Karrac2b"),
'Karrac2ar'=> array ("no text",3,"Streetwise",15,"Karracargov","Karrac2b"),
'Karrac2b'=> array ("no text",6,159,"Karracreb","Karrac2c"),
'Karrac2c'=> array ("no text",6,125,"Karracnl","Karrac2d"),
'Karrac2d'=> array ("no text",5,18,"Karracdrum","Karrac2f"),
'Karracdrum'=> array ("With no one else to help you, you beat the drum of Prince Dimitri. You feel a horrible sensation, as if ghostly tentacles were caressing your heart.",7,18,0,"Karracdrum1"),
'Karracdrum1'=> array ("no text",12,3,20,"Charisma","Magic","Luck","Karracdrumf","Karracdrumf","Karracdrums","Karracdrums"),
'Karracdrumf'=> array ("The drum cracks. You hear the voice of Prince Dimitri, slurred and irritated, as if he'd been woken up.<br><br>'No' he says. 'I'm not intefering with due law and custom. You can get out of this yourself.' The skin of the drum splits apart.",1,"Karrac2f1"),
'Karracdrums'=> array ("You look up, and Prince Dimitri stands in your room.<br><br>You tell him your troubles. He sounds angry, but he says that he swore to help you, and he will.<br><br>'But my debt to you is now paid.' he says. He raises his hand in a formal farewell, the skin of the drum splits apart, and he's gone. You lie down on the bed, quite exhausted. For a while there, you felt as if death had its hand on you.",13,"Karraowythmain"),
'Karrac2f'=> array ("You ask everyone you know for help. But who will stand in the path of vengeance to help a fringe-dweller like you?",1,"Karrac2f1"),
'Karrac2f1'=> array ("no text",3,"Heroism",25,"Karrac2fs","Karrac2ff"),
'Karrac2fs'=> array ("no text",2,2,"Flee","Karrac1","Try and find them before they find you","Karrac3"),
'Karrac2ff'=> array ("Faced with death, or a fate worse than death, you accept the only help on offer - that of your WEAPONNAME - and end your life.",0),
'Karracnl'=> array ("You remember the Well of New Life you found in the forest. Could it truly give you a new life?",8,286,1,"Leavekarraland"),
'Karracargov'=> array ("You decide to trade on your family connections and seek help from the government. You gamble that the family won't have told anyone about the disgrace of your quarrel with them.",1,"Karracgov1"),
'Karracgov'=> array ("You decide to seek help from the government.",1,"Karracgov1"),
'Karracgov1'=> array ("no text",11,10,"Karracgovrich","Karracgovpoor"),
'Karracgovrich'=> array ("no text",16,15,"Karracgovrichc","Karracgovrich1"),
'Karracgovrich1'=> array ("no text",16,3,"Karracgovrichc","Karracgovrichn"),
'Karracgovrichc'=> array ("no text",2,3,"Try bribery","Karragov1","Try seduction","Karragov2","Rely on your good name and reputation","Karragov3"),
'Karracgovrichn'=> array ("no text",2,2,"Try bribery","Karragov1","Rely on your good name and reputation","Karragov3"),
'Karragovcpoor'=> array ("no text",16,15,"Karracgovpoorc","Karragovcpoor1"),
'Karragovcpoor1'=> array ("no text",16,3,"Karracgovpoorc","Karragov3"),
'Karracgovpoorc'=> array ("no text",2,2,"Try seduction","Karragov2","Rely on your good name and reputation","Karragov3"),
'Karragov1'=> array ("no text",10,-10,"Karragov1a"),
'Karragov1a'=> array ("no text",12,3,24,"Charisma","Roguery","Streetwise","Karragovr0","Karragovr1","Karragovr2","Karragovr3"),
// this is the same as Karragov3b, except easier.
'Karragov2'=> array ("no text",9,"Heroism",-2,"Karragov1a"),
'Karragov3'=> array ("no text",9,"Streetwise",-3,"Karragov3a"),
'Karragov3a'=> array ("no text",9,"Heroism",3,"Karragov3b"),
'Karragov3b'=> array ("no text",12,3,27,"Charisma","Roguery","Streetwise","Karragovr0","Karragovr1","Karragovr2","Karragovr3"),
// this is the same as Karragov1a, except harder.
'Karragovr0'=> array ("You contact a government flunky who listens to your story and pretends to sympathise. When you finish, he calls for the guards, telling you that he'll be well-paid for your return.",1,"Karrac2ff"),
'Karragovr1'=> array ("Everyone you talk to wants to help you, until they realise who's after you.",1,"Karrac2b"),
'Karragovr2'=> array ("The official you talk to says they might be able to help you - but they expect help in return.",4,2,"Karragovr2a","Karragovr2b"),
'Karragovr2a'=> array ("A functionary of middling rank has been captured by pirates. They need someone to give the pirates in exchange.",2,2,"Accept","Karracpirpres","Refuse","Karrac2b"),
'Karragovr2b'=> array ("There are rumours of religious strife in the desert city of the Amazons. They need someone to visit the city, in order to see what's going on and, hopefully, stir up trouble.",2,2,"Accept","Karragovr2b1","Refuse","Karrac2b"),
'Karragovr2b1'=> array ("Your smile freezes a little when you learn that you'll be sent there by official City Catapult. You thank the official and prepare to leave the city, perhaps forever.",8,299,1,"Karragovshia1"),
'Karragovr2b2'=> array ("Early next morning, you sit nervously in the bowl of the City Catapult. A team of gnomes, who bow to you and call you 'ambassador', adjust various dials and examine thick books of co-ordinates. At last they tell you they're ready. You start praying to Mother Iasthes, the goddess of travellers. But before you can finish the head gnome gives the command to fire you into the air.",13,"Karragovr2b3"),
'Karragovr2b3'=> array ("no text",3,"Luck",20,"Karragovr2b3s","Karraccat2ff"),
'Karragovr2b3s'=> array ("The catapult works perfectly. You hurtle into space and land on a safety net set up in the city of the Amazons.",1,"Amacity"),
'Karragovr3'=> array ("no text",4,2,"Karragovr3a","Karragovr3b"),
'Karragovr3a'=> array ("A government official takes pity on you. He tells you that he knows of a certain place, far from the reach of anyone in Karrakara or the islands around, where you'd be safe.",6,1,"Karragovr3aa","Karragovcat"),
'Karragovr3aa'=> array ("no text",6,31,"Karragovswa","Karragovshi"),
'Karragovswa'=> array ("You explain that your boat is hidden in the swamp outside the city. He reminds you that time is of the essence. He tells you that he can arrange for you to be sent there by official City Catapult.",1,"Karraccat"),
'Karragovcat'=> array ("You explain that you have no boat. He tells you that he can arrange for you to be sent there by official City Catapult.",1,"Karraccat"),
'Karragovshi'=> array ("You thank him profusely and, after memorising his directions, prepare to leave the city for the last time.",1,"Karragovshia"),
'Karragovr3b'=> array ("A government official takes pity on you. She tells you that she knows of a certain place, far from the reach of anyone in Karrakara or the islands around, where you'd be safe.",6,1,"Karragovr3ba","Karragovcatb"),
'Karragovr3ba'=> array ("no text",6,31,"Karragovswab","Karragovshib"),
'Karragovswab'=> array ("You explain that your boat is hidden in the swamp outside the city. She reminds you that time is of the essence. She tells you that she can arrange for you to be sent there by official City Catapult.",1,"Karraccat"),
'Karragovcatb'=> array ("You explain that you have no boat. She tells you that she can arrange for you to be sent there by official City Catapult.",1,"Karraccat"),
'Karragovshib'=> array ("You thank her profusely and, after memorising her directions, prepare to leave the city for the last time.",1,"Karragovshia"),
'Karragovshia'=> array ("no text",8,292,1,"Karragovshia1"),
'Karragovshia1'=> array ("no text",5,14,"Karragovshiao","Karragovshia2"),
'Karragovshiao'=> array ("You bid farewell to Owyth. He presents you with a parting gift - the few shells he's managed to save. You realise that they'll be poor compensation for the loss of your companion.",7,14,0,"Karragovshiao1"),
'Karragovshiao1'=> array ("no text",10,7,"Karragovshia2"),
'Karragovshia2'=> array ("no text",6,296,"Inlandpre2","Karragovshia2a"),
'Karragovshia2a'=> array ("no text",5,15,"Karragovshiau","Karragovshia3"),
'Karragovshiau'=> array ("You give the unicorn its freedom. You're only sure that it was a real unicorn when you see it gallop away.",7,15,0,"Karragovshiau1"),
'Karragovshiau1'=> array ("no text",9,"Heroism",2,"Karragovshia3"),
'Karragovshia3'=> array ("no text",5,16,"Karragovshiah","Karragovpredocks"),
'Karragovshiah'=> array ("You take the horse outside the city, where you let it ride away.",9,"Heroism",1,"Karragovpredocks"),
'Karragovpredocks'=> array ("no text",6,299,"Karragovr2b2","Karragovpredocks0"),
'Karragovpredocks0'=> array ("no text",6,300,"Karraccat1","Karragovpredocks1"),
'Karragovpredocks1'=> array ("no text",6,31,"Karrafleeswamp","Leavekarradocks"),
'Karrafleeswamp'=> array ("no text",12,2,16,"Roguery","Scouting","Karrafleeswampff","Karrafleeswampf","Karrafleeswamps"),
'Karrafleeswampff'=> array ("Alas, you're too slow. You make it out of the city, but before you can get to the swamp your hunters find you. Faced with death, or a fate worse than death, you accept the mercy of your WEAPONNAME, and die at your own hand.",0),
'Karrafleeswampf'=> array ("Alas, you're too slow. As you make your way out of the city, you find your way blocked.",1,"Karrac3f"),
'Karrafleeswamps'=> array ("You slip out of the city and make your way to the swamp. You can't find your own boat, but as luck would have it you find another. It's caked with vines, and you doubt that anyone's coming back for it. You drag it out of the mud, clean it as best you can, and set out to sea.",13,"Islandhub"),
'Karraccat'=> array ("You give your thanks, and prepare to leave the city for the last time.",13,"Karraccat0"),
'Karraccat0'=> array ("no text",8,300,1,"Karragovshia"),
'Karraccat1'=> array ("Early next morning, you sit nervously in the bowl of the City Catapult. A team of gnomes, who bow to you and call you 'ambassador', adjust various dials and examine thick books of co-ordinates. At last they tell you they're ready. You start praying to Mother Iasthes, the goddess of travellers. But before you can finish the head gnome gives the command to fire you into the air.",13,"Karraccat2"),
'Karraccat2'=> array ("no text",12,2,20,"Luck","Luck","Karraccat2ff","Karraccat2fs","Karraccat2ss"),
'Karraccat2ff'=> array ("As you hurtle through space, you think that being fired out of a catapult is a pretty silly way to travel. You're quite right as it happens. But the trouble is that you never get to share your insight with anyone, because you land head-first and die.",0),
'Karraccat2fs'=> array ("Nothing happens. The gnomes squeal in frustration. The head gnome tells you that the problem will probably be fixed in a week. She apologises profusely for the inconvenience. No apology, you think, is enough to make up for condemning you to certain death.",1,"Karrac2c"),
'Karraccat2ss'=> array ("The catapult works perfectly. You hurtle into space and land on a safety net set up on the island.",1,"Safeisland"),
'Karracreb'=> array ("You decide to seek help from your friends the rebels.<br><br>After a few days you manage to make contact. You meet them in the sewers, and explain your plight.",16,15,"Karracrebc","Karracreb1"),
'Karracreb1'=> array ("no text",16,16,"Karracrebc","Karracreb2"),
'Karracreb2'=> array ("no text",16,11,"Karracreba","Karracreb3"),
'Karracreb3'=> array ("no text",16,3,"Karracrebs","Karracreb4"),
'Karracreb4'=> array ("no text",16,7,"Karracrebsf","Karracreb5"),
'Karracreb5'=> array ("no text",16,1,"Karracrebs","Karracrebd"),
'Karracrebd'=> array ("no text",12,2,15,"Streetwise","Charisma","Heroism","Roguery","Karracrebdf","Karracrebdf","Karracrebdf","Karracrebds","Karracrebds","Karracrebdf"),
'Karracrebdf'=> array ("They have a great admiration for the dwarvish practice of sharing the wealth, and so your story doesn't get the sympathy you hoped for. They tell you that they're sorry, but they aren't going to help you. Enraged and desperate, you declare that they can stay with the rats and effluent in their sewer for all the use they are. You return to your room.",8,159,0,"Karracrebsf1"),
'Karracrebds'=> array ("They have a great admiration for the dwarvish practice of sharing the wealth. But once you explain the stupifying conformity of clan life they agree to help you. They tell you that they know of a certain island, far from the reach of any lord or government, where you'll be safe.",1,"Karracrebc1"),
'Karracrebs'=> array ("no text",12,4,20,"Streetwise","Charisma","Heroism","Roguery","Karracreba","Karracreba","Karracrebsf","Karracrebss","Karracrebss"),
'Karracrebss'=> array ("They're a little taken aback with your story, but once you explain that the people you robbed were oppressive aristocrats they decide to help you. They tell you that they know of a certain island, far from the reach of any lord or government, where you'll be safe.",1,"Karracrebc1"),
'Karracrebsf'=> array ("They listen to your story. When you finish one shakes his head sadly, and remarks 'we thought you believed in what we were doing...but you're really just a con-artist aren't you?' You protest, but to no avail. Sadly, you bid them farewell forever.",8,159,0,"Karracrebsf1"),
'Karracrebsf1'=> array ("no text",13,"Karrac2c"),
'Karracreba'=> array ("They listen to your story. When you finish, one shakes his head sadly, and remarks 'you weren't who we thought you were.' You feel the sharp pain of a knife in your back. The rebels' sad faces in the half-light of the sewers are the last things you see.",0),
'Karracrebc'=> array ("They're indeed outraged, and offer a solution. They tell you that they know of a certain island, far from the reach of any lord or government, where you'll be safe.",1,"Karracrebc1"),
'Karracrebc1'=> array ("no text",6,1,"Karracreby","Karracrebn"),
'Karracreby'=> array ("no text",6,31,"Karracrebyn","Karracrebyy"),
'Karracrebyn'=> array ("You explain that your boat is hidden in the swamp outside the city. They remind you that time is of the essence. They tell you that one of their number works in the city government, and can arrange for you to be sent there by official City Catapult.",1,"Karraccat"),
'Karracrebyy'=> array ("You thank them profusely and, after memorising their directions, prepare to leave the city for the last time.",1,"Karragovshia"),
'Karracrebn'=> array ("You explain that you have no boat. They tell you that one of their number works in the city government, and can arrange for you to be sent there by official City Catapult.",1,"Karraccat"),
'Karracpir'=> array ("no text",16,7,"Karracpirp","Karracpirmain"),
'Karracpirp'=> array ("You realise there's only one option: you'll have to return to your former profession and take a berth on another pirate ship.",1,"Karracpirpres"),
'Karracpirmain'=> array ("You realise there's only one sensible option: run away to sea and become a pirate.",6,230,"Karracpir1","Karracpirn"),
'Karracpir1'=> array ("no text",6,257,"Karracpirn","Karracpiry"),
'Karracpirn'=> array ("no text",6,96,"Karracpirn1","Karracpirnn"),
'Karracpirn1'=> array ("no text",12,3,20,"Seafaring","Brawling","Streetwise","Karracpirf","Karracpirf","Karracpirpres","Karracpirpres"),
'Karracpiry'=> array ("You decide to look for the drunken elf pirate who accosted you at the docks.",12,3,20,"Luck","Charisma","Roguery","Karracpiryf","Karracpiryf","Karracpirys","Karracpirys"),
'Karracpiryf'=> array ("But she's nowhere to be found. You try to find a willing crew yourself.",1,"Karracpirn1"),
'Karracpirys'=> array ("You quickly track her down in a seedy waterfront bar. She's happy to see you, and says that she knows of a crew who's looking for someone.",8,326,1,"Karracpirpres"),
'Karracpirf'=> array ("You wear yourself out walking up and down the docks, unsuccessfully looking for work, until at last you accept defeat.",9,"Stamina",-3,"Karracpirout"),
'Karracpirpres'=> array ("no text",8,326,1,"Karracpirs"),
'Karracpirs'=> array ("You're accepted into the crew of the feared talking sheep, Baa-Baa Rossa. You take your sign-on bonus of five shells.",8,323,1,"Karracpirsa"),
'Karracpirsa'=> array ("no text",10,5,"Karracpirs0"),
'Karracpirs0'=> array ("no text",2,4,"Escape","Karracpirs1","Befriend the captain","Karracpirs2","Try to depose the captain","Karracpirs3","Try to stay out of trouble","Karracpirs4"),
'Karracpirs1'=> array ("no text",3,"Streetwise",18,"Karracpirs1s","Karracpirs1f"),
'Karracpirs1s'=> array ("no text",6,326,"Karracpirs1sy","Karracpirs1sn"),
'Karracpirs1sn'=> array ("It's not long before the ship docks at a port fairly close to Karrakara. You simply walk out on shore leave and never come back.",3,"Scouting",15,"nearly269","Karracpirs1sn1"),
'Karracpirs1sn1'=> array ("no text",4,3,"Karracpirs1sn1a","Karracpirs1sn1b","Karracpirs1sn1c"),
'Karracpirs1sn1a'=> array ("You pay a farmer who's going that way to give you a lift.",10,-3,"nearly269"),
'Karracpirs1sn1b'=> array ("no text",6,327,"Karracpirs1sn1","Karracpirs1sn1b1"),
'Karracpirs1sn1b1'=> array ("Fearful of getting lost, you look for a guide.",1,"Snowguide"),
'Karracpirs1sn1c'=> array ("no text",6,328,"Karracpirs1sn1","Karracpirs1sn1c1"),
'Karracpirs1sn1c1'=> array ("You set out for Karrakara. The air is cold, and the road is slick with ice.",1,"Robbed0"),
'Karracpirs1sy'=> array ("One day the ship sets a course close by an island which the crew tells you is populated, but is largely unknown to the outside world. It seems the perfect place for you to escape to. In the early hours of the morning, as the island appears, you dive into the water and swim for shore. You drag yourself on to the beach.",1,"Safeisland"),
'Karracpirs1f'=> array ("You keep an eye out, but no opportunity presents itself.",9,"Luck",-2,"Karracpirloop"),
'Karracpirs2'=> array ("no text",16,1,"Karracpirs2tc","Karracpirs2a"),
'Karracpirs2a'=> array ("no text",16,16,"Karracpirs2ft","Karracpirs2b"),
'Karracpirs2b'=> array ("no text",16,11,"Karracpirs2as","Karracpirs2c"),
'Karracpirs2c'=> array ("no text",16,15,"Karracpirs2co","Karracpirs2d"),
'Karracpirs2d'=> array ("no text",3,"Charisma",20,"Karracpirs2ds","Karracpirs2df"),
'Karracpirs2ds'=> array ("With wit and flattery you gain the captain's ear.",1,"Karracpirs2ds1"),
'Karracpirs2ds1'=> array ("You consider how to use your new position of privilege.",2,2,"Escape","Karracpirs1s","Take over","Karracpirs3s"),
'Karracpirs2df'=> array ("no text",6,301,"Karracpirs2dfa","Karracpirs2dfb"),
'Karracpirs2dfa'=> array ("The captain is again unimpressed with your toadying.",1,"Karracpirs2dfc"),
'Karracpirs2dfb'=> array ("The captain is unimpressed with your toadying. In fact he says it's embaaaaaaarrassing.",8,301,1,"Karracpirs2dfc"),
'Karracpirs2dfc'=> array ("no text",9,"Luck",-2,"Karracpirloop"),
'Karracpirs2tc'=> array ("no text",3,"Charisma",17,"Karracpirs2tcs","Karracpirs2df"),
'Karracpirs2tc'=> array ("There are few talking animals in the crew, so you find it easy to make friends with the captain.",1,"Karracpirs2ds1"),
'Karracpirs2ft'=> array ("no text",3,"Charisma",17,"Karracpirs2fts","Karracpirs2df"),
'Karracpirs2fts'=> array ("The captain is very superstitious, so a few a comments on the omens in passing birds or oddly-shaped clouds are enough to gain his ear.",1,"Karracpirs2ds1"),
'Karracpirs2as'=> array ("no text",3,"Charisma",23,"Karracpirs2ds","Karracpirs2asf"),
'Karracpirs2asf'=> array ("The captain says you make him nervous hanging around all the time, like you were planning to stab him in the back.",9,"Luck",-2,"Karracpirloop"),
'Karracpirs2co'=> array ("no text",3,"Charisma",23,"Karracpirs2ds","Karracpirs2cof"),
'Karracpirs2cof'=> array ("Your dainty wiles don't really work on sheep, and so your efforts are in vain.",9,"Luck",-2,"Karracpirloop"),
'Karracpirs3'=> array ("no text",12,3,20,"Roguery","Brawling","Seafaring","Karracpirs3f","Karracpirs3fs","Karracpirs3s","Karracpirs3s"),
'Karracpirs3f'=> array ("Your attempts at mutiny quickly reach the ears of the captain. The brutal sheep wastes no time in having you stabbed to death in your hammock.",0),
'Karracpirs3fs'=> array ("You quickly learn that the captain isn't very popular. But that doesn't mean they prefer you. You gain nothing for your trouble but a beating.",9,"Stamina",-3,"Karracpirs3fs1"),
'Karracpirs3fs1'=> array ("no text",9,"Luck",-2,"Karracpirloop"),
'Karracpirs3s'=> array ("The crew are more than happy to maroon Baa-Baa Rossa on an island, and declare you captain.",3,"Heroism",15,"Karracpirs3s1","Karracpirs4df"),
'Karracpirs3s1'=> array ("no text",6,56,"Karracpirreb","Karracpirs3s2"),
'Karracpirreb'=> array ("Filled with a sudden burst of idealism, you repeat the words of the rebel preacher as best as you can remember. You suggest that the pirates should rob from the rich and give to the poor.",3,"Streetwise",18,"Karracpirrebs","Karracpirrebf"),
'Karracpirrebs'=> array ("With tears in their eyes, the pirates agree to mend their wicked ways. With a light heart you set a course for the open sea, and a new life.",25),
'Karracpirrebf'=> array ("The pirates agree with exactly half of your idea. Your tenure as captain ends as they drown you and turn the ship around to get Baa-Baa Rossa back.",0),
'Karracpirs3s2'=> array ("Over the next few months you take in a vast haul of booty. The ship nearly sinks from the geegaws and trinkets the crew buys every time you hit port.",10,1000,"Karracpcap"),
'Karracpcap'=> array ("no text",13,"Karracpcap0"),
'Karracpcap0'=> array ("no text",6,108,"Karracpcapy","Karracpcapn"),
'Karracpcapy'=> array ("no text",6,109,"Karracpcap1","Karracpcapyn"),
'Karracpcapyn'=> array ("no text",8,109,1,"Karracpcapyn1"),
'Karracpcapyn1'=> array ("One day the ship is anchored on a small island. You're sunning yourself on deck when you see see what looks like a large bird, flying high in the sky at a tremendous speed. It seems strangely familiar...then you remember; it could be the flying carpet of Prince Dimitri.",2,2,"Wait","Karracpcapynw","Try and hide the ship","Karracpcapyne"),
'Karracpcapynw'=> array ("no text",9,"Streetwise",-1,"Karracpcapynw0"),
'Karracpcapynw0'=> array ("no text",9,"Roguery",-1,"Karracpcapynw1"),
'Karracpcapynw1'=> array ("It gets larger, until you see that it is indeed Prince Dimitri, with his flying carpet and fire-bird. He lands on the deck before you.<br><br>'I am Prince Dimitri!' he announces in a booming voice. Several of the pirates cheer.<br><br>'No doubt you have come for your money, o Prince' you reply. You frantically wave your hands at the crew, trying to get them to act less piratey.",12,2,16,"Streetwise","Roguery","Karracpcapynwff","Karracpcapynwfs","Karracpcapynwss"),
'Karracpcapynwff'=> array ("no text",9,"Luck",-2,"Karracpcapynef1"),
'Karracpcapynwfs'=> array ("The prince looks at the crew suspiciously, but takes his money and flies off.",10,-100,"Karracpcapnf4bs2"),
'Karracpcapynwss'=> array ("The prince takes his money.",10,-100,"Karracpcapynwss1"),
'Karracpcapynwss1'=> array ("'Hm...I suppose one good turn deserves another. Here.' The prince gives you a small drum. 'If you're ever in trouble, play on that and I'll see what I can do!' He flies off.",7,18,1,"Karracpcapnf4bs2"),
'Karracpcapyne'=> array ("You tell the crew to sail up-river, so that the ship will be hidden by jungle.",12,2,17,"Scouting","Seafaring","Karracpcapynef","Karracpcapynef","Karracpcapynes"),
'Karracpcapynes'=> array ("You wait until sunset but the Prince, if that's who it was, doesn't pay you a vist. The crew is amazed at your cunning in avoiding the mighty Prince Dimitri.",9,"Luck",2,"Karracpcapnf4bs2"),
'Karracpcapynef'=> array ("You hide the ship as best you can. But like an owl hunting a mouse, the shape comes toward you. You see that it is indeed Prince Dimitri, with his flying carpet and fire-bird. He lands on the deck before you.<br><br>'I am Prince Dimitri!' he announces in a booming voice, and the pirates tremble.",1,"Karracpcapynef1"),
'Karracpcapynef1'=> array ("'I came only to get my money back' he says.<br><br>'But I perceive that you are dastardly pirates, and so I shall capture you all single-handedly!'",2,3,"Surrender","Karracpcapynefa","Fight him","Karracpcapynefb","Offer to make him captain","Karracpcapynefc"),
'Karracpcapynefa'=> array ("no text",3,"Charisma",14,"Karracpcapynefas","Karracpcapynefaf"),
'Karracpcapynefas'=> array ("He accepts your surrender, and his money back.",10,-100,"Karracpcapnf4a"),
'Karracpcapynefaf'=> array ("He beats you up for trying to fool him, then takes his money back.",9,"Stamina",-4,"Karracpcapynefaf1"),
'Karracpcapynefaf1'=> array ("no text",10,-100,"Karracpcapnf4a"),
'Karracpcapynefb'=> array ("no text",3,"Magic",25,"Karracpcapynefb1","Karracpcapnf4bf"),
'Karracpcapynefb1'=> array ("The prince snaps his fingers. But you see his spell, and wave it away. His eyes widen in surprise, and he draws his sword. The pirates stand back, too afraid to attack.",12,2,20,"Brawling","Duelling","Karracpcapynefbff","Karracpcapynefbfs","Karracpcapynefbss"),
'Karracpcapynefbff'=> array ("He's too frightened and angry to think of capturing you. He quickly disarms you, and cuts your throat as you plead for your life.",0),
'Karracpcapynefbfs'=> array ("You soon see that you're outmatched. You throw your WEAPONNAME to the deck.",1,"Karracpcapynefas"),
'Karracpcapynefbss'=> array ("You parry the prince's every blow, and drive him back. At last, choking with anger and cursing your name, he hops on his carpet and flies away.",1,"Karracpcapnf4bs0"),
'Karracpcapynefc'=> array ("no text",1,"Karracpcapnf4cf"),
// this is to 'hide' result.
'Karracpcapn'=> array ("no text",12,3,20,"Heroism","Seafaring","Luck","Karracpcapnf","Karracpcapnf","Karracpcap1","Karracpcap1"),
'Karracpcapnf'=> array ("One day while you're sunning yourself on deck, you see see what looks like a large bird coming towards you. As it gets closer you see that it's a man on a flying carpet. He is richly dressed, and has a bird made of fire.",8,108,1,"Karracpcapnf1"),
'Karracpcapnf1'=> array ("no text",13,"Karracpcapnf2"),
'Karracpcapnf2'=> array ("He lands in front of you.<br><br>'I am Prince Dimitri!' he announces in a booming voice.<br><br>'And I have come to capture you single-handedly, o feared pirates!' Some of the sillier pirates cheer, then quickly try and make it sound like they were just coughing.",8,109,1,"Karracpcapnf3"),
// you get both 108 and 109 here, because Prince Dimitri
// hasn't leant you any shells, so it would make no sense
// for him to appear again wanting them.
'Karracpcapnf3'=> array ("no text",2,3,"Surrender","Karracpcapnf4a","Fight him","Karracpcapnf4b","Offer to make him captain","Karracpcapnf4c"),
'Karracpcapnf4a'=> array ("The arrogant prince puts you all in chains, confiscates your ill-gotten loot, and sails your ship to Karrakara, where you're placed in the dungeons to await your trial. You have the wit to give a false name, so at least your pursuers will have no way of finding you.",10,-1000,"Arrested"),
'Karracpcapnf4b'=> array ("no text",3,"Magic",25,"Karracpcapnf4bs","Karracpcapnf4bf"),
'Karracpcapnf4bs'=> array ("The prince snaps his fingers. But you see his spell, and wave it away. His eyes widen in panic, and he just manages to fly away before the crew falls on him.",1,"Karracpcapnf4bs0"),
'Karracpcapnf4bs0'=> array ("Everyone looks at you, muttering that you beat Prince Dimitri. You don't doubt that your fearsome reputation will filter through many a disreputable tavern into general society.",9,"Charisma",3,"Karracpcapnf4bs1"),
'Karracpcapnf4bs1'=> array ("no text",9,"Heroism",3,"Karracpcapnf4bs2"),
'Karracpcapnf4bs2'=> array ("You sail on, and for many months you continue your career of piracy.",13,"Karracpcap1"),
'Karracpcapnf4bf'=> array ("Prince Dimitri snaps his fingers and the entire crew falls down in a deep sleep. He beats you severely for defying him.",9,"Stamina",-6,"Karracpcapnf4a"),
'Karracpcapnf4c'=> array ("no text",12,3,18,"Streetwise","Charisma","Luck","Karracpcapnf4cf","Karracpcapnf4cf","Karracpcapnf4cs","Karracpcapnf4css"),
'Karracpcapnf4cf'=> array ("The prince snaps his fingers and the entire crew falls into a deep sleep.<br><br>'That's how much this crew is worth to me!' he gloats.",9,"Heroism",-3,"Karracpcapnf4a"),
'Karracpcapnf4cs'=> array ("'Hmm...not a bad idea. What do you say crew?' You're a bit hurt by the huge cheer that the pirates give. However, you console yourself, at least if your pursuers track you this far they'll find Prince Dimitri instead of you.",1,"Karracpcapnf4cs0"),
'Karracpcapnf4css'=> array ("'Hmm...not a bad idea. What do you say crew?' You're a bit hurt by the huge cheer that the pirates give. However, you console yourself, at least if your pursuers track you this far they'll find Prince Dimitri instead of you.<br><br>'Hm...I suppose one good turn deserves another. Here.' The prince gives you a small drum. 'If you're ever in trouble, play on that and I'll see what I can do!'.",7,18,1,"Karracpcapnf4cs0"),
'Karracpcapnf4cs0'=> array ("You take your portion of the crew's wealth, and a small boat. The pirates wave you goodbye as you head to sea.",10,-900,"Karracpcapnf4cs1"),
'Karracpcapnf4cs1'=> array ("no text",8,295,1,"Towncoly1"),
'Karracpcap1'=> array ("no text",6,69,"Karracpcapt","Karracpcap2"),
'Karracpcap2'=> array ("no text",6,57,"Karracpcapg","Karracpcap3"),
'Karracpcap3'=> array ("no text",3,"Heroism",22,"Karracpcap3a","Karracpirs4df"),
'Karracpcap3a'=> array ("The endless sea, the fear and violence, and the company of the crew all conspire to weary you of the pirate life.",1,"Karracpcapga"),
'Karracpcapg'=> array ("But you find yourself becoming more and guilty about breaking the law that you, in theory, support.",1,"Karracpcapga"),
'Karracpcapga'=> array ("no text",2,3,"Leave the crew","Karracpcapg1","Try and reform the pirates","Karracpcapg2","Continue your plundering","Karracpcapg3"),
'Karracpcapg1'=> array ("no text",3,"Seafaring",16,"Karracpcapg1s","Karracpcapg1f"),
'Karracpcapg1s'=> array ("You study the currents until you're sure you can safely slip away. Before sunrise you take a trip to the cargo hold. You help yourself to your fair share of the booty. Then you lower a boat into the water, dive after it, and sail away.",9,"Luck",2,"Karracpcapg1sa"),
'Karracpcapg1sa'=> array ("no text",10,-900,"Karracpcapg1sd"),
'Karracpcapg1sd'=> array ("no text",4,5,"Karracpcapg1s1","Karracpcapg1s2","Karracpcapg1s3","Karracpcapg1s4","Karracpcapg1s5"),
'Karracpcapg1s1'=> array ("You drift for an unknown time.",1,"Fleesanes"),
// pyramid island.
'Karracpcapg1s2'=> array ("As you planned, the current takes you to Karrakara. You have no doubt that your pursuers will have given up by now, or at most will track you to the pirate ship.",8,1,1,"Karracpcapg1s2a"),
'Karracpcapg1s2a'=> array ("no text",8,31,0,30),
// back to Karrakara.
'Karracpcapg1s3'=> array ("The current takes you to an island which, your charts tell you, is inhabited but has few or no visitors from the outside world. You leave your boat on the beach and head inland.",1,"Safeislandh"),
// Yag-Kosha island.
'Karracpcapg1s4'=> array ("As you planned, the current takes you close to Karrakara. You have no doubt that your pursuers will have given up by now, or at most will track you to the pirate ship.",1,211),
// fish-woman island.
'Karracpcapg1s5'=> array ("no text",8,295,1,"Islandhub"),
// now fleeing by sea.
'Karracpcapg1f'=> array ("You look for an opportunity to slip away. But none presents itself.",9,"Luck",-3,"Karracpcapg3a"),
'Karracpcapg2'=> array ("You address the crew, suggesting that you should find an island somewhere and settle, giving up this cutthroat life.",3,"Streetwise",22,"Karracpirrebs","Karracpcapg2nf"),
'Karracpcapg2nf'=> array ("The pirates are little taken with your idea. Snarling that they want Baa-Baa Rossa back, they swarm upon you and cut your throat.",0),
'Karracpcapg3'=> array ("no text",9,"Heroism",-3,"Karracpcapg3a"),
// this can be for not 'going straight', or because thought
// of treasure wears you down.
'Karracpcapg3a'=> array ("no text",12,4,15,"Luck","Charisma","Seafaring","Roguery","Karracpcapg3aff","Karracpcapg3aff","Karracpirx3","Shellressf","Shellressf"),
'Karracpcapg3aff'=> array ("For several months you continue your life of raiding and plundering. But alas, a pirate captain is like a tightrope-walker, whose thoughts may not wander nor a single step fall misplaced. You don't notice the growing discontent among the crew, nor do you hear the whispered talk of how things were better with Baa-Baa Rossa. Soon a bone-carved knife finds your back.",0),
'Karracpcapt'=> array ("But you find your thoughts turning to the treasure you found in the desert tower. With the help of the pirate crew, you think to yourself, you have a chance of carrying it away.",2,2,"Go after the treasure","Karracpcapt1","Continue plundering ships","Karracpcapt2"),
'Karracpcapt1'=> array ("You tell the crew about the great treasure lying in wait in the desert. After much argument they agree to go after it. You dock the ship in a lawless port, and spend your entire haul on camels to ride, mules to carry the treasure, and supplies. Then you make your way through the desert, until you see the tower.",10,-2000,"Karracpcapt1a"),
'Karracpcapt1a'=> array ("no text",13,"Karracpcapt1b"),
'Karracpcapt1b'=> array ("The treasure is still there. You all begin loading it into the mules' saddle-bags. All goes well for a while. But soon you notice harsh words and suspicious looks passing between the crew.",6,287,"Karracpargy","Karracpargn"),
'Karracpargy'=> array ("Indeed, you recognise the expressions on some faces: they look like the gamblers you saw on the last hall of Dead Eye Street.",1,"Karracpargn"),
'Karracpargn'=> array ("no text",2,3,"Advise abandoning the treasure","Karracparg1","Warn the crew to concentrate","Karracparg2","Try and get the crew to work faster","Karracparg3"),
'Karracparg1'=> array ("no text",6,287,"Karracparg1y","Karracparg1n"),
'Karracparg1y'=> array ("no text",12,2,22,"Heroism","Charisma","Karracpcapg2nf","Karracparg1fs","Karracparg1ss"),
'Karracparg1n'=> array ("no text",12,2,18,"Heroism","Charisma","Karracpcapg2nf","Karracparg1fs","Karracparg1ss"),
'Karracparg1fs'=> array ("The crew recognise the terror in your voice, and perhaps feel the unearthly nature of the place. You all head back to the ship, broke but alive.",1,"Karracpcapg3a"),
'Karracparg1ss'=> array ("Filled with a sudden burst of idealism, you address the crew on the folly of pursuing wealth. You suggest that you should find an island somewhere and settle, giving up this cutthroat life.<br><br>The pirates, perhaps sensing the unearthly nature of the place, are much moved. With tears in their eyes, they agree to mend their wicked ways. With unfilled saddle-bags, but light hearts, you head back across the desert for your waiting ship, and a new life.",25),
'Karracparg2'=> array ("no text",3,"Luck",20,"Karracparg2s","Karracparg2f"),
'Karracparg2s'=> array ("The crew mutter vague agreement, but you have little faith that they heed your words.",3,"Magic",25,"Shellress","Shellresf"),
'Karracparg2f'=> array ("The crew recognise the fear in your voice, and heed your words.",3,"Magic",19,"Shellress","Shellresf"),
'Karracparg3'=> array ("no text",6,287,"Karracparg3y","Karracparg3n"),
'Karracparg3y'=> array ("no text",12,2,22,"Seafaring","Streetwise","Karracparg3ff","Karracparg3fs","Karracparg3ss"),
'Karracparg3n'=> array ("no text",12,2,18,"Seafaring","Streetwise","Karracparg3ff","Karracparg3fs","Karracparg3ss"),
'Karracparg3ff'=> array ("The crew are outraged at your presumption. One screams that they should get Baa-Baa Rossa back, and the rest howl in agreement. They fall on you with bone knives, and soon end your life.",0),
'Karracparg3fs'=> array ("The crew mutter vague agreement, but make little effort.",3,"Magic",22,"Shellress","Shellresf"),
'Karracparg3ss'=> array ("The crew recognise the fear in your voice, and increase their efforts.",3,"Magic",16,"Shellress","Shellresf"),
'Shellress'=> array ("Soon the treasure is packed and ready. You head back to the ship, laden with wealth.",10,1000,"Shellress1"),
'Shellress1'=> array ("no text",3,"Heroism",18,"Shellresss","Shellressf"),
'Shellresss'=> array ("As you sail away, you're filled with a sudden burst of idealism. You address the crew, suggesting that you should find an island somewhere and settle, giving up this cutthroat life.<br><br>The pirates, perhaps aided by their newfound wealth, are much moved. With tears in their eyes, they agree to mend their wicked ways. With light hearts, but holds weighed down with treasure, you set sail for a new life.",25),
'Shellressf'=> array ("You continue your career of piracy for many months. Many of the crew die, but few by the standards of pirates. At last you conclude that your pursuers will have given up, or at least that you face more danger by staying than by leaving. You anchor the ship on a deserted beach, fairly close to Karrakara. Taking as much treasure as you can carry, you say your farewells to the crew, and make your way back to the great city.",1,"Shellressf1"),
'Shellressf1'=> array ("no text",10,-850,"Shellressf2"),
'Shellressf2'=> array ("no text",13,271),
'Shellresf'=> array ("You feel an irritation. It's as if there was a fly crawling across your skin, yet no fly can be heard, felt or seen. The feeling gets more intense, and soon it's as if there was whispering, insistent and most convincing yet just too quiet to hear. Soon the pirates start snarling at each other. Harsh words turn to pushes and shoves. Then knives are drawn, and the whole crew is at each other's throats.",13,"Shellresf1"),
'Shellresf1'=> array ("no text",12,2,20,"Brawling","Duelling","Shellresf1ff","Shellresf1fs","Shellresf1ss"),
'Shellresf1ff'=> array ("You defend yourself, but they're all around you, and the noise in your head is now a silent scream. Soon a knife finds your heart, and you fall to the ground dead.",0),
'Shellresf1fs'=> array ("You defend yourself, until a stray fist knocks you to the ground and all goes dark.",9,"Stamina",-8,"Shellresf1surv"),
'Shellresf1ss'=> array ("You defend yourself, until a stray fist knocks you to the ground and all goes dark.",1,"Shellresf1surv"),
'Shellresf1surv'=> array ("You wake up to find yourself the only living creature in a field of corpses. The feeling in your head has abated; not as if it's gone, but as if it's satisfied with its work. Cursing your folly in leading the crew to this end, you leave the treasure forever.",1,"Shellresf1surv1"),
// when have other ways of become pirate than fleeing
// vengeance, change 'Shellresf1surv' so it checks whether
// you are (yes = 'Shellresf1surv1').
'Shellresf1surv1'=> array ("You head into the desert, wondering whether your pursuers have lost track of you, or are only minutes behind.",8,69,0,"Shellresf1surv2"),
'Shellresf1surv2'=> array ("no text",8,296,1,"Inland2"),
'Karracpcapt2'=> array ("no text",12,2,20,"Streetwise","Streetwise","Karracpcapt2ff","Karracpcapt2fs","Karracpcapg3a"),
'Karracpcapt2ff'=> array ("You try and ignore the treasure. But, like a monk to a brothel, your thoughts keep creeping back to it. You find yourself exhausted, as if you were carrying the treasure on your back rather than in your head. Alas, a pirate captain is like a tightrope-walker, whose thoughts may not wander nor a single step fall misplaced. You don't notice the discontent among the crew, and soon a bone-carved knife finds your back.",0),
'Karracpcapt2fs'=> array ("You try and ignore the treasure. But, like a monk to a brothel, your thoughts keep creeping back to it. You find yourself exhausted, as if you were carrying the treasure on your back rather than in your head.",1,"Karracpcapg3"),
'Karracpirs4'=> array ("You stay in the background, hoping the foul crew will become used to you.",9,"Streetwise",1,"Karracpirs4a"),
'Karracpirs4a'=> array ("no text",9,"Charisma",1,"Karracpirs4b"),
'Karracpirs4b'=> array ("no text",9,"Roguery",1,"Karracpirs4c"),
'Karracpirs4c'=> array ("no text",9,"Heroism",-2,"Karracpirs4d"),
'Karracpirs4d'=> array ("no text",3,"Heroism",15,"Karracpirloop","Karracpirs4df"),
'Karracpirs4df'=> array ("You revel in your position. But, almost without noticing it, you've sink to the same level of depravity as your crew. When you happen across a merchant ship, you think nothing of helping to slaughter the passengers. You begin a new life; no doubt a short one, and certainly one where your true self has become utterly lost.",0),
'Karracpirloop'=> array ("no text",16,1,"Karracpirloopc","Karracpirloopn"),
'Karracpirloopc'=> array ("Your nerves are worn away by the constant danger of getting your fur wet.",9,"Heroism",-3,"Karracpirloopc1"),
'Karracpirloopc1'=> array ("no text",9,"Streetwise",-2,"Karracpirloopn"),
'Karracpirloopn'=> array ("You spend weeks with the pirates, improving your aaaaring and yo-ho-ho'ing abilities.",9,"Seafaring",2,"Karracpirloopn1"),
'Karracpirloopn1'=> array ("no text",9,"Heroism",-1,"Karracpirloopn2"),
'Karracpirloopn2'=> array ("no text",3,"Luck",15,"Karracpirs0","Karracpirloopn3"),
'Karracpirloopn3'=> array ("no text",4,3,"Karracpirx1","Karracpirx2","Karracpirx3"),
'Karracpirx1'=> array ("no text",6,302,"Karracpirloopn3","Karracpirx1a"),
'Karracpirx1a'=> array ("no text",8,302,1,"Karracpirx1b"),
'Karracpirx1b'=> array ("The whole crew comes down with dysentry, and for a week you curse the gods that brought you here.",9,"Stamina",-5,"Karracpirs0"),
'Karracpirx2'=> array ("no text",6,303,"Karracpirloopn3","Karracpirx2a"),
'Karracpirx2a'=> array ("no text",8,303,1,"Karracpirx2b"),
'Karracpirx2b'=> array ("A drunken crewmate challenges you to a knife-fight, to first blood. You slash at each other as the deck rolls beneath you.",12,3,20,"Duelling","Brawling","Seafaring","Karracpirx2bf","Karracpirx2bf","Karracpirx2bfs","Karracpirx2bs"),
'Karracpirx2bf'=> array ("A cut across your face gives you a horrible scar, and nearly removes an eye.",9,"Charisma",-3,"Karracpirx2bfs"),
'Karracpirx2bfs'=> array ("no text",9,"Stamina",-4,"Karracpirs0"),
'Karracpirx2bs'=> array ("You survive unscathed after your opponent slips and breaks their nose.",14,"Luck","Karracpirs0"),
'Karracpirx3'=> array ("The ship is captured! The whole crew is brought back to Karrakara in chains. You expect your pursuers to bail you out and kill you. When you're still alive after a few weeks, you conclude that they must have lost track of you.",1,"Arrested"),
'Karracpirnn'=> array ("Since you don't know where the docks are, you realise you have little chance of being accepted into a pirate crew. You decide to try something else.",1,"Karracpirout"),
'Karracpirout'=> array ("no text",13,"Karrac2a"),
'Karrac3'=> array ("You find it easy enough to track them down. There are four of them. You watch them lounging at a nearby restaurant.",2,2,"Attack them","Karrac3a","Bribe them","Karrac3b"),
'Karrac3a'=> array ("no text",3,"Roguery",24,"Karrac3s","Karrac3fa"),
'Karrac3s'=> array ("You cunningly wait until they're full of pudding, then fall on them like a whirlwind. They barely put a hand on their barbed spears before you kill them all.",3,"Luck",20,"Karrac3ss","Karrac3sf"),
'Karrac3sf'=> array ("But a patrol of the city guard is eating at the same restaurant. You're captured and marched off to the cells.",1,"Arrested"),
'Karrac3ss'=> array ("You vanish into the twisting streets. You feel a bit guilty for your bloody deed. But after all it was four to one, and their spears didn't look like they were for scratching your back.",9,"Heroism",-2,"Karrac3s1"),
'Karrac3s1'=> array ("no text",9,"Brawling",2,"Karrac3s2"),
'Karrac3s2'=> array ("no text",9,"Streetwise",2,"Revrobf2"),
'Karrac3b'=> array ("no text",16,9,"Karrac3bdw","Karrac3bn"),
'Karrac3bdw'=> array ("no text",5,3,"Karrac3bdws","Karrac3bnf"),
'Karrac3bn'=> array ("no text",11,40,"Karrac3bns","Karrac3bnf"),
'Karrac3bnf'=> array ("They're not interested in your paltry offerings. They surround you, and their barbed spears pierce you from all sides.",0),
'Karrac3bns'=> array ("They agree to report that you've died, for 40 shells. Having little choice you pay this vast sum.",10,-40,"Revrobf2"),
'Karrac3bdws'=> array ("You know that they won't accept money. But they agree to take the dwarven medallion, along with your promise to never return home.",7,3,0,"Revrobf2"),
'Karrac3f'=> array ("You stare grimly at this quartet of would-be executioners.",2,2,"Attack them","Karrac3fa","Bribe them","Karrac3b"),
'Karrac3fa'=> array ("no text",12,2,23,"Brawling","Duelling","Karrac3faff","Karrac3fafs","Karrac3s"),
'Karrac3faff'=> array ("They have come well-armed and well-prepared for their grisly task. They surround you, and their barbed spears pierce your flesh.",0),
'Karrac3fafs'=> array ("The battle is fierce, and their barbed spears find your flesh more than once.",9,"Stamina",-6,"Karrac3fafs1"),
'Karrac3fafs1'=> array ("But at last you slay them all. All who witnessed the fight can see that it was four to one, and so assume that you must be the innocent party. You get out of there as quickly as you can.",1,"Revrobf2"),

141=> array ("no text",5,15,"Karramount","141d"),
'141d'=> array ("no text",5,16,"Karramount","141c"),

'Karramount'=> array ("no text",4,2,"Karramount1","141c"),
'Karramount1'=> array ("Stabling costs another shell.",10,-1,"141c"),

'141c'=> array ("no text",5,10,"Karraimp","141a"),
'Karraimp'=> array ("The imp eats another shell.",10,-1,"141a"),
'141a'=> array ("no text",6,106,"Karraok","141aa"),
'141aa'=> array ("no text",3,"Stamina",10,"Karraok","Karrapresick"),
'Karrapresick'=> array ("no text",13,"Karrasick"),
'Karrasick'=> array ("Perhaps the surprise in the Vegetarian Surprise was a diseased rat. Perhaps the gods are testing you, or perhaps someone poisoned the wrong cup. For whatever reason, you are horribly sick for several days.",3,"Luck",15,"Karrasickno","Karrasickslave"),
'Karrasickslave'=> array ("no text",6,24,"Karrasickno","Karrasickslave1"),
'Karrasickslave1'=> array ("You wake up with a strange feeling on your wrists and neck. You feel your wrists, and they feel like cold iron. You and many others are chained together. One woman seems to have resisted, and been run through with a spear. As you watch, two of of your captors strip her corpse of its armour.<br><br>The slavers are a motley crew of humans, dwarves, and goblins - only slightly less wretched-looking than those they've enslaved. A pinch-faced goblin kicks you, and commands you to march.",1,"Campbackfiii"),
'Karrasickno'=> array ("no text",11,11,"Karrasickrich","Karrasickpoor"),
'Karrasickpoor'=> array ("no text",11,1,"Karrasickpoor1","Karrasickbroke"),
'Karrasickrich'=> array ("You're tormented by a procession of ghouls and demons. Most of them are fever-dreams, but at least one of them makes off with a large number of your shells.",10,-10,"Karrasick2"),
'Karrasickpoor1'=> array ("You're tormented by a procession of ghouls and demons. Most of them are fever-dreams, but at least one of them makes off with your shells.",10,-10,"Karrasick2"),
'Karrasickbroke'=> array ("You're tormented for several days by a fever-dream procession of ghouls and demons.",1,"Karrasick2"),
'Karrasick2'=> array ("no text",9,"Stamina",3,"Karrasick3"),
'Karrasick3'=> array ("no text",9,"Heroism",-1,"Karrasick4"),
'Karrasick4'=> array ("When you recover enough to talk, you confront the owner of your flophouse. They deny all knowledge, but you think it's best to change lodgings.",13,271),
'Karraok'=> array ("no text",3,"Heroism",10,"Karradream","Karraquit"),
'Karraquit'=> array ("no text",11,8,"Karraquit2","Karraquitc"),
'Karraquit2'=> array ("no text",6,53,"Karraquit3","Karraquitc"),
'Karraquit3'=> array ("When you're tired of Karrakara you're tired of life. And indeed you are. You remember the shop where courage was bought and sold. You set out to try and find it, and although you don't remember where it was you find it almost straight away. You feel as if it has found you. The creature seems literally to have not moved since you were last there, and this time doesn't have to ask what you've come for. It takes your shells and gives you one of its flowers.",10,-8,"Karraquit5"),
'Karraquit5'=> array ("You eat the flower as the creature indicates. And immediately you feel a sense of courage and purpose, which is no less overwhelming for the fact that you realise it's completely false. You thank the creature and leave the shop.",14,"Heroism","Karraquit4"),
'Karraquit4'=> array ("no text",13,140),
'Karraquitc'=> array ("no text",11,10,"Karraquitbinge","Karraquitc1"),
'Karraquitbinge'=> array ("Life in the big city is too much for you. You obliterate yourself for as long as you can in the taverns.",10,-10,"Karraquitbingesave"),
'Karraquitbingesave'=> array ("no text",3,"Streetwise",17,"Karraquitbingeok","Karraquitbingef"),
'Karraquitbingef'=> array ("You eventually wake up in the cells, faced by a grinning guard who's all too happy to tell you about the brawl you started for no reason.",9,"Stamina",-5,"Arrested"),
'Karraquitbingeok'=> array ("You eventually wake up in a seedy tavern, covered in vomit you hope is your own. You look around at the low companions you've fallen in with, and resolve to face your life rather than trying to blot it out. It's time to start living in a fantasy world.",1,"Karraquitbinge1"),
'Karraquitbinge1'=> array ("no text",9,"Stamina",-3,"Karraquitbinge2"),
'Karraquitbinge2'=> array ("no text",9,"Heroism",2,"Karraquitbinge3"),
'Karraquitbinge3'=> array ("no text",13,"Karraquitbinge4"),
'Karraquitbinge4'=> array ("no text",11,4,"Karradream",273),
//variant of 271
'Karraquitc1'=> array ("Poverty and misery combine to sap your will to live.",9,"Stamina",-3,"Karradream"),

'Karradream'=> array ("no text",4,3,"Karrahair","Karrahair","Karradream2"),
'Karradream2'=> array ("no text",6,40,"Karradreamy","Karradreamn"),
'Karradreamn'=> array ("no text",6,208,"Karradreamny","Karrahair"),
'Karradreamy'=> array ("no text",6,208,"Karradreamyy","Karradream3"),
'Karradream3'=> array ("That night your sleep is filled with nightmares, in which you try and walk through the city - but everyone can somehow see that you're a murderer. You jerk awake several times an hour, until in the morning you are soaked in sweat and feel more exhausted than when you lay down. You are unsure whether you're being haunted, or are simply racked with guilt. However you know that you must somehow atone for your crime, or it will kill you.",9,"Stamina",-2,"Karradream4"),
'Karradream4'=> array ("no text",9,"Heroism",-2,"Karradream5"),
'Karradream5'=> array ("no text",13,"Karrahair"),
'Karradreamny'=> array ("That night you dream that you're walking through the city. You walk to a courtyard, where you somehow know the creatures you fought in the pyramid will be waiting.",1,"Karradreamny1"),
'Karradreamny1'=> array ("They still squat and scuttle like animals, but they're dressed in priestly robes, as red as a butcher's apron, and each holds a knife for sacrifice.",6,40,"Dreamcrm","Dreamcrnm"),
'Dreamcrm'=> array ("no text",4,4,"Dreamcrm1","Dreamcrm2","Dreamcrm3","Dreamcrm4"),
'Dreamcrm1'=> array ("no text",3,"Duelling",21,"Dreamcrs","Dreamcrf"),
'Dreamcrm2'=> array ("no text",3,"Brawling",21,"Dreamcrs","Dreamcrf"),
'Dreamcrm3'=> array ("no text",3,"Magic",21,"Dreamcrs","Dreamcrf"),
'Dreamcrm4'=> array ("no text",3,"Heroism",21,"Dreamcrs","Dreamcrf"),
'Dreamcrnm'=> array ("no text",4,4,"Dreamcrnm1","Dreamcrnm2","Dreamcrnm3","Dreamcrnm4"),
'Dreamcrnm1'=> array ("no text",3,"Duelling",16,"Dreamcrs","Dreamcrf"),
'Dreamcrnm2'=> array ("no text",3,"Brawling",16,"Dreamcrs","Dreamcrf"),
'Dreamcrnm3'=> array ("no text",3,"Magic",16,"Dreamcrs","Dreamcrf"),
'Dreamcrnm4'=> array ("no text",3,"Heroism",16,"Dreamcrs","Dreamcrf"),
'Dreamcrs'=> array ("With a cry of rage you fall on the foul creatures. Your WEAPONNAME sings as it swings through the air. Their knives sting you like wasps, but they retreat again and again. At last one says 'very well!' - and then you wake up.",8,208,0,"Dreamcrs1"),
'Dreamcrs1'=> array ("Outside your window two cruel-looking birds take to the air and fly away.",1,"Dreamcrover"),
'Dreamcrf'=> array ("You find your WEAPONNAME in your hand, and defend yourself against the foul creatures. But their knives find your skin again and again. Their weapons seem to bring a great weariness more than pain, as if they were drinking your blood.",4,4,"Dreamcrf1","Dreamcrf2","Dreamcrf3","Dreamcrf4"),
'Dreamcrf1'=> array ("no text",9,"Magic",-3,"Dreamcrfend"),
'Dreamcrf2'=> array ("no text",9,"Heroism",-3,"Dreamcrfend"),
'Dreamcrf3'=> array ("no text",9,"Streetwise",-3,"Dreamcrfend"),
'Dreamcrf4'=> array ("no text",9,"Luck",-3,"Dreamcrfend"),
'Dreamcrfend'=> array ("At last one cries 'enough!' - and you jerk awake.",1,"Dreamcrover"),
'Dreamcrover'=> array ("You find yourself on the floor of your room. Your body is covered in scratches, and your blankets are stained with blood.",9,"Stamina",-2,"Karradream5"),
'Karradreamyy'=> array ("no text",4,2,"Karradreamny","Karradreamyyeat"),
'Karradreamyyeat'=> array ("That night you have a strange dream. You try and walk through the city - but everyone can somehow tell you're a murderer by looking at you. You walk to a courtyard, knowing that the creatures you fought in the pyramid will be there.",1,"Karradreamyyeat1"),
'Karradreamyyeat1'=> array ("You ask them how you can stop people knowing you're a murderer. They reply that everyone can see your heart. Eagerly, they reach into your chest and take your heart. They divide it in two and each eats a piece. They lick their bloodless lips, and shiver and sigh in ecstacy. They smile, and promise to see you soon, and then you wake up.",1,"Karradreamyyeat2"),
'Karradreamyyeat2'=> array ("Unable to get back to sleep, you think about your crime. You realise that you feel no guilt.",8,40,0,"Karradreamyyeat3"),
'Karradreamyyeat3'=> array ("no text",9,"Heroism",-6,"Karradreamyyeat4"),
'Karradreamyyeat4'=> array ("no text",8,183,0,"Karradream5"),

'Karrahair'=> array ("no text",6,193,"Karrahair1","Karrabald"),
'Karrahair1'=> array ("no text",4,6,"Karrasewkey","Karrasewkey","Karrasewkey","Karrasewkey","Karrasewkey","Karrahair2"),
'Karrahair2'=> array ("Looking at yourself in the mirror, you're overjoyed to see that the 'tails' on your head have stopped moving. You must admit that now they're still they actually do look good.",9,"Charisma",5,"Karrahair3"),
'Karrahair3'=> array ("no text",8,193,0,"Karrasewkey"),
// the ones that go straight to Karrasewkey do so because
// you can't have keywords 193 and 194.

'Karrabald'=> array ("no text",6,194,"Karrabald1","Karrasewkey"),
'Karrabald1'=> array ("no text",4,6,"Karrasewkey","Karrasewkey","Karrasewkey","Karrasewkey","Karrasewkey","Karrabald2"),
'Karrabald2'=> array ("Looking at yourself in the mirror, you're overjoyed to see that your hair has grown out, and you've basically returned to normal.",9,"Charisma",3,"Karrabald3"),
'Karrabald3'=> array ("no text",8,194,0,"Karrasewkey"),

'Karrasewkey'=> array ("no text",6,133,"Karraboat","Karrasewkey1"),
'Karrasewkey1'=> array ("no text",6,141,"Karrasewkey141","Karrasewkey2"),
'Karrasewkey2'=> array ("no text",6,132,"Karrasewkey132","Karrasewkey3"),
'Karrasewkey3'=> array ("no text",6,131,"Karrasewkey131","Karraboat"),
'Karrasewkey141'=> array ("In an idle moment you remember something about your brief journey into the sewers. You had the strong feeling that you weren't alone - that, indeed, there were several people looking at you from the shadows. It wasn't frightening - in fact it was more like they were scared of you - and unlike many things felt in shadow it hasn't faded away in daylight.",8,133,1,"Karraboat"),
'Karrasewkey132'=> array ("no text",8,141,1,"Karraboat"),
'Karrasewkey131'=> array ("no text",8,132,1,"Karraboat"),

'Karraboat'=> array ("no text",6,31,"Karraboat2","Karraheal"),
'Karraboat2'=> array ("no text",4,2,"Karraboat3","Karraheal"),
'Karraboat3'=> array ("no text",6,46,"Karraboat4",420),
'Karraboat4'=> array ("no text",8,46,0,"Karraheal"),

'Karraheal'=> array ("no text",3,"Healing",20,"Karrahealok","Karrahealfail"),
'Karrahealok'=> array ("no text",6,47,"Karrahealwound","Karrahealsta"),
'Karrahealwound'=> array ("Your knowledge of healing allows you to clean and dress the wound in your shoulder.",8,47,0,"Karradimitri"),
'Karrahealsta'=> array ("Your knowledge of healing allows you to tend to your wounds without resorting to the priests or sawbones.",4,2,"Karraheal1sta","Karraheal2sta"),
'Karraheal1sta'=> array ("no text",9,"Stamina",1,"Karradimitri"),
'Karraheal2sta'=> array ("no text",9,"Stamina",2,"Karradimitri"),
'Karrahealfail'=> array ("no text",6,47,"Karrahealfail2","Karradimitri"),
'Karrahealfail2'=> array ("The wound in your shoulder flares up, and causes you an hour of agony. When it dies down you realise that you'll have to do something about it soon.",9,"Stamina",-4,"Karrahealfail3"),
'Karrahealfail3'=> array ("no text",13,"Karradimitri"),

'Karradimitri'=> array ("no text",4,6,"Karraflower","Karraflower","Karraflower","Karraflower","Karraflower","Karradimitri1"),
'Karradimitri1'=> array ("no text",6,108,"Karradimitri2","Karraflower"),
'Karradimitri2'=> array ("no text",6,109,"Karraflower","Karradimitri3"),
'Karradimitri3'=> array ("no text",8,109,1,"Karradimitri4"),
'Karradimitri4'=> array ("You are sitting in your room when the porter tells you, in a puzzled voice, that you have a visitor. Your doorway is filled by a tall man in fine robes. He grins and announces in a booming voice 'I am Prince Dimitri!'",13,"Karradimitri5"),
'Karradimitri5'=> array ("no text",11,100,"Karradimitriok","Karradimitripoor"),
'Karradimitriok'=> array ("You hand over the bag of shells.",10,-100,"Karradimitriok1"),
'Karradimitriok1'=> array ("'Thank you! I knew you'd keep it safe for me!' He turns to leave. 'Hm. I suppose one good turn deserves another. Here.' He gives you a small drum. 'If you're ever in trouble, play on that and I'll see what I can do!'. And with that he leaves.",7,18,1,"Karradimitriok2"),
'Karradimitriok2'=> array ("The porter asks you breathlessly whether that was really <i>the</i> Prince Dimitri. The porter looks at you in a strange way, and you realise that some of the Prince's glamour has rubbed off on you.",9,"Charisma",2,"Karradimitriend"),
'Karradimitripoor'=> array ("no text",8,210,1,"Karradimitripoora"),
'Karradimitripoora'=> array ("You indicate the state of your shell-purse.",16,9,"Karradimitridwarf","Karradimitripoor0"),
'Karradimitripoor0'=> array ("no text",16,15,"Karradimitriflirt","Karradimitripoor1"),
'Karradimitriflirt'=> array ("no text",3,"Charisma",20,"Karradimitriflirt1","Karradimitripoor1"),
'Karradimitriflirt1'=> array ("no text",3,"Charisma",20,"Karradimitriflirtss","Karradimitriflirtfs"),
'Karradimitriflirtss'=> array ("However a small amount of skillful flirting convinces him that he really intended it as a gift.",1,"Karradimitriend"),
'Karradimitriflirtfs'=> array ("no text",22,10,"Karradimitrishells","Karradimitrinoshells"),
'Karradimitridwarf'=> array ("Prince Dimitri smiles wryly. 'Well, I guess it's my fault, expecting a dwarf to keep his hands off someone else's money!'",3,"Streetwise",12,"Karradimitridwarfs","Karradimitridwarff"),
'Karradimitridwarfs'=> array ("You have the good sense to stay mute in the face of this untrue stereotype, which for once seems to be helping you.",1,"Karradimitriall"),
'Karradimitridwarff'=> array ("You protest loudly at this untrue stereotype, demanding to be treated like anyone else. The Prince nods, and you wonder whether you should've kept quiet.",1,"Karradimitripoor1"),
'Karradimitripoor1'=> array ("no text",22,99,"Karradimitriall","Karradimitriangry"),
'Karradimitriangry'=> array ("'Curse and damn you for a useless thief!' he cries.",22,10,"Karradimitriangry1","Karradimitribroke"),
'Karradimitribroke'=> array ("no text",3,"Charisma",20,"Karradimitrinoshells","Karradimitriangry1"),
'Karradimitriangry1'=> array ("no text",6,4,"Karradimitrifire","Karradimitrifrog"),
'Karradimitrifire'=> array ("Your insides start to feel hot. Within seconds they feel like they're on fire. You begin to sweat profusely, and writhe in agony on your hammock.",9,"Stamina",-6,"Karradimitrifire1"),
'Karradimitrifire1'=> array ("The Prince looks at you in triumph. But as you scream and curse, he begins to look more and more horrified. Finally he mutters 'oh gods, I'm sorry' and runs out of the room. Your innards slowly return to normal.",4,2,"Karradimitriok2","Karradimitriend"),
'Karradimitrifrog'=> array ("Your bones start to move of their own accord. You shrink and deform into the shape of a frog. You can feel a small crown on your head. All your equipment has been changed into a small, frog-sized version of itself. You look around, to find yourself in a swamp. You hear the Prince's voice, as if from far away, without its usual bluster: 'oh gods, I'm sorry. Look - if you can get someone to kiss you you'll change places with them.'",13,69),
'Karradimitriall'=> array ("no text",11,1,"Karradimitrishells","Karradimitrinoshells"),
'Karradimitrishells'=> array ("'Well, just give me what you have and we'll call it even.' You hand over your shells.",10,-100,"Karradimitrishells1"),
'Karradimitrishells1'=> array ("With that he leaves. After he's gone, you wonder why it never occured to you to ask for time to pay.",4,2,"Karradimitriok2","Karradimitriend"),
'Karradimitrinoshells'=> array ("'Damn it, I should punish you - but you're probably going to starve soon anyway!' He smiles cheerfully, and departs.",4,2,"Karradimitriok2","Karradimitriend"),
'Karradimitriend'=> array ("no text",13,"Karradimitriend1"),
'Karradimitriend1'=> array ("no text",11,1,"Karraflower",273),

'Karraflower'=> array ("no text",5,27,"Karraflower0","Karrafrog"),
'Karraflower0'=> array ("no text",6,204,"Karrafrog","Karraflower1"),
'Karraflower1'=> array ("no text",4,6,"Karrafrog","Karrafrog","Karrafrog","Karrafrog","Karrafrog","Karraflower2"),
'Karraflower2'=> array ("You're shocked to notice that the red flower you picked hasn't wilted at all.",8,204,1,"Karrafrog"),

'Karrafrog'=> array ("no text",5,4,"Karrafrog1","Karrahub"),
'Karrafrog1'=> array ("no text",4,3,"Karrahub","Karrahub","Karrafrog2"),
'Karrafrog2'=> array ("no text",6,72,"Karrafrog2a","Karrafrog3"),
'Karrafrog2a'=> array ("no text",8,72,0,"Karrahub"),
'Karrafrog3'=> array ("no text",8,72,1,"Karrafrog4"),
'Karrafrog4'=> array ("You're eating breakfast, and Owyth is splashing around in his bowl of water, when he asks when you're going to try and find a cure for him.",2,2,"Set out looking for a cure","Frogcure","Convince him to wait","Karrafrogwait"),
'Karrafrogwait'=> array ("no text",3,"Charisma",18,"Karrafrogs","Karrafrogf"),
'Karrafrogs'=> array ("Owyth mutters froggily to himself but agrees to wait.",1,"Karrahub"),
'Karrafrogf'=> array ("Owyth has had enough. He ostentatiously turns away from you and hops away with a surprising amount of dignity.",7,4,0,"Karrahub"),

'Frogcure'=> array ("no text",6,71,"Frogcurea","Frogcureb"),
'Frogcurea'=> array ("You track down the magician's apprentice. He's eager to get rid of you, and agrees to do some research for you.",1,"Frogcurec"),
'Frogcureb'=> array ("no text",3,"Streetwise",17,"Frogcures","Frogcuref"),
'Frogcurec'=> array ("The apprentice tells you that he may have found a cure.",1,"Frogcurej"),

'Frogcures'=> array ("no text",11,3,"Frogcures1","Frogcuref"),
'Frogcures1'=> array ("You manage to track down a magician's apprentice who needs shells quickly. For a small fee, he agrees to do some research for you.",10,-3,"Frogcures2"),
'Frogcures2'=> array ("no text",8,71,1,"Frogcurec"),
'Frogcuref'=> array ("no text",5,10,"Frogcureimp","Frogcuref2"),
'Frogcureimp'=> array ("no text",3,"Luck",15,"Frogcureimp2","Frogcuref2"),
'Frogcureimp2'=> array ("To your surprise, the imp says he might know of a cure.",1,"Frogcurej"),
'Frogcuref2'=> array ("no text",6,53,"Frogcuref2a","Frogcuref2main"),
'Frogcuref2a'=> array ("no text",3,"Heroism",10,"Frogcuref2b","Frogcuref2main"),
'Frogcuref2b'=> array ("You think that the sinister owner of the courage shop may be able to help you. Although you don't really want to go, you find the shop again and explain what you want. The creature tells you that it will help you, for the price you both know. You manage to stand still as the creature extracts your courage from you, by biting your arm and sucking out your blood.",9,"Heroism",-4,"Frogcuref2c"),
'Frogcuref2c'=> array ("The creature spits your blood into an earthen pot, where it presumably nourishes the many flowers growing there. Finally it wipes its fangs, and tells you what you need to know.",13,"Frogcurej"),

'Frogcuref2main'=> array ("no text",6,239,"Frogcurefail","Frogcuref2main0"),
'Frogcuref2main0'=> array ("You can't find anyone who knows a cure, or where to find one. A few people say you should seek the sage Zareth. He is said to be one of the last survivors of the six-limbed race that arrived at the gates of Karrakara centuries ago, from the far country of Barsoom. He is said to know everything, and to share his knowledge freely.",1,"Frogcuref2main1"),
'Frogcuref2main1'=> array ("The problem is that all sources say he lives on a great bridge in the sky, higher than any balloon or bird can go. You're about to give up when someone says that they might know a way.",13,"Frogcuref2main2"),
'Frogcuref2main2'=> array ("The city executes people in many ways. Some are fed to a clockwork ogre. Others are condemned to a punishment unit of the city guard. But many are fired out of a huge catapult, hurtling them higher into the sky than any save the gods. The great speed causes these wretches to catch fire. But, an old beggar-woman claims, a special paint makes anyone or anything as sleek as a dolphin, so that they're gone before the heat notices they're there. She claims to be able to make this paint, and offers to help you.",2,2,"Accept","Frogcuref2main3","Decline","Frogcurej3"),
'Frogcuref2main3'=> array ("She's as good as her word. You accompany her to her hovel where she mixes the foul-smelling brew, and coats you and everything you own in it. You find it easy enough to sneak to the catapult in the dead of night - for who, after all, would willingly go there? It takes an hour to prime the infernal device. Finally you climb in. She says goodbye, and with a sickening lurch you hurtle into the sky. You scream in terror as you fly through space, landing neatly on a great bridge in the sky, just as you were told. You see a building in the distance, which you assume is Zareth's house.",8,239,1,"Frogcuref2main4"),
'Frogcuref2main4'=> array ("no text",8,241,1,"Frogcuref2main5"),
'Frogcuref2main5'=> array ("no text",13,"Bridgey"),

'Frogcurefail'=> array ("You do your best, but can't find any hint of a cure.",1,"Frogcurej3"),
'Frogcurej'=> array ("Janooth is a giant bird, which flies, never landing, over the inland wilderness. It's said that if you fall beneath the shadow of Janooth, you can make a wish and have it come true - but that you must do so before the shadow passes away from you. Like many stories of the interior it's unclear how much of it, if any, is true.",8,216,1,"Frogcurej0"),
'Frogcurej0'=> array ("no text",2,2,"Set out looking for Janooth","Frogcurej2","Refuse","Frogcurej3"),
'Frogcurej2'=> array ("no text",8,73,1,"Leavekarraland"),
'Frogcurej3'=> array ("Owyth is outraged. He hops away, swearing violently at you as he goes.",9,"Heroism",-2,"Frogcurej4"),
'Frogcurej4'=> array ("no text",7,4,0,"Karrahub"),

'Janooth'=> array ("You stop at a town which is said to be close to Janooth.",5,15,"Janooth0b","Janooth0"),
'Janooth0'=> array ("no text",5,16,"Janooth0b","Janooth0a"),
'Janooth0a'=> array ("no text",2,3,"Try and find a horse","Janoothhorse","Try and find a guide","Janoothguide","Visit the local wise-woman","Janoothww"),
'Janooth0b'=> array ("no text",2,2,"Try and find a guide","Janoothguide","Visit the local wise-woman","Janoothww"),
'Janoothww'=> array ("no text",8,226,1,"Janoothww1"),
'Janoothww1'=> array ("The wise-woman tells you that Janooth is indeed real, and is even able to give you slightly vague directions as to where it can be found.",8,73,0,"Janooth1"),
'Janooth1'=> array ("no text",11,3,"Janooth1g","Janooth1nog"),
'Janooth1g'=> array ("As if she'd just thought of it, she mentions that you might need the luck blessing which she can give you for only three shells.",5,15,"Janooth2c","Janooth1g1"),
'Janooth1g1'=> array ("no text",5,16,"Janooth2c","Janooth2a"),
'Janooth1nog'=> array ("no text",5,15,"Janooth2d","Janooth1nog1"),
'Janooth1nog1'=> array ("no text",5,16,"Janooth2d","Janooth2b"),
//Janooth 2a: no unicorn or horse, enough shells for blessing.
//Janooth 2b: no unicorn or horse, not enough shells.
//Janooth 2c: unicorn or horse, enough shells.
//Janooth 2d: unicorn or horse, not enough shells.
'Janooth2'=> array ("no text",11,3,"Janooth2a","Janooth2b"),
'Janooth2a'=> array ("no text",17,4,"Proceed on foot",0,"Janoothwalk","Try and find a horse",0,"Janoothhorse","Try and find a guide",0,"Janoothguide","Buy the blessing",1119,"Janoothbless"),
'Janooth2b'=> array ("no text",2,2,"Try and find a guide","Janoothguide","Set out by yourself","Janoothwalk"),
'Janooth2c'=> array ("no text",2,2,"Set out","Janoothride","Buy the blessing","Janoothbless"),
'Janooth2d'=> array ("no text",13,"Janoothride"),
'Janoothbless'=> array ("no text",10,-3,"Janoothbless2"),
'Janoothbless2'=> array ("no text",14,"Luck","Janoothbless3"),
'Janoothbless3'=> array ("no text",5,15,"Janoothhoru","Janoothbless3a"),
'Janoothbless3a'=> array ("no text",5,16,"Janoothhoru","Janoothbless4"),
'Janoothhoru'=> array ("no text",2,2,"Set out","Janoothride","Try and find a guide","Janoothguide"),
'Janoothbless4'=> array ("no text",8,119,1,"Janooth2a"),
'Janoothwalk'=> array ("no text",6,225,"Janoothtool","Janoothwalkmain"),
'Janoothwalkmain'=> array ("no text",12,2,17,"Scouting","Scouting","Janoothlost","Janoothwalkfs","Janoothvillage"),
'Janoothride'=> array ("no text",6,225,"Janoothtool","Janoothridemain"),
'Janoothridemain'=> array ("You ride off in what you hope is the right direction.",12,2,17,"Scouting","Scouting","Janoothlost","Janoothvillage","Janoothvillage"),
'Janoothtool'=> array ("You realise that you spent too long in the town, and the evening is getting on.",6,232,"Janoothtoolh","Ruins"),
'Janoothtoolh'=> array ("You swear under your breath, and hurry as fast as you can.",9,"Luck",-1,"Janoothtool2"),
'Janoothtool2'=> array ("no text",5,15,"Janoothridemain","Janoothtool3"),
'Janoothtool3'=> array ("no text",5,16,"Janoothridemain","Janoothwalkmain"),
'Janoothlost'=> array ("You start to think that you're lost. A wild griffin blocks your path.",2,3,"Attack it","Janoothattack","Cast a spell to make it move","Janoothspell","Try and edge around it","Janoothedge"),
'Janoothedge'=> array ("no text",3,"Scouting",15,"Janoothedges","Janoothedgef"),
'Janoothedges'=> array ("You edge very slowly around the griffin. It watches you with its dead black eyes, but makes no move. You head in what you think is probably the right direction.",1,"Janoothwalkfs"),
'Janoothedgef'=> array ("The griffin is unimpressed with your wilderness skills.",1,"Janoothattack"),
'Janoothattack'=> array ("no text",5,15,"Janoothattacku","Janoothattacknou"),
'Janoothattacknou'=> array ("no text",5,16,"Janoothattackh","Janoothattacknoh"),
'Janoothattacku'=> array ("The griffin leaps at the unicorn as you raise your WEAPONNAME.",12,2,12,"Duelling","Duelling","Janoothattackff","Janoothattackfs","Janoothattackss"),
'Janoothattackh'=> array ("The griffin leaps at the horse as you raise your WEAPONNAME.",12,2,15,"Duelling","Duelling","Janoothattackff","Janoothattackfs","Janoothattackss"),
'Janoothattacknoh'=> array ("The griffin leaps at you as you raise your WEAPONNAME.",12,2,18,"Duelling","Duelling","Janoothattackff","Janoothattackfs","Janoothattackss"),
'Janoothattackff'=> array ("It's too fast and too strong for you. It knocks you to the ground, the WEAPONNAME flies out of your hands, and mercifully quickly it's on your throat.",0),
'Janoothattackfs'=> array ("no text",5,15,"Janoothattackfsm","Janoothattackfs2"),
'Janoothattackfs2'=> array ("no text",5,16,"Janoothattackfsm","Janoothattackfsn"),
'Janoothattackfsm'=> array ("no text",7,15,0,"Janoothattackfsm1"),
'Janoothattackfsm1'=> array ("The griffin knocks you and your mount to the ground. You leap up, WEAPONNAME at the ready, to see the griffin finishing the beast off. It begins to feed.",7,16,0,"Janoothattackfsm2"),
'Janoothattackfsm2'=> array ("no text",3,"Heroism",20,"Janoothattackfsm3","Janoothattackfsm4"),
'Janoothattackfsm3'=> array ("You decide to keep going on foot.",1,"Janoothwalkfs"),
'Janoothattackfsm4'=> array ("You return to the village, where you try and find a guide.",1,"Janoothguide"),
'Janoothattackfsn'=> array ("The griffin sinks its claws into you, and almost gets its teeth into your neck before you cut its throat.",9,"Stamina",-5,"Janoothattackfsm2"),
'Janoothattackss'=> array ("The griffin is no match for you, and you soon cut its throat.",1,"Janoothwalkfs"),
'Janoothspell'=> array ("no text",3,"Magic",15,"Janoothspells","Janoothspellf"),
'Janoothspells'=> array ("You create the illusion of a herd of fat, slow deer. The griffin slinks off after them and you continue your journey.",1,"Janoothwalkfs"),
'Janoothspellf'=> array ("no text",3,"Luck",16,"Janoothspellfa","Janoothspellfb"),
'Janoothspellfa'=> array ("Your magic has no effect.",2,3,"Try again","Janoothspell","Attack the griffin","Janoothattack","Try and edge around it","Janoothedge"),
'Janoothspellfb'=> array ("Your waving arms and shouted incantations attract the griffin's attention.",1,"Janoothattack"),
'Janoothwalkfs'=> array ("The journey turns out to be longer and harder than it sounded, but eventually you arrive in a tiny hamlet.",9,"Stamina",-3,"Janoothvillage"),
'Janoothvillage'=> array ("The tiny village is called Waterhalf. The people seem to be in awe of a visitor from the city, let alone Owyth. They tell you that Janooth does indeed fly near to their village, and standing under his shadow does grant wishes - with various complicated rules about what can and can't be wished for. It seems that the great bird follows a regular path each year. Alas, it won't appear here for many months. They tell you that you're welcome to stay and wait, or they'll take care of Owyth for you.",8,74,1,"Janoothvillage1"),
// you get keyword 74 (dealt with frog) as soon as get to village
'Janoothvillage1'=> array ("no text",2,2,"Stay and wait","Janoothwait","Leave Owyth with them","Janoothleave"),
'Janoothhorse'=> array ("no text",4,2,"Janoothhorsemain","Janoothhorset"),
'Janoothhorset'=> array ("no text",8,225,1,"Janoothhorsemain"),
'Janoothhorsemain'=> array ("no text",16,14,"Janoothhorsetroll","Janoothhorse0"),
'Janoothhorsetroll'=> array ("You've never seen a horse big enough to carry you - and anyway, most people would probably think you wanted to eat it rather than ride it.",1,"Janoothhorseno0"),
'Janoothhorse0'=> array ("There are many giant lizards and riding emus for sale, but these animals are mainly used as pets or to train children to ride.",12,3,18,"Streetwise","Charisma","Luck","Janoothhorseff","Janoothhorsefs","Janoothhorsess","Janoothhorsesss"),
'Janoothhorsesss'=> array ("You are greatly fortunate. You find a young woman and her father who are abandoning their failed farm and heading off to Karrakara. They tell you you can have your pick of their horses.",7,16,1,"Janoothhorsesss1"),
'Janoothhorsesss1'=> array ("no text",13,"Janoothunicorn3"),
'Janoothhorsess'=> array ("no text",11,12,"Janoothhorsess2","Janoothhorsefs"),
'Janoothhorsefs'=> array ("no text",11,6,"Janoothhorsefs2","Janoothhorseno"),
'Janoothhorseff'=> array ("no text",11,10,"Janoothhorseff2","Janoothhorseno"),
'Janoothhorseno'=> array ("You can't find anything for sale that you can afford, and no one will hire a horse to a stranger for such a long journey.",1,"Janoothhorseno0"),
'Janoothhorseno0'=> array ("no text",6,226,"Janoothhorseno0a","Janoothhorseno0b"),
'Janoothhorseno0a'=> array ("no text",2,2,"Go on foot","Janoothwalk","Try and find a guide","Janoothguide"),
'Janoothhorseno0b'=> array ("no text",2,2,"Try and find a guide","Janoothguide","Visit the wise-woman","Janoothww"),
'Janoothhorseff2'=> array ("No one will hire a horse to a stranger for such a long journey. The only horse you can find for sale is ten shells.",6,226,"Janoothhorseff2a","Janoothhorseff2b"),
'Janoothhorseff2a'=> array ("no text",2,3,"Buy it","Janoothhorse10","Try and find a guide","Janoothguide","Go on foot instead","Janoothwalk"),
'Janoothhorseff2b'=> array ("no text",2,3,"Buy it","Janoothhorse10","Try and find a guide","Janoothguide","Visit the wise-woman","Janoothww"),
'Janoothhorsefs2'=> array ("no text",6,226,"Janoothhorsefs2a","Janoothhorsefs2b"),
'Janoothhorsefs2a'=> array ("No one will hire a horse to a stranger for such a long journey. The only horse you can find for sale is six shells.",2,3,"Buy it","Janoothhorse6","Try and find a guide","Janoothguide","Go on foot instead","Janoothwalk"),
'Janoothhorsefs2b'=> array ("No one will hire a horse to a stranger for such a long journey. The only horse you can find for sale is six shells.",2,3,"Buy it","Janoothhorse6","Try and find a guide","Janoothguide","Visit the wise-woman","Janoothww"),
'Janoothhorsess2'=> array ("no text",6,226,"Janoothhorsess2a","Janoothhorsess2b"),
'Janoothhorsess2a'=> array ("No one will hire a horse to a stranger for such a long journey. The only horse you can find for sale is six shells. The owner also has what she claims is a unicorn, which she offers to sell to you for twelve shells.",2,4,"Buy the horse","Janoothhorse6","Buy the unicorn","Janoothunicorn","Try and find a guide","Janoothguide","Go on foot instead","Janoothwalk"),
'Janoothhorsess2b'=> array ("No one will hire a horse to a stranger for such a long journey. The only horse you can find for sale is six shells. The owner also has what she claims is a unicorn, which she offers to sell to you for twelve shells.",2,4,"Buy the horse","Janoothhorse6","Buy the unicorn","Janoothunicorn","Try and find a guide","Janoothguide","Visit the wise-woman","Janoothww"),
'Janoothhorse10'=> array ("no text",10,-10,"Janoothbuyhorse"),
'Janoothhorse6'=> array ("no text",10,-6,"Janoothbuyhorse"),
'Janoothbuyhorse'=> array ("The horse seems to be of middling quality.",7,16,1,"Janoothunicorn3"),
'Janoothunicorn'=> array ("no text",10,-12,"Janoothunicorn2"),
'Janoothunicorn2'=> array ("The unicorn, is a sulky, silent beast. You've heard of people fashioning fake 'horns' for normal horses, but you can't really tell if it's genuine or not.",7,15,1,"Janoothunicorn3"),
'Janoothunicorn3'=> array ("no text",6,226,"Janoothride","Janoothunicorn4"),
'Janoothunicorn4'=> array ("You visit the wise-woman",1,"Janoothww"),
'Janoothguide'=> array ("no text",4,2,"Janoothguidemain","Janoothguidet"),
'Janoothguidet'=> array ("no text",8,225,1,"Janoothguidemain"),
'Janoothguidemain'=> array ("no text",11,5,"Janoothguide5","Janoothguidefree"),
'Janoothguide5'=> array ("You find a local who claims to know the village you're after, and says he'll take you there for five shells.",6,226,"Janoothguide5y","Janoothguide5n"),
'Janoothguide5y'=> array ("no text",2,3,"Accept","Janoothguide5a","Try and find someone cheaper","Janoothguidefree","Go by yourself instead","Janoothwalk"),
'Janoothguide5n'=> array ("no text",2,3,"Accept","Janoothguide5a","Try and find someone cheaper","Janoothguidefree","Visit the wise-woman","Janoothww"),
'Janoothguide5a'=> array ("no text",10,-5,"Janoothguide5b"),
'Janoothguide5b'=> array ("After a short journey you arrive, and the guide leaves you.",1,"Janoothvillage"),
'Janoothguidefree'=> array ("no text",6,279,"Janoothguidefree1a","Janoothguidefree11"),
'Janoothguidefree11'=> array ("no text",6,280,"Janoothguidefree2","Janoothguidefree12"),
'Janoothguidefree12'=> array ("no text",4,2,"Janoothguidefree1a","Janoothguidefree2"),
'Janoothguidefree1a'=> array ("No one else is willing and able to guide you. But an old woman tells you her Unnerving Beast knows the way. This riding-beast is so named because its face is almost human.",8,279,1,"Janoothguidefree1b"),
'Janoothguidefree1b'=> array ("no text",6,226,"Janoothguidefree1c","Janoothguidefree1d"),
'Janoothguidefree1c'=> array ("no text",2,2,"Accept","Janoothbeast","Go by yourself","Janoothwalk"),
'Janoothguidefree1d'=> array ("no text",2,2,"Accept","Janoothbeast","Visit the wise-woman","Janoothww"),
'Janoothbeast'=> array ("no text",16,1,"Janoothbeasty","Janoothbeastn"),
'Janoothbeasty'=> array ("Riding the human-like creature isn't unnerving at all. In fact it seems to you to be the natural order of things. Finally you arrive.",1,"Janoothvillage"),
'Janoothbeastn'=> array ("Riding this creature is indeed nerve-wracking. It frequently uses its owl-like neck to turn around and look at you, with what you swear is a lofty sneer on its face. Finally you arrive. The Unnerving Beast gives a strangely human giggle, and pads away.",9,"Heroism",-3,"Janoothvillage"),
'Janoothguidefree2'=> array ("You find a young man who says it's not far, and offers to take you there for free.",8,280,1,"Janoothguidefree2a"),
'Janoothguidefree2a'=> array ("no text",6,226,"Janoothguidefreeyw","Janoothguidefreenw"),
'Janoothguidefreenw'=> array ("no text",2,2,"Accept","Janoothguidefreey","Visit the wise-woman","Janoothww"),
'Janoothguidefreeyw'=> array ("no text",2,2,"Accept","Janoothguidefreey","Go by yourself","Janoothwalk"),
'Janoothguidefreey'=> array ("no text",3,"Streetwise",16,"Janoothguide5b","Janoothguideattack"),
'Janoothguideattack'=> array ("You set out, following the man. You try and chat with him, but he's sullen and evasive. You start to think he might be something of a simpleton. A few minutes out of town, he suddenly turns around and raises his fists. Before you can raise your WEAPONNAME he jumps on you.",3,"Brawling",17,"Janoothattackb","Janoothattacka"),
'Janoothattacka'=> array ("He's too strong for you. You think you might die here, when the man seems to panic. He grabs a handful of your shells and runs off, leaving you bleeding in the road.",9,"Stamina",-3,"Janoothattackaa"),
'Janoothattackaa'=> array ("no text",10,-6,"Janoothattackab"),
'Janoothattackab'=> array ("You fear to go back to town and try and get justice from his family and friends. You stand up and continue on the road, hoping he at least led you the right way.",13,"Janoothwalkfs"),
'Janoothattackb'=> array ("Although he has the advantage of surprise, you're too strong for him. You throw him off, and make your escape down the road, hoping that he at least led you the right way.",13,"Janoothwalkfs"),
'Janoothleave'=> array ("You are <i>almost</i> sure that Owyth will be all right with the villagers. You leave him and begin the long journey back to Karrakara.",1,"Janoothleave1"),
'Janoothleave1'=> array ("no text",9,"Heroism",-2,"Janoothleave2"),
'Janoothleave2'=> array ("no text",7,4,0,"Janoothleave3"),
'Janoothleave3'=> array ("no text",5,15,"Janoothleavemount","Janoothleave4"),
'Janoothleave4'=> array ("no text",5,16,"Janoothleavemount","Janoothleave5"),
'Janoothleave5'=> array ("no text",5,14,"Janoothleave5a","Janoothleave6"),
'Janoothleave5a'=> array ("Owyth is much more talkative in human form. He tells you that he feels as if a fog has been lifted from his mind. He says that half the time he forgot he was human.",1,"Janoothleave6"),
'Janoothleave6'=> array ("no text",12,2,17,"Scouting","Scouting","Janoothleaveff","Janoothleavefs","Janoothleavedeathhorse"),
'Janoothleaveff'=> array ("no text",9,"Stamina",-5,"Janoothleavedeathhorse"),
'Janoothleavefs'=> array ("no text",9,"Stamina",-2,"Janoothleavedeathhorse"),
'Janoothleavemount'=> array ("no text",3,"Scouting",17,"Janoothleavedeathhorse","Janoothleavefs"),
'Janoothleavedeathhorse'=> array ("no text",6,104,"nearly269","Janoothleavedeathhorse0"),
'Janoothleavedeathhorse0'=> array ("no text",11,1,"Janoothleavedeathhorse1",269),
'Janoothleavedeathhorse1'=> array ("no text",4,2,"nearly269","Janoothleavedeathhorse2"),
'Janoothleavedeathhorse2'=> array ("no text",8,104,1,"Janoothleavedeathhorse3"),
'Janoothleavedeathhorse3'=> array ("The road takes you through a small, dark wood.",8,107,1,"Deathhorse"),
'Janoothwait'=> array ("no text",11,1,"Janoothwait1","Janoothstay"),
'Janoothwait1'=> array ("You realise that, in a small village like this, you'll be expected to share your shells if anyone has a need for it. You consider the idea of burying it somewhere, and claiming your shell-purse was empty.",2,2,"Do so","Janoothbury","Risk it","Janoothrisk"),
'Janoothrisk'=> array ("no text",9,"Heroism",1,"Janoothrisk1"),
'Janoothrisk1'=> array ("no text",12,2,16,"Luck","Luck","Janoothriskff","Janoothriskfs","Janoothstay"),
'Janoothriskff'=> array ("A few weeks after you arrive the village learns that one of their number has gotten into 'some trouble' in the city, and needs to pay 'some men'.",10,-10,"Janoothstay"),
'Janoothriskfs'=> array ("Aside from a few curses that need to be lifted, there is mercifully little demand for your money.",10,-3,"Janoothstay"),
'Janoothbury'=> array ("A few days after your arrival you make an excuse to set out for the wasteland outside the village.",6,56,"Janoothburyleft","Janoothbury1"),
'Janoothburyleft'=> array ("On the way back, you reflect on your theoretical sympathy with the down-trodden peasantry.",9,"Heroism",-2,"Janoothburyroll"),
'Janoothbury1'=> array ("no text",6,57,"Janoothburyright","Janoothburycentre"),
'Janoothburyright'=> array ("On the way back, you reflect on your theoretical belief in law and the solid traditions of the peasantry.",9,"Heroism",-2,"Janoothburyroll"),
'Janoothburycentre'=> array ("no text",9,"Heroism",-1,"Janoothburyroll"),
'Janoothburyroll'=> array ("no text",3,"Roguery",14,"Janoothstay","Janoothburyf"),
'Janoothburyf'=> array ("All is well for a few weeks. But then one of the villagers, an old man called Derna, comes to see you. He tells you that they've found a buried stash of shells in the wasteland. He asks you whether it's yours.",2,2,"Admit it","Janoothadmit","Deny it","Janoothdeny"),
'Janoothadmit'=> array ("The villagers gather in the patch of dirt that serves as a square. Derna repeats what you told him. He gives you your shells back with unmistakable contempt, and tells you to leave and never return.",1,"Janoothexile"),
'Janoothdeny'=> array ("no text",3,"Charisma",19,"Janoothdenys","Janoothdenyf"),
'Janoothdenys'=> array ("Derna pats your shoulder and says that he never really doubted you. He says the shells will go into the common treasury.",10,-1000,"Janoothstay"),
'Janoothdenyf'=> array ("Derna leaves, but the matter doesn't end there. A few days later he calls a meeting of the whole village. There, he formally accuses you of refusing to share your shells. If you admit it, you'll be expelled at least. If you deny it, it will be resolved by armed single combat. Since Derna is an old man, one of the younger men would fight you in his place.",2,2,"Admit it","Janoothdenyfadmit","Challenge him","Janoothdenyfchallenge"),
'Janoothdenyfadmit'=> array ("You admit that the shells are yours. After a short discussion the villagers decide to punish you by keeping the shells, and making you leave the village.",10,-1000,"Janoothexile"),
'Janoothdenyfchallenge'=> array ("Again you deny that the shells are yours. As you expected, everyone agrees that the only way to resolve the matter is a trial by combat. Derna's eldest daughter volunteers to fight for him. Without delay the villagers clear a wide space for you.",13,"Janoothdenyfchallenge1"),
'Janoothdenyfchallenge1'=> array ("no text",6,40,"Janoothdenyfchallengerun","Janoothdenyfchallenge2"),
'Janoothdenyfchallengerun'=> array ("But you are unable to become a murderer a second time. You run from the circle. The villagers don't try and stop you.",10,-1000,"Janoothdenyfchallengerun1"),
'Janoothdenyfchallengerun1'=> array ("no text",18,"Janoothleave1"),
'Janoothdenyfchallenge2'=> array ("no text",12,4,18,"Duelling","Duelling","Brawling","Brawling","Janoothchallengefff","Janoothchallengeffs","Janoothchallengefss","Janoothchallengefss","Janoothchallengesss"),
'Janoothchallengefff'=> array ("You are completely outclassed by the woman. She runs you through in only a few minutes.",0),
'Janoothchallengeffs'=> array ("You do your best, but are no match for the woman. She wounds you several times before you have to admit defeat. You are exiled from the village, without your shells.",9,"Stamina",-5,"Janoothchallengeffs1"),
'Janoothchallengeffs1'=> array ("no text",10,-1000,"Janoothexile"),
'Janoothchallengefss'=> array ("You are almost evenly matched, and both of you take several minor cuts.",9,"Stamina",-3,"Janoothchallengefss1"),
'Janoothchallengefss1'=> array ("But in the end you deliver a killing blow. You stare at the dead eyes of the woman who died so that your lie wouldn't be found out.",8,40,1,"Janoothchallengefss2"),
'Janoothchallengefss2'=> array ("The meeting breaks up. Derna of course will never speak to you again. But, in the eyes of the village, you have proved your innocence.",13,"Janoothstay"),
'Janoothchallengesss'=> array ("The woman, really a girl, is no match for you. She is on the defensive almost straight away, and soon you are in a position to deliver a killing blow. For a minute it looks like she will force you to kill her, but in the end she admits defeat. At that the meeting breaks up. In the eyes of the village, you have proved your innocence.",13,"Janoothstay"),
'Janoothexile'=> array ("Owyth tells you he's going to try and convince the villagers he wasn't party to your crimes. He hops back to the village.",1,"Janoothleave1"),
'Janoothstay'=> array ("You stay with the villagers for several months. You take to their slow, natural life much more easily than you thought you would.",9,"Heroism",-1,"Janoothstay1"),
'Janoothstay1'=> array ("no text",9,"Streetwise",-2,"Janoothstay1a"),
'Janoothstay1a'=> array ("no text",9,"Scouting",3,"Janoothstay2"),
'Janoothstay2'=> array ("Eventually someone tells you that Janooth should arrive in a couple of weeks. People begin to pitch tents on the field he passes over. You ask one of the old people about the various rules relating to what you can wish for, which everyone seems to know but never talk about. You've already asked why no-one wishes for eternal youth or to find ten thousand cowrie shells, but everyone acted like you were joking. It seems that you could wait, and wish for Owyth to be transformed. Or someone could take him out and he could wish himself. You're about to say you'll go yourself, but you are struck with a sudden fear. What if you fall asleep at the crucial moment, or somehow don't wish properly?",2,2,"Let someone take Owyth out","Janoothstay3","Go yourself","Janoothstay4"),
'Janoothstay3'=> array ("You tell Owyth that it'd be better for someone who's more familiar with Janooth to take care of it, and he agrees. You leave the village.",1,"Janoothleave2"),
'Janoothstay4'=> array ("no text",7,4,0,"Janoothstay4a"),
'Janoothstay4a'=> array ("You make camp with the villagers who are awaiting the arrival of Janooth. They are mostly, you notice, the young and the sick. The atmosphere is excited but with an undercurrent of fear, halfway between a festival and the eve of a battle. As the time draws nearer, some people start drinking a broth made from a plant which ensures you stay awake and alert, but at the cost of making you fearful. You have some just in case. On the day before Janooth arrives, everyone beats drums and chants for hours on end. This and the broth drive you to a pitch of fear. You're sure you're going to make a mistake somehow. The chanting and drumming become fevered during the final hours. At last someone points to the sky. Janooth has arrived. Impossibly large, he fills the sky. For a minute you are struck dumb. But as the shadow passes over you, he bends his head down and seems to be looking straight at you, and you make your wish.",13,"Janoothstay4b"),
'Janoothstay4b'=> array ("You expect some kind of magical sound and fury, but nothing seems to happen. Everyone simply starts packing up, and goes back to the village. When you get there, you are relived to find that Owyth has indeed been changed.",5,5,"Janoothstay4d","Janoothstay4c"),
'Janoothstay4c'=> array ("He seems dazed and sick, but he thanks you and presents you with his crown, which is now normal-sized.",7,5,1,"Janoothstay5"),
'Janoothstay4d'=> array ("He seems dazed and sick, but he thanks you. He tells you that when he changed back, he found he was carrying everything that he had on him when he was transformed.",5,6,"Janoothstayshells","Janoothstaypearl"),
'Janoothstayshells'=> array ("He gives you ten shells, which he says isn't much but is all he has.",10,10,"Janoothstay5"),
'Janoothstaypearl'=> array ("He gives you a black pearl, which he says is said to be valuable, although he has no idea why.",7,6,1,"Janoothstay5"),
'Janoothstay5'=> array ("He starts talking about how as soon as he recovers he'll go adventuring again, and this time he'll find enough treasure to retire on.",13,"Janoothstay6"),
'Janoothstay6'=> array ("no text",3,"Heroism",12,"Janoothstay8","Janoothstay7"),
'Janoothstay7'=> array ("His passion to go forth and get another curse or be disembowelled by a monster suddenly seems completely ridiculous. You realise that you're no better, and that you're on a path which might be paved with cowrie shells, but which almost always leads to an inglorious and unmourned death. You tell him that he is welcome to do what he wants, but you intend to avoid any more idiocy and stay right here.",0),
'Janoothstay8'=> array ("You stay in the village for a short time while Owyth recovers. Eventually he claims that he's fit to travel, though not up to fighting yet. Although you're not sure whether he really is, you agree to leave with him.",7,14,1,"Janoothleave3"),

'Karrahub'=> array ("You consider your next move.",17,11,"Sell the horse",-16,"Karrahorse","Sell the unicorn",-15,"Karraunicorn","Try and find a cure for the frog",-4,"Frogcure","Visit the Street of the Gods",70,"Streetgods1","Visit the docks",96,"Karradocks","Visit Dead Eye Street",251,"Deadeyeback","Explore the city",0,"Explorekarra","Explore the sewers",133,"Karrasew","Leave the city and travel inland",0,"Leavekarraland","Set out to sea",1,"Leavekarrasea","Break and drink from the Pearl of Wisdom",-21,"Pearlswallow"),

'Pearlswallow'=> array ("It shatters with a sound like music heard in a dream, and you drink the liquid inside.",7,21,0,"Pearlswallow1"),
'Pearlswallow1'=> array ("no text",9,"Streetwise",2,"Pearlswallow2"),
'Pearlswallow2'=> array ("no text",9,"Magic",2,"Pearlswallow3"),
'Pearlswallow3'=> array ("no text",9,"Healing",2,"Pearlswallow4"),
'Pearlswallow4'=> array ("no text",9,"Scouting",1,"Pearlswallow5"),
'Pearlswallow5'=> array ("no text",9,"Seafaring",1,"Karrahub"),

'Karrasew'=> array ("You make your way to the sewer. You stare into the maze-like darkness, seeing or imagining nameless dead things in the shadows all around you.",1,"Karrasew1"),
'Karrasew1'=> array ("Against your will, your thoughts turn to the rating system for spectres. The more horrifying they are, the more 'g's in their name. The least frightening of such beings, for example friendly ghosts who take the form of large-headed children, are 'G-rated'; they're known only as 'ghosts' with one 'g'. But a 'g-ghost' is mildly unnerving, and a 'g-g-g-g-ghost' would be terrifying indeed...",2,2,"Cast a spell","Sewmag","Try and explore by yourself","Sewex"),
// have the option to give up once you work out what to do with keywords.
'Sewmag'=> array ("no text",3,"Magic",21,"Sewmags","Sewmagf"),
'Sewmags'=> array ("A spectral hand appears, pointing down a tunnel that looks the same as all the others. You follow it, and after a while you begin to catch a faint smell which is better than all the others - even pleasant. It resolves into the sickly-sweet smell of cloves, and you hear human voices.",13,"Sewfind"),
'Sewmagf'=> array ("Magic is a thing of air, fire and light, and this place is the very model of earth, damp and dark, so it doesn't surprise you that your spell fails. You sigh and set off on foot.",1,"Sewex"),
'Sewex'=> array ("no text",16,9,"Sewexdwarf","Sewexroll"),
'Sewexdwarf'=> array ("Your ability to see in the dark has the advantage that you can see where you're going, but the disadvantage that you can see where you're going. You almost faint from the horror you're wading in.",9,"Stamina",-2,"Sewexdwarf1"),
'Sewexdwarf1'=> array ("no text",13,"Sewexs"),
'Sewexroll'=> array ("no text",12,2,20,"Scouting","Roguery","Sewlurker","Sewexs","Sewexs"),
'Sewexs'=> array ("You hear what sounds like faint human voices. You cautiously approach. The foul odours of the sewer are replaced by the sickly-sweet scent of cloves.",1,"Sewfind"),
'Sewlurker'=> array ("no text",8,78,1,"Sewlurkermain"),
'Sewlurkermain'=> array ("no text",6,79,"Sewlurkermain1","Sewlurkermain0"),
'Sewlurkermain0'=> array ("You head in what you think is the right direction. The voices grow fainter, and finally stop.",1,"Sewlurkermain1"),
'Sewlurkermain1'=> array ("You walk on for an unmeasured time, waist-deep in cold water. The darkness and silence are so total that you begin to wonder if you're really alive. When a cold tentacle touches your leg, for an instant you're almost relived to feel something.",16,8,"Sewlurkerf","Sewlurker1"),
'Sewlurkerf'=> array ("no text",3,"Heroism",20,"Sewlurkerf1","Sewlurker1"),
'Sewlurkerf1'=> array ("To your joy, your wings unfurl and you rise into the air, out of the water and the grasp of that which lurks under the surface. The pure light of Faerie fills the dank sewer, and the thing cringes from it as if ashamed, and is gone. Slowly the light fades and you fall gently back into the vileness. But you now know that, while cast out, you're not abandoned; you may yet return.",9,"Magic",2,"Sewlurkerw1"),
'Sewlurker1'=> array ("You try and run, to no avail. Your legs are bound by living ropes, and you're dragged under the water.",8,112,"Sewlurkeruw","Sewlurker2"),
'Sewlurkeruw'=> array ("You thank the mermaid for her secret as you lie unbreathing in the water.",1,"Sewlurkeruw1"),
'Sewlurkeruw1'=> array ("The unseen thing simply holds you as you flail at it with your WEAPONNAME. Just as you think you can't stand it any longer, it unbinds you and is gone. You break the surface, spitting out a mouthful of foul water and the unknown lurker's blood.",1,"Sewlurkerw1"),
'Sewlurker2'=> array ("no text",3,"Duelling",17,"Sewlurkeruw1","Sewlurker2f"),
'Sewlurker2f'=> array ("Your chest tightens.",3,"Stamina",23,"Sewlurker2fs","Sewlurker2ff"),
'Sewlurker2fs'=> array ("no text",9,"Stamina",-4,"Sewlurkeruw1"),
'Sewlurker2ff'=> array ("Finally you can stand it no more. You take in a lungful of the foul water. The unseen thing holds you firm as you drown, like one holding their beloved.",0),
'Sewlurkerw1'=> array ("no text",6,79,"Arrestedsewigf","Sewlurkerw1main"),
'Sewlurkerw1main'=> array ("no text",2,2,"Keep exploring","Sewlurkery","Try and find your way out","Sewlurkern"),
'Sewlurkery'=> array ("no text",9,"Heroism",3,"Sewlurkery1"),
'Sewlurkery1'=> array ("no text",12,3,16,"Scouting","Roguery","Stamina","Sewlurkernf0","Sewlurkernf0","Sewexs","Sewexs"),
'Sewlurkernf0'=> array ("no text",8,160,1,"Sewlurkernf0a"),
'Sewlurkernf0a'=> array ("You wander through featureless tunnels until you can hardly put one foot in front of the other, nor find any reason to do so. In despair, you call out to whatever gods may be looking at this cursed place.",12,3,18,"Luck","Heroism","Magic","Sewlurkernff","Sewlurkernff","Sewmags","Sewmags"),
'Sewlurkern'=> array ("no text",12,3,13,"Scouting","Roguery","Stamina","Sewlurkernf1","Sewlurkernf1","Sewlurkerns","Sewlurkerns"),
'Sewlurkernf1'=> array ("no text",6,160,"Sewlurkerns","Sewlurkernf1a"),
'Sewlurkernf1a'=> array ("no text",8,160,1,"Sewlurkernf1b"),
'Sewlurkernf1b'=> array ("You wander through featureless tunnels until you can hardly put one foot in front of the other, nor find any reason to do so. In despair, you call out to whatever gods may be looking at this cursed place.",12,3,18,"Luck","Heroism","Magic","Sewlurkernff","Sewlurkernff","Sewlurkernfs","Sewlurkernfs"),
'Sewlurkernfs'=> array ("With that a new strength and purpose enters you. Whether a god heard you, or whether you have more courage than you thought, you grimly set your jaw and keep wading through the filth.",6,79,"Arrestedsewigf","Sewlurkerns"),
'Sewlurkernff'=> array ("But no one hears you, nor records whether you starve to death, give in to despair and lie down and drown, or are taken by some unknown thing.",0),
'Sewlurkerns'=> array ("Hours later you rise from the sewers, like a dirty and stinking opposite of the sun, which is just showing its face to the highest towers of the city as you show yours to the lowest streets.",8,131,0,"Sewlurkerns1"),
'Sewlurkerns1'=> array ("no text",8,132,0,"Sewlurkerns2"),
'Sewlurkerns2'=> array ("no text",8,133,0,"Sewlurkerns3"),
'Sewlurkerns3'=> array ("no text",8,141,0,"Sewlurkerns4"),
'Sewlurkerns4'=> array ("no text",6,158,"Sewwhatnow",271),
'Sewwhatnow'=> array ("no text",6,56,271,"Sewinform"),
'Sewinform'=> array ("no text",2,2,"Tell the authorities about the rebels","Sewinformy","Forget about it","Sewinformn"),
'Sewinformn'=> array ("A few young people talking big in a sewer doesn't strike you as worthy of calling out the guard.",1,271),
'Sewinformy'=> array ("You eventually find an officer of the government ready to listen to your story - an old wizard with hard, ageless eyes. He thanks you, and gives you a pouch full of shells.",10,20,"Sewinformy0"),
'Sewinformy0'=> array ("no text",8,161,1,"Sewinformy1"),
'Sewinformy1'=> array ("He tells you that the government may well have further use for you. All the way home you wonder whether he was promising, or threatening.",13,140),
'Sewfind'=> array ("To your surprise, the voices seem to be having an animated, intellectual discussion about the theories of the well-known rebel preacher, the gnome Chomsky. The sewers echo eerily with heated political discussion, and the air whirls with clove-scented smoke as you creep closer. You see a small group of humans, mostly young, sitting on a square of stone which is raised above the water level of the sewers, like an island in a river. They're sitting around a brazier, which provides a dim light, the clove smoke, and presumably some heat.",8,158,1,"Sewfind1"),
'Sewfind1'=> array ("They're making no effort to lower their voices. You soon gather that they're plotting to overthrow the government of Karrakara.",2,3,"Listen some more","Sewfindlisten","Announce yourself","Sewfindannounce","Sneak away","Sewfindaway"),
'Sewfindlisten'=> array ("no text",6,55,"Sewfindlistenx","Sewfindlistenspeech"),
'Sewfindlistenspeech'=> array ("One of them says, in a formal tone of voice, 'well, I propose we end the meeting as usual, with a reading.' After murmurs of agreement and a low-voiced conversation, a young woman stands up and reads from a book.",1,"Sewfindlistenspeech1"),
'Sewfindlistenspeech1'=> array ("'Good people' she says, 'things will never go well so long as goods be not in common, and so long as there be peasants and gentlemen. By what right are they whom we call lords greater folk than we? On what grounds have they deserved it? Why do they hold us in serfage? If we all were made by the same gods, how can they say or prove that they are better than we, if it be not that they make us gain for them by our toil what they spend in their pride? They are clothed in velvet and warm in their furs and their ermines, while we are covered with rags. They have wine and spices and fir bread; and we oat-cake and straw, and water to drink. They have leisure and fine houses; we have pain and labour, the rain and the wind in the fields. And yet it is of us and of our toil that these men hold their state.'",8,54,1,"Sewfindlistenspeech2"),
'Sewfindlistenspeech2'=> array ("no text",8,55,1,"Sewfindlistenspeech3"),
'Sewfindlistenspeech3'=> array ("The group nods and mumbles in a satisfied way, as if they'd just had a nice meal. You consider the young woman's words.",2,3,"They inspire you","Sewspeechy","They anger you","Sewspeechn","They leave you indifferent","Sewspeech0"),
'Sewspeechy'=> array ("Your eyes are watering from the smoke and sewer vapours already. However it's just possible that there's a tear in there somewhere. Although both you and the young woman are physically in a sewer, it seems to you that morally you are on very different levels.",8,56,1,"Sewfindlistenx1"),
'Sewspeechn'=> array ("Anger wells up within you. Their ideas sound fine in theory, but you can well imagine the chaos and violence that would follow an attempt to put them into practice. It makes you want to cut their heads off!",8,57,1,"Sewfindlistenx1"),
'Sewspeech0'=> array ("It's not the worst cause you've ever heard of, but you can't imagine making your home in a filthy sewer for it.",1,"Sewfindlistenx1"),
'Sewfindlistenx'=> array ("They lower their voices and, try as you might, you can't make out what they're saying.",1,"Sewfindlistenx1"),
'Sewfindlistenx1'=> array ("no text",17,3,"Announce yourself",0,"Sewfindannounce","Sneak away",0,"Sewfindaway","Attack them",1056,"Sewfindattack"),
'Sewfindaway'=> array ("You turn around and creep quietly away.",6,79,"Arrestedsewigf","Sewfindaway0"),
'Sewfindaway0'=> array ("You realise that you're not quite sure you know the way back.",1,"Sewlurkern"),
'Sewfindattack'=> array ("You yell defiance at the darkness.",3,"Duelling",16,"Sewfindattacks","Sewfindattackf"),
'Sewfindattacks'=> array ("They obviously have no idea of how to use the knives they carry.",1,"Sewfindattackwin"),
'Sewfindattackwin'=> array ("In a few short minutes your WEAPONNAME is covered in blood, and the survivors disappear into the tunnels like rats.",6,79,"Arrestedsewigf","Sewfindattackwin1"),
'Sewfindattackwin1'=> array ("You turn to leave, and suddenly realise you're not sure of the way out.",13,"Sewlurkern"),
'Sewfindattackf'=> array ("One of them stamps out the brazier, and they try and circle around you, as quiet as rats.",16,9,"Sewfindattackd","Sewfindattackf1"),
'Sewfindattackd'=> array ("But of course you've brought their own ruin, because you can see in the dark.",1,"Sewfindattackwin"),
'Sewfindattackf1'=> array ("no text",12,2,20,"Roguery","Streetwise","Sewattackff","Sewattackfs","Sewattackss"),
'Sewattackff'=> array ("You desperately try and keep them at bay, but their knives find your skin again and again, until you sink to your knees in the water and feel a blade scraping across your throat.",0),
'Sewattackfs'=> array ("You desperately strike out at enemies you can't see, with more frenzy than skill. Their blades find your skin a few times, but finally you hear them retreat into the tunnels.",9,"Stamina",-4,"Sewattackfs1"),
'Sewattackfs1'=> array ("Keeping your guard up, you wait until your eyes adjust to the darkness.",6,79,"Arrestedsewigf","Sewattackfs2"),
'Sewattackfs2'=> array ("You suddenly realise you're not sure of the way out.",13,"Sewlurkern"),
'Sewattackss'=> array ("Your WEAPONNAME finds their skin again and again, as if it had the night eyes of a cat. Soon they run off into the tunnels and you're alone.",1,"Sewattackfs1"),
'Sewfindannounce'=> array ("You step out of the shadows and greet them. They're frozen with shock. You calmly announce that you believe they're planning to overthrow the government. Their jaws drop as one, like puppets moved by the same puppeteer. You reflect on the power of a good entrace and calm demeanour.",9,"Charisma",1,"Sewfindannounce1"),
'Sewfindannounce1'=> array ("A young man nervously replies</div><div>'Don't be ridiculous. We're, um...pirates'.</div><div>After a moment, a woman behind him whispers to him:</div><div>'Aaar'.</div><div>'Er, yes. Aaar'.",2,2,"Pretend to believe them","Sewfindy","Express skepticism","Sewfindn"),
'Sewfindy'=> array ("You beg their pardon for your mistake, and turn to leave.",12,3,12,"Charisma","Luck","Streetwise","Sewfindff","Sewfindfs","Sewfindss","Sewfindss"),
'Sewfindss'=> array ("no text",9,"Heroism",2,"Sewfindss1"),
'Sewfindss1'=> array ("You breathe a sigh of relief as you turn the corner into another fetid tunnel.",6,79,"Arrestedsewigf","Sewfindss1a"),
'Sewfindss1a'=> array ("However you breathe it all in again as you realise you're not that sure how to get out.",1,"Sewlurkern"),
'Sewfindfs'=> array ("You've almost disappeared around a corner when you hear one of them hiss 'use the spell dammit'. You feel as if an invisible wave was washing over you, so wonderfully warm that you'd almost be happy to drown in it.",3,"Magic",18,"Sewfindfss","Sewfindfsf"),
'Sewfindfss'=> array ("You shake your head, and face them. You raise your WEAPONNAME, which is better than their knives. But there are so many of them.",1,"Sewfindattack"),
'Sewfindfsf'=> array ("You can feel your memory of the people in the sewers dissolving. You desperately try to bring it back. Then you realise that it was only a daydream, and there's nothing to be found here.",8,158,0,"Sewfindfsfa"),
'Sewfindfsfa'=> array ("no text",6,79,"Arrestedsewss1","Sewfindfsfb"),
'Sewfindfsfb'=> array ("You also realise you're not quite sure of the way out.",1,"Sewlurkern"),
'Sewfindff'=> array ("You've only taken a couple of steps when you feel something ripping your arm, like a cat's claw but far larger and more painful. You look down and see a small arrow, almost a toy, in your arm.",9,"Stamina",-4,"Sewfindfss"),
'Sewfindn'=> array ("You quietly suggest that they're not pirates at all, but rebels, and that rather than them kill you you'd be happy to join them.",13,"Sewfindhub"),
'Sewfindhub'=> array ("no text",4,11,"Sewjoin1","Sewjoin2","Sewjoin3","Sewjoin4","Sewjoin5","Sewjoin6","Sewjoin7","Sewjoin8","Sewjoin9","Sewjoin10","Sewjoin11"),
// accept you if keyword 140 (helped people in town)
'Sewjoin1'=> array ("no text",6,140,"Sewjoin1a","Sewfindhub"),
'Sewjoin1a'=> array ("A young woman says 'one of our members lives in a village in the inland, which was visited by plague. He said no one would come to help them, except for one stranger - you match the description he gave.' You confirm that you are indeed that stranger, and they welcome you warmly.",1,"Sewjoins"),
// Sewjoin2: charisma/heroism saves
'Sewjoin2'=> array ("An older man holds a silver-rimmed mirror up to your face, and tells you to look into it.<br><br>'This mirror is the home of a spirit, who can see the secrets of the heart' he claims.",12,2,16,"Heroism","Charisma","Sewjoin2ff","Sewjoin2fs","Sewjoin2ss"),
'Sewjoin2ff'=> array ("To your horror, your reflection begins bleeding from its eyes and nose, then raises its hands to cover its face, as if grieving, or ashamed.",1,"Sewjoinf"),
'Sewjoin2fs'=> array ("You stare at your reflection, and it stares back. It appears to be a perfectly normal mirror. You start to wonder if this is some obscure riddle, when the man pulls the mirror away with a disgusted oath.",1,"Sewjoinfs"),
'Sewjoin2ss'=> array ("Your reflection smiles warmly at you, and the man laughs and claps you on the back.",1,"Sewjoins"),
// Sewjoin3: kill you if assassin, spell if pirate
'Sewjoin3'=> array ("no text",16,11,"Sewjoin3ass","Sewjoin3a"),
'Sewjoin3ass'=> array ("A young woman looks at you scornfully. 'We're all pretty young here. But we know an assassin when we see one.'",1,"Sewjoinf"),
'Sewjoin3a'=> array ("no text",16,7,"Sewjoin3pir","Sewfindhub"),
'Sewjoin3pir'=> array ("A young woman looks at you pityingly. 'Look, we're not very good at imitating pirates. But we know the real thing when we see it.'",1,"Sewjoinfs"),
// Sewjoin4: kill you if 150 (left cat woman),
// accept you if 151 (broke cat piano)
'Sewjoin4'=> array ("no text",6,150,"Sewjoin4left","Sewjoin4a"),
'Sewjoin4left'=> array ("A young woman says quietly 'someone once said that you should judge people by how they treat animals, because that's how they'd treat people if they could get away with it. You should've rescued those cats.'",12,2,19,"Charisma","Streetwise","Sewjoinf","Sewjoin4b","Sewjoin4b"),
'Sewjoin4a'=> array ("no text",6,151,"Sewjoin4res","Sewfindhub"),
'Sewjoin4b'=> array ("You quickly explain that that must've been your evil twin, who wears the same clothes as you and also has the same name.",1,"Sewjoinfs"),
'Sewjoin4res'=> array ("A young woman says quietly 'someone once said that you should judge people by how they treat animals, because that's how they'd treat people if they could get away with it. You're the one who rescued the cats from that witch.' The rebels smile and pat you on the back.",1,"Sewjoins"),
// Sewjoin 5: based on 'alignment'
'Sewjoin5'=> array ("no text",6,56,"Sewjoin5y","Sewjoin5a"),
'Sewjoin5y'=> array ("The rebels are moved by your obvious sincerity. They pat you on the back and quickly agree to accept you into their group.",1,"Sewjoins"),
'Sewjoin5a'=> array ("no text",6,57,"Sewfindhub","Sewjoin5b"),
'Sewjoin5b'=> array ("They're confused by the insincere tone in your voice. You don't seem to be a government agent sent to kill them. And why would anyone wade through these dangerous and foul sewers if not to kill them or join them?",1,"Sewjoinfs"),
// Sewjoin 6: accept you if you helped the preacher
'Sewjoin6'=> array ("no text",6,174,"Sewjoin6y","Sewfindhub"),
'Sewjoin6y'=> array ("A young man, who you recognise as the street preacher you helped escape, excitedly tells the rebels of your bravery. They quickly agree to accept you into their group.",1,"Sewjoins"),
// Sewjoin 7: accept you if you denounced the Seal of Approval
'Sewjoin7'=> array ("no text",6,211,"Sewjoin7y","Sewfindhub"),
'Sewjoin7y'=> array ("A young woman says 'I know you! You're the one who made the speech against that awful seal!' The rebels smile and pat you on the back.",1,"Sewjoins"),
// Sewjoin8: Sewjoinfs if you're escaping from jail
'Sewjoin8'=> array ("no text",6,79,"Sewjoin8a","Sewfindhub"),
'Sewjoin8a'=> array ("You point out that you have no reason to be on the government's side, given that they put you in jail. One of the rebels shakes her head sadly.<br><br>'No one loves to inform on criminals like other criminals. Anyway, even if you're genuine there might be soldiers five minutes behind you.'",1,"Sewjoinfs"),
// Sewjoin9: Accepted if you destroyed the slavers' camp
'Sewjoin9'=> array ("no text",6,228,"Sewjoin9a","Sewfindhub"),
'Sewjoin9a'=> array ("One of the rebels, older and more dangerous-looking than the others, recognises you from the slavers' camp. The rebels smile and pat you on the back.",1,"Sewjoins"),
// Sewjoin10: Accepted if you made a rebel speech to the arena at Karsh.
'Sewjoin10'=> array ("no text",6,249,"Sewjoin10a","Sewfindhub"),
'Sewjoin10a'=> array ("One the rebels, a foreigner by their look, cries out that you're the one who told the arena at Karsh to rise against their masters. The rebels smile and pat you on the back.",1,"Sewjoins"),
//Sewjoin11: Based on BT-S's opinion.
'Sewjoin11'=> array ("no text",6,19,"Sewjoin11a","Sewfindhub"),
'Sewjoin11a'=> array ("no text",6,20,"Sewjoin11b","Sewjoin11s"),
'Sewjoin11b'=> array ("no text",6,265,"Sewjoin11s","Sewjoin11f"),
'Sewjoin11f'=> array ("To your horror you recognise one of the rebels - Billy Two-Shits. He denounces you savagely, beginning with your real deeds and moving quickly into pure imagination.",1,"Sewjoinfs"),
'Sewjoin11s'=> array ("One of the rebels suddenly claps you on the back, and announces that you're one of his closest friends. You look at him in surprise: it's Billy Two-Shits. Your heart sinks as you imagine the doom waiting for the rebels with Billy on their side.",2,2,"Speak up about Billy","Sewjoin11sy","Say nothing","Sewjoin11sn"),
'Sewjoin11sy'=> array ("Reluctantly you say that you do know Billy, but you're hardly close friends, and in fact you have some doubts about his sanity. Billy screams and accuses you of every crime under the sun.",9,"Heroism",2,"Sewjoin11sy1"),
'Sewjoin11sy1'=> array ("no text",3,"Charisma",20,"Sewjoin11cs","Sewjoin11cf"),
'Sewjoin11cs'=> array ("One of the rebels tells Billy to pipe down. She thanks you for your honesty, and says that they're aware of Billy's problems, but he has a good heart.",9,"Streetwise",1,"Sewjoins"),
'Sewjoin11cf'=> array ("You're loudly denounced from all sides for slandering their good and trusted friend Billy.",12,3,20,"Luck","Heroism","Streetwise","Sewjoinf","Sewjoinf","Sewjoinfs","Sewjoinfs"),
'Sewjoin11sn'=> array ("no text",9,"Heroism",-3,"Sewjoins"),
'Sewjoins'=> array ("The ceremony you enter into is secret, and not one that we'll describe here. But at the end of it, you're a member of the group. They tell you of their founder Bill Posters (who has unfortunately been prosecuted). Then everyone drinks a cup of herbal tea. They explain that proper tea is theft.",8,159,1,"Sewjoins1"),
'Sewjoins1'=> array ("They tell you that they try and work individually, and meet as little as possible, so that if one is caught others will escape. However, they say, you should feel free to contact them if you're in trouble. You bid them goodbye, and they tell you the safest way back to the surface.",13,"Sewjoins1a"),
'Sewjoins1a'=> array ("no text",6,79,"Arrestedsewss1","Sewlurkerns"),
'Sewjoinfs'=> array ("The rebels mutter among themselves. Finally one says 'all right - we can't very well kill you in cold blood, but we're all dead if we're discovered. We can cast a spell on you which'll make you forget you ever saw us. If you don't agree to that, I'm afraid it'll have to be blood.'",2,2,"Accept","Sewjoinfs1","Defy them","Sewfindfss"),
'Sewjoinfs1'=> array ("The rebel waves his hands and chants. You feel as if an invisible wave was washing over you, so wonderfully warm that you'd almost be happy to drown in it.",1,"Sewfindfsf"),
'Sewjoinf'=> array ("Before you can react, you feel a thin knife enter your heart. You see the fetid water rise up to meet you, but you're dead before you hit it.",0),

'Karrahorse'=> array ("no text",6,190,"Karrahorseroll","Karrahorse0"),
'Karrahorse0'=> array ("no text",6,168,"Karrahorseroll","Karrahorse1"),
'Karrahorse1'=> array ("no text",8,190,1,"Karrahorse2"),
'Karrahorse2'=> array ("no text",4,2,"Karrahorseroll","Karrahorse3"),
'Karrahorse3'=> array ("You find a dealer in second-hand riding beasts. They tell you that you're beating your head against a wall trying to sell an ordinary horse here, as anyone with money only wants more exotic mounts. He suggests going to Seriphosa, a large town over the hills which is having its market soon.",2,2,"Set out","Karrahorseleave","Stay in Karrakara","Karrahorsen"),
'Karrahorsen'=> array ("no text",9,"Heroism",-2,"Karrahorseroll"),
'Karrahorseleave'=> array ("no text",8,189,1,"Leavekarraland"),
'Karrahorseroll'=> array ("no text",12,2,20,"Streetwise","Streetwise","Karrahorseff","Karrahorsefs","Karrahorsess"),
'Karrahorsess'=> array ("no text",6,76,"Karrahorsefs","Karrahorsess1"),
'Karrahorsess1'=> array ("no text",8,76,1,"Karrahorsess2"),
'Karrahorsess2'=> array ("As it happens, a fashion for the wild and romantic inland has taken hold of the city's nobility. You find a bored-looking young woman who listens to your adventures and offers you fifteen shells.",2,2,"Accept","Karrahorsess3","Keep looking","Karrahorsess5"),
'Karrahorsess3'=> array ("no text",6,56,"Karrahorsess3a","Karrahorsess3b"),
'Karrahorsess3a'=> array ("You feel a rush of guilt for taking shells from those who, in theory, you regard as villains.",9,"Heroism",-1,"Karrahorsess3b"),
'Karrahorsess3b'=> array ("no text",10,15,"Karrahorsess4"),
'Karrahorsess4'=> array ("no text",7,16,0,140),
'Karrahorsess5'=> array ("no text",6,56,"Karrahorsess5a","Karrahorsess5b"),
'Karrahorsess5a'=> array ("You resolve that this is one thing the nobility can't have just by snapping their fingers.",9,"Heroism",1,"Karrahorsess5b"),
'Karrahorsess5b'=> array ("no text",3,"Streetwise",20,"Karrahorsefs","Karrahorseff"),
'Karrahorsefs'=> array ("no text",6,77,"Karrahorsefs1","Karrahorsefs2"),
'Karrahorsefs1'=> array ("no text",4,2,"Karrahorsess","Karrahorseff"),
'Karrahorsefs2'=> array ("no text",8,77,1,"Karrahorsefs3"),
'Karrahorsefs3'=> array ("It seems that most people in Karrakara who need a horse already have one. There are a few rich enough to buy a horse they don't need, but they want something more fashionable like a zebra, a giant turtle, or a rickshaw pulled by an animated skeleton.<br><br>At last you find a pair of butchers, who offer you eight shells.",2,2,"Accept","Karrahorsefs4","Decline","Karrahorsefs7"),
'Karrahorsefs4'=> array ("no text",10,8,"Karrahorsefs5"),
'Karrahorsefs5'=> array ("no text",7,16,0,"Karrahorsefs6"),
'Karrahorsefs6'=> array ("no text",9,"Heroism",-2,140),
'Karrahorsefs7'=> array ("no text",9,"Heroism",1,"Karrahorsefs8"),
'Karrahorsefs8'=> array ("no text",3,"Streetwise",20,"Karrahorsess","Karrahorseff"),
'Karrahorseff'=> array ("no text",6,19,"Karrahorseff2","Karrahorseff1"),
'Karrahorseff1'=> array ("It seems that most people in Karrakara who need a horse already have one. There are a few rich enough to buy a horse they don't need, but they want something more fashionable like a zebra, a giant turtle, or a rickshaw pulled by an animated skeleton. You wear your boots out in a vain search for a buyer.",9,"Stamina",-1,"Karrahorseff9"),
'Karrahorseff2'=> array ("no text",6,20,"Karrahorseff1","Karrahorseff3"),
'Karrahorseff3'=> array ("You run across Billy Two-Shits. He tells you that he could probably find a buyer for it. You ask him what they'd want with it, and he leers in a manner as unpleasant as it is unenlightening. He says he could get you five shells.",2,2,"Accept","Karrahorseff4","Decline","Karrahorseff5"),
'Karrahorseff4'=> array ("no text",10,5,"Karrahorsefs5"),
'Karrahorseff5'=> array ("no text",9,"Heroism",1,"Karrahorseff6"),
'Karrahorseff6'=> array ("no text",3,"Charisma",17,"Karrahorseff9","Karrahorseff7"),
'Karrahorseff7'=> array ("He is outraged that you refused his help. He tells you that you can rot in hell next time you need his help.",8,20,1,"Karrahorseff8"),
'Karrahorseff8'=> array ("no text",13,"Karrahorseff9"),
'Karrahorseff9'=> array ("no text",2,2,"Let it go","Karrahorseff10","Keep it",271),
'Karrahorseff10'=> array ("You take the horse just outside the city walls, where you let it go. It gallops off without delay.",9,"Heroism",1,"Karrahorseff11"),
'Karrahorseff11'=> array ("no text",7,16,0,37),
'Karraunicorn'=> array ("no text",6,190,"Karraunicornmain","Karraunicorna"),
'Karraunicorna'=> array ("no text",6,168,"Karraunicornmain","Karraunicornb"),
'Karraunicornb'=> array ("no text",8,190,1,"Karraunicornc"),
'Karraunicornc'=> array ("no text",4,2,"Karraunicornmain","Karraunicornd"),
'Karraunicornd'=> array ("A man tells you that you're beating your head against a wall trying to sell it here. He suggests going to Seriphosa, a large town over the hills which is having its market soon.",2,2,"Set out","Karraunicornleave","Stay in Karrakara","Karraunicornn"),
'Karraunicornn'=> array ("no text",9,"Heroism",-2,"Karraunicornmain"),
'Karraunicornleave'=> array ("no text",8,189,1,"Leavekarraland"),
'Karraunicornmain'=> array ("You wearily lead the unicorn, or false unicorn, around the cobbled steets, looking for a buyer.",9,"Stamina",-1,"Karraunicorn2a"),
'Karraunicorn2a'=> array ("no text",12,3,18,"Magic","Magic","Streetwise","Karraunicorn5","Karraunicorn5","Karraunicorn6","Karraunicorn6"),
'Karraunicorn3'=> array ("no text",7,15,0,"Karraunicorn3a"),
'Karraunicorn3a'=> array ("no text",10,15,"Karraunicorn3b"),
'Karraunicorn3b'=> array ("You hand over the unicorn and go on your merry way.",9,"Heroism",-2,140),
'Karraunicorn4'=> array ("The sorcerer looks like his dog just died, but tells you he wouldn't sell a unicorn either.",9,"Heroism",1,"Karraunicornkeep"),
'Karraunicornkeep'=> array ("no text",2,2,"Keep it",271,"Let it go","Karraunicorn12"),
'Karraunicorn5'=> array ("No one believes it's a real unicorn. At last, someone suggests that Long Tom might buy it. Following their directions to a seedy back-street market you find him. He is a squat, brutal-looking humanoid creature, who nonetheless speaks with a sweet, piping voice.",3,"Charisma",18,"Karraunicorn7","Karraunicorn8"),
'Karraunicorn6'=> array ("no text",8,71,1,"Karraunicorn6a"),
'Karraunicorn6a'=> array ("You hear of a sorcerer who sometimes buys things from adventurers. You manage to track him down. He is excited to see a real unicorn in the city. He tells you that their horn has many powers, and offers you fifteen shells.",2,2,"Accept","Karraunicorn3","Decline","Karraunicorn4"),
'Karraunicorn7'=> array ("He says he's prepared to give you the benefit of the doubt and offers you ten shells.",2,3,"Accept","Karraunicorn9","Keep it",271,"Let it go","Karraunicorn12"),
'Karraunicorn8'=> array ("He offers to buy the creature for four shells.",2,3,"Accept","Karraunicorn10","Keep it",271,"Let it go","Karraunicorn12"),
'Karraunicorn9'=> array ("no text",10,10,"Karraunicorn11"),
'Karraunicorn10'=> array ("no text",10,4,"Karraunicorn11"),
'Karraunicorn11'=> array ("no text",7,15,0,271),
'Karraunicorn12'=> array ("You take the beast just outside the city walls, where you let it go. It gallops off without delay. For a few seconds as you watch it, you're sure it was a real unicorn. You think you've just thrown away a lot of cowrie shells, but you feel like you did the right thing.",9,"Heroism",2,"Karraunicorn13"),
'Karraunicorn13'=> array ("no text",7,15,0,37),

'Explorekarra'=> array ("no text",4,24,"e1","e2","e3","e4","e5","e6","e7","e8","e9","e10","e11","e12","e13","e14","e15","e16","e17","e18","e19","e20","e21","e22","e23","Karrathief"),

// e1: noticeboard -> Dahlia Two Voices (if keyword 28=0)
'e1'=> array ("no text",6,28,"Explorekarra",365),

// e2: meet imp (if keyword 50=0)
'e2'=> array ("no text",6,50,"Explorekarra","Imp"),

// e3: street preacher (if keyword 51=0 and at least 1 shell)
'e3'=> array ("no text",6,51,"Explorekarra","e3a"),
'e3a'=> array ("no text",11,1,"Preacher","Explorekarra"),

// e4: courage shop (if keyword 53=0)
'e4'=> array ("no text",6,53,"Explorekarra","Courageshop"),

// e5: John Ball preacher (if keyword 54=0)
'e5'=> array ("no text",6,54,"Explorekarra","Revo"),

// e6: fur trader (if keyword 66=0,
// and if have at least 5 shells,
// and if don't have any fur (from the sphinx)
'e6'=> array ("no text",6,66,"Explorekarra","e6b"),
'e6b'=> array ("no text",11,5,"e6c","Explorekarra"),
'e6c'=> array ("no text",5,11,"Explorekarra","e6d"),
'e6d'=> array ("no text",5,12,"Explorekarra","e6e"),
'e6e'=> array ("no text",5,13,"Explorekarra","Fur"),

// e7: street of the gods (if keyword 70=0)

'e7'=> array ("no text",6,70,"Explorekarra","Streetgods"),

// e8: talking frog for sale
// requires 5 shells,
// keyword 74 to be zero (ie haven't dealt with him already)
// item 4 to be zero (ie don't have him now)
// keyword 75 to be zero (ie haven't had this encounter)

'e8'=> array ("no text",11,5,"e8a","Explorekarra"),
'e8a'=> array ("no text",6,74,"Explorekarra","e8b"),
'e8b'=> array ("no text",5,4,"Explorekarra","e8c"),
'e8c'=> array ("no text",6,75,"Explorekarra","Buyfrog"),

// e9: miscellaneous market

// i) requires at least 10 shells
// ii) not keyword 88
// iii) must lack at least one of black pearl, medallion, crown
// not Rod because may not be able to afford it.

'e9'=> array ("no text",11,10,"e9a","Explorekarra"),
'e9a'=> array ("no text",6,88,"Explorekarra","e9new"),

// e10: docks
// requires 10 shells
// keyword 96 to be zero (ie haven't found it already)

'e10'=> array ("no text",11,10,"e10a","Explorekarra"),
'e10a'=> array ("no text",6,96,"Explorekarra","Karradocks0"),

// e11: mad goblin
// not if 123 OR 61
// if 60, message that not sure, but
// think recognise him from inn

'e11'=> array ("no text",6,123,"Explorekarra","e11a"),
'e11a'=> array ("no text",6,61,"Explorekarra","Madgob"),

// e12: crying child, hence possibly into the sewers
// requires keywords 130 & 131 to be 0

// maybe put another keyword later if there
// are other ways to get into the sewers.

'e12'=> array ("no text",6,130,"Explorekarra","e12a"),
'e12a'=> array ("no text",6,131,"Explorekarra","e12b"),
'e12b'=> array ("no text",8,130,1,"Child"),

// e13: cat piano

'e13'=> array ("no text",6,149,"Explorekarra","e13a"),
'e13a'=> array ("no text",5,22,"Explorekarra","e13b"),
'e13b'=> array ("no text",8,149,1,"Vilenoise"),

'Vilenoise'=> array ("You walk through a deserted and ruined square, which feels as if it has stood undisturbed for centuries. The square is silent but for a vile noise in the distance, which sounds like the tortured cries of something inhuman.",2,2,"Investigate","Vilenoisey","Leave it","Vilenoisen"),
'Vilenoisen'=> array ("no text",9,"Heroism",-2,"Streetgodsleave2"),
'Vilenoisey'=> array ("You see a small crowd gathered around something. As you approach, they eye your WEAPONNAME and back away. The parting crowd reveals a richly-dressed woman, seated in front of a musical instrument operated by a keyboard.",16,1,"Vilenoisetc","Vilenoiseymain"),
'Vilenoisetc'=> array ("A row of normal cats are imprisoned within the instrument - those who are kin to you as apes are kin to humans. The keys of the instrument seem to operate machinery which hurts the cats in some way, causing them to howl. The cats are arranged such that when the keys are pressed, their howls of pain create a macabre music.",6,211,"Vilenoiseatt","Vilenoisey1"),
'Vilenoiseymain'=> array ("A row of cats are imprisoned within the instrument. The keys of the instrument seem to operate machinery which hurts the cats in some way, causing them to howl. The cats are arranged such that when the keys are pressed, their howls of pain create a macabre music.",6,211,"Vilenoiseatt","Vilenoisey1"),
'Vilenoiseatt'=> array ("no text",13,"Vilenoiseatt1"),
'Vilenoiseatt1'=> array ("The woman looks up and notices you. To your surprise, she stands up and points at you. 'You!' she says. 'You denounced the Seal of Approval! The Chamber of Evil Animal-Based Commerce has a reward for your capture!' She starts chanting a spell as you raise your WEAPONNAME.",12,2,21,"Magic","Duelling","Vileff","Vilefs","Viless"),
'Viless'=> array ("The woman is no match for you.",1,"Vilenoisefree"),
'Vilefs'=> array ("You manage to hold off the woman's attacks, retreating across the square until you can turn and run.",1,"Streetgodsleave2"),
'Vileff'=> array ("Strange magics leap from the woman's fingers, and dig into your skin like cats' claws. Bleeding from a dozen points, you turn and run.",9,"Stamina",-4,"Streetgodsleave2"),
'Vilenoisey1'=> array ("no text",2,2,"Try and free the cats","Vilenoisefree","Walk away","Vilenoiseaway"),
'Vilenoisefree'=> array ("You angrily hack at the instrument with your WEAPONNAME until you've freed the cats. The woman curses you in a voice hardly more human than her music and the crowd mutters in a mixture of shame and anger.",16,18,"Vilenoiselm","Vilenoiseroll"),
'Vilenoiselm'=> array ("no text",3,"Streetwise",10,"Vilenoiseroll","Vilenoiseeat"),
'Vilenoiseeat'=> array ("At the sight of so many cats, you're unable to help yourself. You open your jaws wide and gobble one down. It's delicious, but you feel shame under the cats' contemptuous stares.",9,"Stamina",4,"Vilenoiseeat1"),
'Vilenoiseeat1'=> array ("no text",9,"Heroism",-2,"Vilenoiseleave"),
'Vilenoiseroll'=> array ("no text",3,"Charisma",17,"Vilenoises","Vilenoisef"),
'Vilenoises'=> array ("Most of the cats, with the typical ingratitude of their kind, run away without a glance in your direction. However one rubs against your leg.",2,2,"Let it come with you","Vilenoisecat","Leave it","Vilenoiseleave"),
'Vilenoisecat'=> array ("You decide to name it Piteous Mew, in honour of how you found it.",7,22,1,"Vilenoisecat1"),
'Vilenoisecat1'=> array ("Unbeknownst to you, those who decide such things have decreed that carrying a cat is the very essence of fashion.",9,"Charisma",2,"Vilenoiseleave"),
'Vilenoisef'=> array ("With the typical ingratitude of their kind the cats run away without a glance in your direction.",1,"Vilenoiseleave"),
'Vilenoiseleave'=> array ("You stalk off, still fuming with indignation.",8,151,1,"Vilenoisefree1"),
'Vilenoisefree1'=> array ("no text",13,"Streetgodsleave2"),
'Vilenoiseaway'=> array ("You walk away, with the foul noise now sounding like a rebuke.",8,150,1,"Streetgodsleave2"),

// e14: crows call my name

'e14'=> array ("no text",6,152,"Explorekarra","e14a"),
'e14a'=> array ("You pass a street singer, singing the famous ballad 'The Crows Call My Name' by the poet Caaaaaw. Personally you prefer the farmer-poet Noel Cowherd.",8,152,1,"Explorekarra"),

// e15: stage on fire
'e15'=> array ("no text",6,162,"Explorekarra","e15a"),
'e15a'=> array ("Everyone on the streets is talking about the mysterious playwright who arrived in town promising to set the stage on fire. Sadly, on the opening night of his first play it turned out that he meant it literally. Opinion is divided over whether anyone has the right to yell 'theatre' in a crowded fire.",8,162,1,"Explorekarra"),

// e16: Hair Witch

'e16'=> array ("no text",6,192,"Explorekarra","e16a"),
'e16a'=> array ("no text",11,5,"Hair","Explorekarra"),

// e17: Seal of Approval/catscan/spell checker

'e17'=> array ("no text",6,209,"Explorekarra","e17a"),
'e17a'=> array ("no text",11,5,"Seal","Explorekarra"),

// e18: veangeful forest elf / frog

'e18'=> array ("no text",6,217,"Explorekarra","e18a"),
'e18a'=> array ("no text",6,11,"Revengefrog1","Explorekarra"),

// e19: gamblers

'e19'=> array ("no text",6,236,"Explorekarra","e19a"),
'e19a'=> array ("no text",11,1,"Gamblers","Explorekarra"),

// e20: gamblers come back

'e20'=> array ("no text",6,237,"e20a","Explorekarra"),
'e20a'=> array ("You see the group of men who say you owe them 15 shells.",6,255,"e20c","e20b"),
'e20b'=> array ("no text",12,2,20,"Scouting","Magic","e20c","e20c","e20d"),
'e20c'=> array ("no text",11,15,"e20pay","e20die"),
'e20d'=> array ("You cast a druidic charm.<br><br>'I'm not the druid you're looking for!' you cry. Hypnotised, they agree that you can go about your business.",8,255,1,"e20pay1"),
'e20pay'=> array ("As they're armed, you think it's best to pay them.",10,-15,"e20pay1"),
'e20pay1'=> array ("no text",8,237,0,"e20pay2"),
'e20pay2'=> array ("no text",13,"Streetgodsleave2"),
'e20die'=> array ("You try to explain that you don't have the money, but they're not interested. They draw knives and, before you can react, you're stabbed in the heart.",0),

// e21: sweat lodge

'e21'=> array ("no text",6,243,"Explorekarra","Sweatlodge"),

// e22: find Dead Eye Street.

'e22'=> array ("no text",6,251,"Explorekarra","Deadeyest"),

// e23: Daba temple.

'e23'=> array ("no text",6,333,"Explorekarra","Dabatemp"),

'Dabatemp'=> array ("no text",8,333,1,"Dabatemp1"),
'Dabatemp1'=> array ("no text",16,17,"Dabatemps","Dabatemp2"),
'Dabatemp2'=> array ("no text",12,2,23,"Scouting","Seafaring","Explorekarra","Dabatemps","Dabatemps"),
'Dabatemps'=> array ("In an out of-the-way street you're surprised to see a temple to Daba, the god of the Amazons.",2,2,"Enter","Dabatempy","Pass by","Dabatempn"),
'Dabatempn'=> array ("no text",9,"Heroism",-2,"Streetgodsleave2"),
'Dabatempy'=> array ("no text",6,145,"Dabatempyy","Dabatempyn"),
'Dabatempyy'=> array ("You consider asking the priestess about the cryer's story of the worship of Averna taking over the land of the Amazons.",2,2,"Do so","Dabatempyyy","Decline","Dabatempyn"),
'Dabatempyyy'=> array ("She confirms the cryer's story. She tells you that they desperately need someone to investigate the new temple.",1,"Dabatempynss1"),
'Dabatempyn'=> array ("The stern-faced priestess asks you to confess your sins. You feel compelled to obey.",12,2,18,"Heroism","Heroism","Dabatempynff","Dabatempynfs","Dabatempynss"),
'Dabatempynff'=> array ("The priestess tells you that Daba forgives all sins. But her grim demeanour gives you no confidence. You slink out of the temple feeling guiltier than when you came in.",9,"Luck",-4,"Deadeyeruns"),
'Dabatempynfs'=> array ("The priestess tells you that Daba forgives your sins. You leave the temple feeling as if you've left a burden of guilt behind.",9,"Luck",2,"Deadeyeruns"),
'Dabatempynss'=> array ("no text",6,145,"Dabatempynssy","Dabatempynssn"),
'Dabatempynssy'=> array ("Your cowardly silence is to no avail. The priestess says that you obviously have great courage.",1,"Dabatempyyy"),
'Dabatempynssn'=> array ("The priestess says that your sins are obviously outweighed by your courage. She tells you that many of the Amazons have abandoned Daba and taken up the worship of Su-Averna. She says that a priest of Averna visited them, and the Amazons asked him whether Averna would beat Daba in a fight. The priest answered that it was a childish and irrelevant question, and so they beat him and sent him away. Next year another priest came, and the Amazons asked him the same question. He declared that Averna was a goddess of peace and harmony. He, too, was beaten and sent away.",8,145,1,"Dabatempynssn1"),
'Dabatempynssn1'=> array ("A year later a third priest came, and again the Amazons asked him the same question. He thought for a while, then said 'if it was possible for Daba and Averna to have a fight, and if both fought with all their strength, then most likely Averna would beat Daba.' And so scores of Amazons took up the worship of Averna.",1,"Dabatempynssn2"),
'Dabatempynssn2'=> array ("She tells you that they desperately need someone to investigate the new temple.",1,"Dabatempynss1"),
'Dabatempynss1'=> array ("no text",2,2,"Accept","Dabatempynss1y","Decline","Dabatempynss1n"),
'Dabatempynss1n'=> array ("no text",9,"Heroism",-3,"Dabatempynss1n1"),
'Dabatempynss1n1'=> array ("no text",9,"Luck",-2,"Streetgodsleave2"),
'Dabatempynss1y'=> array ("no text",9,"Heroism",2,"Dabatempynss1y1"),
'Dabatempynss1y1'=> array ("Your smile freezes a little when you learn that you'll be sent there by giant catapult. You thank the priestess and prepare to leave the city, perhaps forever.",8,299,1,"Karragovshia1"),

'Deadeyest'=> array ("no text",6,259,"Explorekarra","Deadeyest0"),
'Deadeyest0'=> array ("no text",8,251,1,"Deadeyest1"),
'Deadeyest1'=> array ("Your wandering steps take you to a street of bright lights, pounding music, and miserable faces. A painted mural declares that this is the 'famous and original' Dead Eye Street.",2,2,"Explore the street","Deadeyey","Walk on","Streetgodsleave2"),
'Deadeyeback'=> array ("You return to Dead Eye Street.",6,254,"Deadeyey","Deadeyeback1"),
'Deadeyeback1'=> array ("The street never sleeps; and the pinch-faced touts and gamblers look like they don't either.",8,254,1,"Deadeyey"),
'Deadeyey'=> array ("no text",6,237,"Deadeyey1","Deadeyep"),
'Deadeyey1'=> array ("no text",6,252,"Deadeyep","Deadeyey2"),
'Deadeyey2'=> array ("no text",8,252,1,"Deadeyey3"),
'Deadeyey3'=> array ("no text",4,6,"Deadeyeg1","Deadeyeg2","Deadeyeg3","Deadeyep","Deadeyep","Deadeyep"),
'Deadeyeg1'=> array ("You see the street gamblers who say you owe them money. They're all drunk, and their pockets bulge with shells. They pat you on the back and tell you not to worry about your debt. A smirking, shark-eyed tout welcomes them into a gambling hall.",8,237,0,"Deadeyepremain"),
'Deadeyeg2'=> array ("You see the street gamblers who say you owe them money. They recognise you, and you see their knives. But they wave your words away.<br><br>'Fifteen shells isn't gonna help us now.' one says. They stare at you with desperate eyes. A smirking, shark-eyed tout gestures them into a gambling hall. They enter, stumbling like men going to execution. Somehow you know that you aren't going to see them again.",8,237,0,"Deadeyeg2a"),
'Deadeyeg2a'=> array ("no text",9,"Heroism",-2,"Deadeyeg2b"),
'Deadeyeg2b'=> array ("no text",9,"Luck",-2,"Deadeyepremain"),
'Deadeyeg3'=> array ("You see the street gamblers who say you owe them money.",12,3,16,"Streetwise","Roguery","Luck","Deadeyeg3f","Deadeyeg3f","Deadeyeg3s","Deadeyeg3s"),
'Deadeyeg3f'=> array ("But they see you first.",11,15,"Deadeyeg3rich","e20die"),
'Deadeyeg3rich'=> array ("no text",11,20,"Deadeyeg320","Deadeyeg3no20"),
'Deadeyeg320'=> array ("They have the look of desperate men. They say that you owe them twenty shells, not fifteen. Seeing their sharp knives, you have no choice but to pay.",10,-20,"Deadeyeg3nod"),
'Deadeyeg3no20'=> array ("They have the look of desperate men. They demand all your shells. Seeing their sharp knives, you have no choice but to pay.",10,-20,"Deadeyeg3nod"),
'Deadeyeg3nod'=> array ("A smirking, shark-eyed tout gestures them into a gambling hall and they enter, stumbling like men going to execution. Somehow you know that you aren't going to see them again.",8,237,0,"Deadeyepremain"),
'Deadeyeg3s'=> array ("Luckily they're arguing with a smirking, shark-eyed tout, who seems to be refusing them entry to a gambling hall. You manage to pass by unseen.",1,"Deadeyepremain"),
'Deadeyep'=> array ("no text",6,230,"Deadeyep1","Deadeyemain"),
'Deadeyep1'=> array ("no text",6,257,"Deadeyep2","Deadeyemain"),
'Deadeyep2'=> array ("no text",6,253,"Deadeyemain","Deadeyep3"),
'Deadeyep3'=> array ("no text",8,253,1,"Deadeyepd"),
'Deadeyepd'=> array ("A table where a female elf is challenging all comers to some kind of game catches your eye.",2,2,"Investigate","Deadeyepd1","Walk on","Deadeyemain"),
'Deadeyepd1'=> array ("The elf turns out to be running a shell game. She hides a shell under one of three inverted cups, shuffles them around, then takes bets on which cup hides the shell.<br><br>You watch her for a while. With her slim, near-emaciated body bent over the table, she moves the cups with the speed and precision of a clockwork doll. A small crowd watches for the shell, chasing it with their eyes - yet always choosing an empty cup.<br><br>After a few minutes she looks up. You realise with horror that you know her. It's the pirate who demanded money from you at the docks, and whose corpse you saw with your own eyes.",13,"Deadeyepd2"),
'Deadeyepd2'=> array ("no text",3,"Heroism",22,"Deadeyepds","Deadeyepdf"),
'Deadeyepdf'=> array ("You scream and run, not stopping until you get home. When you calm down you start to think that it was probably just someone who looked like her. But you know you're not going back to find out.",8,259,1,"Deadeyepdf1"),
'Deadeyepdf1'=> array ("no text",8,251,0,"Deadeyepdf2"),
'Deadeyepdf2'=> array ("no text",9,"Streetwise",-3,140),
'Deadeyepds'=> array ("After a second you realise that it must be someone who looks a lot like her. Nonetheless you're quite shaken, and you decide to move on.",8,258,1,"Deadeyemain"),
'Deadeyepremain'=> array ("no text",13,"Deadeyemain"),
'Deadeyemain'=> array ("no text",11,1,"Deadeyemain1","Deadeyeo"),
'Deadeyemain1'=> array ("You watch the never-ending parade of vice.",2,2,"Gamble","Deadeyega","Look for shells some other way","Deadeyeo"),
'Deadeyega'=> array ("no text",4,4,"Deadeyega1","Deadeyega2","Deadeyega3","Deadeyega4"),
'Deadeyega1'=> array ("You wander from one gambling hall to another.",12,2,20,"Luck","Luck","Deadeyegaff","Deadeyegafs","Deadeyegass"),
'Deadeyegaff'=> array ("no text",11,3,"Deadeyegaffr","Deadeyegaffp"),
'Deadeyegaffr'=> array ("You feel like you're winning, but your victories are like drinking salt water, leaving you somehow poorer than before. You walk away still wondering what happened.",10,-5,"Streetgodsleave2"),
'Deadeyegaffp'=> array ("You're soon broke. You try to tell the vicious-looking doormen that you don't have any money, but they just smile and give you another free drink.",1,"Deadeyega4"),
'Deadeyegafs'=> array ("You seem to have the golden touch, picking up shell after shell.",10,8,"Deadeyegasr"),
'Deadeyegass'=> array ("You seem to have the golden touch, picking up shell after shell.",10,15,"Deadeyegasr"),
'Deadeyegasr'=> array ("no text",4,6,"Deadeyega4","Deadeyegasr1","Deadeyegasr1","Deadeyegasr1","Deadeyegasr1","Deadeyegasr1"),
'Deadeyegasr1'=> array ("You can't resist a triumphant smile at the doorman as you leave. Somehow they don't seem too bothered by their defeat.",4,3,"Deadeyegalh","Deadeyegall","Deadeyegals"),
'Deadeyegalh'=> array ("no text",9,"Heroism",-1,"Streetgodsleave2"),
'Deadeyegall'=> array ("no text",9,"Luck",-1,"Streetgodsleave2"),
'Deadeyegals'=> array ("no text",9,"Streetwise",-1,"Streetgodsleave2"),
'Deadeyega2'=> array ("no text",6,261,"Deadeyega","Deadeyega2a"),
'Deadeyega2a'=> array ("no text",8,261,1,"Deadeyega2b"),
'Deadeyega2b'=> array ("no text",12,2,18,"Charisma","Streetwise","Deadeyega3","Deadeyega2fs","Deadeyega2ss"),
'Deadeyega2fs'=> array ("no text",4,3,"Deadeyega1","Deadeyega3","Deadeyega4"),
'Deadeyega2ss'=> array ("A grinning, wide-eyed man with a pair of dice tattooed on his forehead notices you. He throws you a couple of shells and tells you to stop looking so miserable. You hurry away before he changes his mind.",10,2,"Streetgodsleave2"),
'Deadeyega3'=> array ("no text",6,262,"Deadeyega","Deadeyega3a"),
'Deadeyega3a'=> array ("no text",8,262,1,"Deadeyega3b"),
'Deadeyega3b'=> array ("Entering a gambling hall, you bump into a group of drunken sailors coming out. One accuses you of trying to steal her money.",2,2,"Run","Deadeyerun","Argue","Deadeyearg"),
'Deadeyearg'=> array ("no text",6,230,"Deadeyega3c","Deadeyefight"),
'Deadeyega3c'=> array ("no text",6,257,"Deadeyefight","Deadeyega3d"),
'Deadeyega3d'=> array ("no text",6,263,"Deadeyefight","Deadeyega3e"),
'Deadeyega3e'=> array ("no text",8,263,1,"Deadeyega3f"),
'Deadeyega3f'=> array ("It turns out to be the elf pirate who 'asked' you for money. She thumps your back and slurs that you're all right. She threatens to kill anyone who hassles you. You thank her for her kind offer, and hurry away in case she turns nasty again.",1,"Streetgodsleave2"),
'Deadeyefight'=> array ("The sailor is hearing none of it, and swings her meaty fist at your head.",3,"Brawling",20,"Deadeyefights","Deadeyefightf"),
'Deadeyefights'=> array ("You manage to block her punch and run into the crowd. You decide to leave before someone gets killed.",1,"Deadeyeruns"),
'Deadeyefightf'=> array ("no text",9,"Stamina",-3,"Deadeyefightf1"),
'Deadeyefightf1'=> array ("The sailor knocks you to the ground. The crowd draws back as she raises a dagger.",2,2,"Keep fighting","Deadeyefightw","Run","Deadeyerun"),
'Deadeyefightw'=> array ("You raise your WEAPONNAME.",3,"Duelling",22,"Deadeyefightws","Deadeyefightwf"),
'Deadeyefightws'=> array ("With a sickening wet sound you deal a wound. Not waiting to see whether she lives or dies, you spring to your feeat and run into the crowd.",3,"Streetwise",20,"Deadeyeruns","Deadeyerunf"),
'Deadeyefightwf'=> array ("You're too slow. She reaches down and cuts your throat like she was gutting a fish.",0),
'Deadeyerun'=> array ("You run away, farewelled by a chorus of jeering street-life.",3,"Heroism",16,"Deadeyeruns","Deadeyerunf"),
'Deadeyeruns'=> array ("no text",13,"Streetgodsleave2"),
'Deadeyerunf'=> array ("no text",8,259,1,"Deadeyerunf1"),
'Deadeyerunf1'=> array ("no text",8,251,0,"Deadeyerunf2"),
'Deadeyerunf2'=> array ("You vow never to return.",1,"Deadeyeruns"),
'Deadeyega4'=> array ("You find yourself at the far end of the street, in front of a huge, dark building. Like the current of a river, the street seems to have carried you here. There are less people around, and they look more desperate.",8,287,1,"Deadeyega4a"),
'Deadeyega4a'=> array ("no text",5,10,"Deadeyefimp","Deadeyefmain"),
'Deadeyefimp'=> array ("The imp becomes quite hysterical. It begs you not to enter the building. It says you should leave this place and never return.",2,2,"Do so","Deadeyefimp1","Enter","Deadeyefimpn"),
'Deadeyefimp1'=> array ("no text",8,259,1,"Deadeyefimp2"),
'Deadeyefimp2'=> array ("You feel that the imp might be right. Like one wading upriver, you turn around and leave Dead Eye Street forever.",8,251,0,"Streetgodsleave2"),
'Deadeyefimpn'=> array ("no text",9,"Heroism",3,"Deadeyefimpn1"),
'Deadeyefimpn1'=> array ("no text",9,"Streetwise",-1,"Deadeyefmain"),
'Deadeyefmain'=> array ("The doormen in most places on this street have a sneering, superior attitude. But the one here treats you with open hate, snarling and trying to shove you inside.",2,2,"Challenge the doorman","Deadeyefmainc","Enter the hall","Deadeyefmaine"),
'Deadeyefmainc'=> array ("no text",12,3,20,"Streetwise","Charisma","Brawling","Deadeyefmaincf","Deadeyefmaincf","Deadeyefmaincs","Deadeyefmaincs"),
'Deadeyefmaincs'=> array ("He instantly crumples, cringing so convincingly that you almost feel sorry for him.",9,"Heroism",2,"Deadeyefmaine"),
'Deadeyefmaincf'=> array ("He reacts with outrage to your protests. He draws a knife and tells you to get inside the hall now.",2,3,"Do so","Deadeyefmaincfn","Fight him","Deadeyefmaincfny","Run","Deadeyefmaincfnyr"),
'Deadeyefmaincfnyr'=> array ("You turn and run. You hear him howl with rage - then the hiss of his knife flying through the air.",3,"Luck",20,"Deadeyefmaincfnyrs","Deadeyefmaincfnyrf"),
'Deadeyefmaincfnyrs'=> array ("It hisses by you, close enough to feel like a lover blowing in your ear.",1,"Deadeyefmaincfnyrs1"),
'Deadeyefmaincfnyrs1'=> array ("You run until you can taste blood in your mouth, leaving the street of gamblers behind you forever. When you stop running, you start trembling like grass in the wind as you think of how close you came to death.",9,"Heroism",-1,"Deadeyefmaincfnyrs2"),
'Deadeyefmaincfnyrs2'=> array ("no text",9,"Charisma",-1,"Deadeyefmaincfnyrs3"),
'Deadeyefmaincfnyrs3'=> array ("no text",9,"Healing",-1,"Deadeyefmaincfnyrs4"),
'Deadeyefmaincfnyrs4'=> array ("no text",9,"Duelling",-1,"Deadeyefmaincfnyrs5"),
'Deadeyefmaincfnyrs5'=> array ("no text",9,"Brawling",-1,"Deadeyefmaincfnyrs6"),
'Deadeyefmaincfnyrs6'=> array ("no text",9,"Roguery",-1,"Deadeyefmaincfnyrs7"),
'Deadeyefmaincfnyrs7'=> array ("no text",8,259,1,"Deadeyefmaincfnyrs8"),
'Deadeyefmaincfnyrs8'=> array ("no text",8,251,0,"Vilenoisefree1"),
'Deadeyefmaincfnyrf'=> array ("You feel a sharp pain in your back, as if someone had punched you. Then your body betrays you - you fall to the ground, unable to move, and all goes black.",0),
'Deadeyefmaincfny'=> array ("With desperate courage you jump back into the street, raising your WEAPONNAME",3,"Duelling",20,"Deadeyefmaincfnyf1","Deadeyefmaincfnyf"),
'Deadeyefmaincfnyf'=> array ("His knife slices across your face.",9,"Charisma",-3,"Deadeyefmaincfnyf1"),
'Deadeyefmaincfnyf1'=> array ("no text",2,2,"Keep fighting","Deadeyefmaincfnyr2","Run","Deadeyefmaincfnyr"),
'Deadeyefmaincfnyr2'=> array ("no text",16,11,"Deadeyefmaincfnyr2s","Deadeyefmaincfnyr2i"),
'Deadeyefmaincfnyr2i'=> array ("no text",16,3,"Deadeyefmaincfnyr2s","Deadeyefmaincfnyr2main"),
'Deadeyefmaincfnyr2main'=> array ("no text",3,"Brawling",20,"Deadeyefmaincfnyr2s","Deadeyefmaincfnyr2f"),
'Deadeyefmaincfnyr2s'=> array ("You grip your WEAPONNAME and watch the snarling man. You whirl around as you hear footsteps bedhind you. You see a gaudily-dressed pimp with long, snake-like fingers wrapped around an equally slim and sinister dagger. He backs away, pleading that it's not what it looks like, then runs up the street, disappearing into the crowd. You feel as if the very cobblestones will rise up to attack you next.",2,2,"Run","Deadeyefmaincfnyrs1","Charge the doorman","Deadeyefmaincfnyr2s1"),
'Deadeyefmaincfnyr2s1'=> array ("no text",9,"Heroism",3,"Deadeyefmaincfnyr2s2"),
'Deadeyefmaincfnyr2s2'=> array ("You charge the doorman. At the last second he moves aside, like a bullfighter. But he doesn't strike. Instead he bows and mutters politely that he hopes you have a good time, as if every gambler entered the hall shouting and brandishing a WEAPONNAME. Confused, you stumble to a halt.",1,"Deadeyefmaine"),
'Deadeyefmaincfnyr2f'=> array ("You grip your WEAPONNAME and wait for the man to advance. Alas, you don't notice the gaudily-dressed pimp behind you, his long, snake-like fingers wrapped around an equally slim and sinister dagger.",1,"Deadeyefmaincfnyrf"),
'Deadeyefmaincfn'=> array ("no text",9,"Heroism",-3,"Deadeyefmaine"),
'Deadeyefmaine'=> array ("The hall is huge, dark and cold and almost empty. You see a gambler smoking a pipe, so fiercely that he seems to be on fire. Another shakes like one fevered, staring at the rolling dice like a hyena staring at a fresh corpse. The workers, like the doorman, are dressed as richly as kings and queens.",2,3,"Talk to the gamblers","Deadeyefmaine1","Talk to the workers","Deadeyefmaine2","Look at the games","Deadeyefmaine3"),
'Deadeyefmaine1'=> array ("no text",6,159,"Deadeyefmaine1y","Deadeyefmaine1n"),
'Deadeyefmaine1y'=> array ("You recognise one of the gamblers as a fellow-rebel. You greet him. He stares at you. As if talking to himself he whispers 'I wish someone would burn this place down'. His arm moves, handing over shells as if with a will of its own. Suddenly the sorcery upon everyone in this place is plain to see.",6,187,"Deadeyefmaine1yy","Deadeyefmaine1yn"),
'Deadeyefmaine1yy'=> array ("no text",9,"Magic",2,"Deadeyefmainew2"),
'Deadeyefmaine1yn'=> array ("no text",8,187,1,"Deadeyefmainew2"),
'Deadeyefmaine1n'=> array ("The gamblers are all eager to talk. But they all want to talk about gambling. They tell you how their luck's changing and the big win's coming. What they say makes a lot of sense.",9,"Streetwise",-2,"Deadeyefmainew2"),
'Deadeyefmaine2'=> array ("no text",6,151,"Deadeyefmainew","Deadeyefmaine2a"),
'Deadeyefmaine2a'=> array ("no text",6,266,"Deadeyefmainee","Deadeyefmaine2b"),
'Deadeyefmaine2b'=> array ("no text",11,3,"Deadeyemaine2br","Deadeyemaine2bp"),
'Deadeyemaine2bp'=> array ("The workers are friendly and happy to talk, until they see you've got no money.",9,"Streetwise",3,"Deadeyemaine2bp1"),
'Deadeyemaine2bp1'=> array ("no text",9,"Heroism",-3,"Deadeyefmainew2"),
'Deadeyemaine2br'=> array ("The workers are friendly and happy to talk, as long as you keep handing over shells.",10,-10,"Deadeyemaine2br1"),
'Deadeyemaine2br1'=> array ("no text",9,"Streetwise",2,"Deadeyefmainew2"),
'Deadeyefmainew'=> array ("You find an empty table, and exchange an idle greeting with the woman there. She bares her teeth, and hisses at you. The hateful sound freezes your blood. You look at her face and realise that it's the witch whose cat-piano you destroyed!",9,"Heroism",-2,"Deadeyefmainew1"),
'Deadeyefmainew1'=> array ("no text",9,"Magic",-2,"Deadeyefmainew2"),
'Deadeyefmainew2'=> array ("You turn away, meaning to have done with this place. But there's something about the games that won't let you look away...",13,"Deadeyefmaine3"),
'Deadeyefmainee'=> array ("You find an empty table, and exchange idle banter with the woman there; a young elf who looks strangely familiar. She tells you about how she's going to leave here soon, to work in an inn called Serene Dreams. You start to talk about how you've been to Serene Dreams. But then you realise where you've seen her before; on stage at Serene Dreams. For an instant the solid walls of time and space become clear, leaving you like one who walks on solid ground, then suddenly finds themselves falling into an infinite abyss.",9,"Magic",2,"Deadeyefmainew2"),
'Deadeyefmaine3'=> array ("You watch the games. Shells move back and forth like dancers, light reflecting off them like the sun on the sea.",5,26,"Deadeyefmaine3y","Deadeyefmaine3n"),
'Deadeyefmaine3y'=> array ("You remember reading of this in the guide to Dead Eye Street. You force yourself to look away.",6,258,"Deadeyefmaine3yy","Deadeyefmaine3yn"),
'Deadeyefmaine3n'=> array ("no text",6,258,"Deadeyefmaine3ny","Deadeyefmaine3nn"),
'Deadeyefmaine3yy'=> array ("Once again you think of the elven woman you mistook for the the dead pirate. Suddenly you're not sure you made a mistake.",6,187,"Deadeyefmaine16","Deadeyefmaine18"),
'Deadeyefmaine3yn'=> array ("no text",6,187,"Deadeyefmaine19","Deadeyefmaine21"),
'Deadeyefmaine3ny'=> array ("Once again you think of the elven woman you mistook for the the dead pirate. Suddenly you're not sure you made a mistake.",6,187,"Deadeyefmaine19","Deadeyefmaine21"),
// note that ...yn and ...ny are identical except for text.
'Deadeyefmaine3nn'=> array ("no text",6,187,"Deadeyefmaine22","Deadeyefmaine24"),
'Deadeyefmaine16'=> array ("You catch the eye of one of the gamblers. His expression is exactly like the man who told you he wished someone would burn this place.",3,"Magic",16,"Deadeyefmaines","Deadeyefmainef"),
'Deadeyefmaine18'=> array ("no text",3,"Magic",18,"Deadeyefmaines","Deadeyefmainef"),
'Deadeyefmaine19'=> array ("You catch the eye of one of the gamblers. His expression is exactly like the man who told you he wished someone would burn this place.",3,"Magic",19,"Deadeyefmaines","Deadeyefmainef"),
'Deadeyefmaine21'=> array ("no text",3,"Magic",21,"Deadeyefmaines","Deadeyefmainef"),
'Deadeyefmaine22'=> array ("You catch the eye of one of the gamblers. His expression is exactly like the man who told you he wished someone would burn this place.",3,"Magic",22,"Deadeyefmaines","Deadeyefmainef"),
'Deadeyefmaine24'=> array ("no text",3,"Magic",24,"Deadeyefmaines","Deadeyefmainef"),
'Deadeyefmaines'=> array ("no text",11,1,"Deadeyefmaines1","Deadeyefmaines0"),
'Deadeyefmaines0'=> array ("Two bouncers drag you to the door and throw you into the street, swearing at you for having no money to lose.",1,"Deadeyerunf"),
'Deadeyefmaines1'=> array ("You sit down at the nearest table. A grinning young man deals you a hand of cards.<br><br>You play. You manage to hold in a wild desire to bet everything you have on stupid chances. The shells move back and forth like refugees caught between two armies, finding no home or rest. The young man's grin turns into a scowl. At last two bouncers drag you to the doorway and throw you into the street, swearing at you for not losing.",1,"Deadeyerunf"),
'Deadeyefmainef'=> array ("You sit down at the nearest table. A grinning young man deals you a hand of cards.",11,1,"Deadeyemainef1","Deadeyemainef0"),
'Deadeyemainef1'=> array ("no text",11,10,"Deadeyemainefr","Deadeyemainefp"),
'Deadeyemainefr'=> array ("You play. At first you win. Then you lose. Then you lose more trying to win it back. Finally he takes the last of your shells, giggling in triumph. Two bouncers drag you to the doorway and throw you into the street, swearing at you for having no more money.",10,-1000,"Deadeyemainefr1"),
'Deadeyemainefr1'=> array ("no text",9,"Luck",-3,"Deadeyerunf"),
'Deadeyemainefp'=> array ("You play. In only a few minutes, the last of your shells are gone.",22,9,"Deadeyemainefp0","Deadeyemainefa"),
'Deadeyemainefp0'=> array ("Two bouncers drag you into an alley behind the hall and beat you up, swearing at you for having no more money.",10,-1000,"Deadeyemainefp1"),
'Deadeyemainefp1'=> array ("no text",9,"Stamina",-5,"Deadeyemainefp2"),
'Deadeyemainefp2'=> array ("no text",9,"Heroism",-2,"Deadeyemainefr1"),
'Deadeyemainef0'=> array ("You explain that you don't have any money.",1,"Deadeyemainefa"),
'Deadeyemainefa'=> array ("Calmly, he reaches inside your chest and takes your heart, giving you a pile of shells.<br><br>You play, and soon the shells are all gone. You feel sure that your luck's going to change soon. You ask how many shells he'll give you for your soul...",0),
'Deadeyeo'=> array ("no text",4,2,"Deadeyeo0","Deadeyeo1"),
'Deadeyeo0'=> array ("no text",12,2,16,"Roguery","Luck","Deadeyeoff","Deadeyeofs","Deadeyeoss"),
'Deadeyeo1'=> array ("no text",3,"Charisma",15,"Deadeyeo1s","Deadeyeo1f"),
'Deadeyeo1s'=> array ("A drunken gambler tells you to cheer up, and tosses you a couple of shells.",10,2,"Deadeyeoss2"),
'Deadeyeo1f'=> array ("no text",4,2,"Deadeyeoff","Deadeyeofs"),
'Deadeyeoff'=> array ("You hang around for hours, feeling more and more sick and tired. Nothing comes your way but condescending sniggers from the silk-dressed thugs that stand in the doorway of every gambling hall.",9,"Stamina",-2,"Deadeyeofs1"),
'Deadeyeofs'=> array ("You hang around the cold and busy street for hours, gaining nothing but contemptuous sniggers from the silk-dressed thugs that stand in the doorway of every gambling hall.",9,"Streetwise",-1,"Deadeyeofs1"),
'Deadeyeofs1'=> array ("At last you give up and walk on.",1,"Streetgodsleave2"),
'Deadeyeoss'=> array ("no text",4,2,"Deadeyeossa","Deadeyeossb"),
'Deadeyeossa'=> array ("You find a man lying in the gutter, dead to the world. You help yourself to his shells.",10,4,"Deadeyeoss1"),
'Deadeyeossb'=> array ("You find two sailors, shouting insults and punching each other until blood flows. You pick up a few shells that drop from their pockets.",10,4,"Deadeyeoss1"),
'Deadeyeoss1'=> array ("no text",9,"Heroism",-2,"Deadeyeoss2"),
'Deadeyeoss2'=> array ("You hurry away in case someone challenges you.",1,"Streetgodsleave2"),

'Sweatlodge'=> array ("no text",8,243,1,"Sweatlodge0"),
'Sweatlodge0'=> array ("You pass by a sign declaring a sweat lodge - a ritual said to purify any who undertake it. A man stands outside, trying to goad passers-by into entering. He suggests that you lack the courage to take part.",2,3,"Enter the sweat lodge","Sweatlodgey","Argue with him","Sweatlodgea","Pass on","Sweatlodgen"),
'Sweatlodgen'=> array ("no text",9,"Heroism",-1,"Explorekarra"),
'Sweatlodgea'=> array ("no text",3,"Charisma",17,"Sweatlodgeas","Sweatlodgeaf"),
'Sweatlodgeas'=> array ("The man isn't really prepared to be heckled back. He withers under the chill wind of your rhetoric. Eventually he mumbles that you probably do have courage. You walk off, feeling very proud of yourself.",9,"Streetwise",2,"Sweatlodgeas1"),
'Sweatlodgeas1'=> array ("no text",9,"Luck",2,"Sweatlodgeaf1"),
'Sweatlodgeaf'=> array ("The man's patter takes on an ugly tone as you argue with him. Yet instead of walking away in disgust, you feel compelled to keep arguing. After a while, you feel like you really do lack courage. You slink off like a beaten dog.",9,"Streetwise",-2,"Sweatlodgeaf1"),
'Sweatlodgeaf1'=> array ("no text",9,"Heroism",-2,"Streetgodsleave2"),
'Sweatlodgey'=> array ("You enter the sweat lodge. An attendant takes your clothes and gives you a robe. You enter the sweat-lodge proper, a room heated until the air itself feels like a thick, cloying blanket. A small number of devotees stand or lie around the room. They're probably bakers and tailors in real life, but in the sweltering lodge they take on a priestly aspect. Some chant prayers. Others smoke, filling the room with even more cloying vapours. You sit down, determined to stay.<br><br>The sweat starts to pour from your body as if you were a wet sponge being wrung out, or as if the monsoon had arrived early.",13,"Sweatlodgey1"),
'Sweatlodgey1'=> array ("no text",3,"Stamina",20,"Sweatlodgeys","Sweatlodgeyf"),
'Sweatlodgeys'=> array ("But you manage to stay in the room until the coals finally run out, and the place begins to cool down. The attendant has you enter an icy-cold bath, and you get your clothes back and leave. You really do feel like some of the evil has been sweated out of you.",9,"Heroism",2,"Streetgodsleave2"),
'Sweatlodgeyf'=> array ("But the heat is too much. You have the attendant give you your clothes back and stumble into the street. You feel as if your life's blood, not sweat, had poured out of you.",9,"Magic",-1,"Sweatlodgeyf1"),
'Sweatlodgeyf1'=> array ("no text",9,"Brawling",-1,"Sweatlodgeyf2"),
'Sweatlodgeyf2'=> array ("no text",9,"Duelling",-1,"Sweatlodgeyf3"),
'Sweatlodgeyf3'=> array ("no text",9,"Charisma",-1,"Sweatlodgeyf4"),
'Sweatlodgeyf4'=> array ("no text",13,"Streetgodsleave2"),

'Gamblers'=> array ("no text",8,236,1,"Gamblers1"),
'Gamblers1'=> array ("You pass a group of men playing cards for shells. They invite you to join them.",2,3,"Join in","Gamblersf","Join in and cheat","Gamblersch","Decline","Explorekarra"),
'Gamblersf'=> array ("no text",6,187,"Gamblersfmain","Gamblersf1"),
'Gamblersf1'=> array ("no text",3,"Heroism",21,"Gamblersf2","Gamblersfmain"),
'Gamblersf2'=> array ("You chat to the men as you play. One tells you of his adventures on Dead Eye Street, the street of gamblers. An evil place, he calls it. He says he once saw someone bet their life, and drop dead after losing the bet. He whispers that he wishes someone would burn it down.",8,187,1,"Gamblersfmain"),
'Gamblersfmain'=> array ("no text",3,"Luck",20,"Gamblerswin","Gamblerslose"),
'Gamblerswin'=> array ("no text",12,2,20,"Charisma","Streetwise","Gamblerswinsma","Gamblerswinmed","Gamblerswinbig"),
'Gamblerslose'=> array ("no text",12,2,20,"Charisma","Streetwise","Gamblersred","Gamblerslosea","Gamblerslosea"),
'Gamblerslosea'=> array ("no text",11,5,"Gamblersloseb","Gamblerslose3"),
'Gamblersloseb'=> array ("no text",11,10,"Gamblerslosec","Gamblerslose5"),
'Gamblerslosec'=> array ("no text",11,15,"Gamblerslose12","Gamblerslose8"),
'Gamblerslose3'=> array ("no text",10,-3,"Gamblersloseleave"),
'Gamblerslose5'=> array ("no text",10,-5,"Gamblersloseleave"),
'Gamblerslose8'=> array ("no text",10,-8,"Gamblersloseleave"),
'Gamblerslose12'=> array ("no text",10,-12,"Gamblersloseleave"),
'Gamblersloseleave'=> array ("After a flurry of hands you stand up to leave, your coin-purse feeling much lighter.",13,"Streetgodsleave2"),
'Gamblersred'=> array ("You play badly.",11,15,"Gamblersl15","Gamblersbroke"),
'Gamblersbroke'=> array ("At first you think you're going to lose all the shells you have. Then, to your horror, you realise you owe them more than you have.",1,"Gamblerspoor"),
'Gamblersl15'=> array ("When you get up, you're fifteen shells poorer.",10,-15,"Gamblersl151"),
'Gamblersl151'=> array ("no text",13,"Streetgodsleave2"),
'Gamblersch'=> array ("no text",3,"Roguery",20,"Gamblerschs","Gamblerschf"),
'Gamblerschs'=> array ("no text",5,10,"Gamblerschimp","Gamblerschs1"),
'Gamblerschs1'=> array ("no text",4,3,"Gamblersluck","Gamblerscha","Gamblerssw"),
'Gamblerssw'=> array ("no text",3,"Streetwise",20,"Gamblerswinmed","Gamblerswinsma"),
'Gamblersluck'=> array ("no text",3,"Luck",20,"Gamblerswinmed","Gamblerswinsma"),
'Gamblerscha'=> array ("no text",3,"Charisma",20,"Gamblerswinmed","Gamblerswinsma"),
'Gamblerschimp'=> array ("The men obviously assume that the imp is a mere beast. It's able to look at their cards and signal to you.",1,"Gamblerswinbig"),
'Gamblerschf'=> array ("Your clumsy attempts to palm cards fool nobody. Outraged, they call you a cheat.",1,"Gamblerscheathub"),
'Gamblerscheathub'=> array ("no text",4,3,"Gamblersarrest","Gamblersmoney","Gamblersas"),
'Gamblerspoorhub'=> array ("no text",4,2,"Gamblersarrest","Gamblerspooras"),
'Gamblersas'=> array ("no text",6,101,"Gamblerscheathub","Gamblersas1"),
'Gamblersas1'=> array ("In a low voice, one of the men says that there's a way you can pay off the debt. He has a man he wants killed.",2,2,"Accept","Gamblersasy","Refuse","Gamblersas2"),
'Gamblersas2'=> array ("no text",4,2,"Gamblersarrest","Gamblersowe"),
'Gamblerspooras'=> array ("no text",6,101,"Gamblersarrest","Gamblersas1"),
'Gamblersasy'=> array ("The man gives you the details. You wonder how you got into this nightmare. You feel like you're screaming, inside your head where no one can hear. And yet, one part of your mind coldly takes in everything he says.",8,238,1,"Gamblersasy1"),
'Gamblersasy1'=> array ("no text",8,101,1,"Assassinate1b"),
'Gamblersowe'=> array ("no text",4,3,"Gamblersowe1","Gamblersowe1","Gamblersowe2"),
'Gamblersowe1'=> array ("no text",8,237,1,"Gamblersowe2"),
'Gamblersowe2'=> array ("You start to offer some money, but the outraged men brush your words aside. One tells you angrily that you better get fifteen shells, no more and no less.",11,15,"Gamblersowe2pay","Gamblersowe3"),
'Gamblersowe2pay'=> array ("It doesn't sound like they're interested in hearing what you have to say, so you hand over the shells.",10,-15,"Gamblersowe2pay1"),
'Gamblersowe2pay1'=> array ("no text",8,237,0,"Gamblersowe2pay2"),
'Gamblersowe2pay2'=> array ("no text",13,"Streetgodsleave2"),
'Gamblersowe3'=> array ("You walk off, followed by loud threats from the men.",2,5,"Leave the city","Leavekarraland","Look for work",274,"Beg",149,"Steal",292,"Assume it's just talk",140),
'Gamblersmoney'=> array ("no text",4,3,"Gamblers5","Gamblers10","Gamblers15"),
'Gamblers5'=> array ("They demand a 'pony' - five shells - from you.",11,5,"Gamblerspay5","Gamblerspoor"),
'Gamblers10'=> array ("They demand a 'monkey' - ten shells - from you.",11,10,"Gamblerspay10","Gamblerspoor"),
'Gamblers15'=> array ("They demand a 'lady' - fifteen shells - from you.",11,15,"Gamblerspay15","Gamblerspoor"),
'Gamblerspoor'=> array ("You explain that you don't have the money.",1,"Gamblerspoorhub"),
'Gamblerspay5'=> array ("no text",2,2,"Pay up","Gamblersm5","Refuse","Gamblerspoorhub"),
'Gamblerspay10'=> array ("no text",2,2,"Pay up","Gamblersm10","Refuse","Gamblerspoorhub"),
'Gamblerspay15'=> array ("no text",2,2,"Pay up","Gamblersm15","Refuse","Gamblerspoorhub"),
'Gamblersm5'=> array ("no text",10,-5,"Gamblerspaygo"),
'Gamblersm10'=> array ("no text",10,-10,"Gamblerspaygo"),
'Gamblersm15'=> array ("no text",10,-15,"Gamblerspaygo"),
'Gamblerspaygo'=> array ("You pay the gamblers and walk off, followed by dark looks and mumbled threats.",1,"Streetgodsleave2"),
'Gamblersarrest'=> array ("They yell for the city guards, and you're hauled away to jail.",1,"Arrested"),
'Gamblerswinsma'=> array ("no text",22,20,"Gamblerswinsma1","Gamblerswin3"),
'Gamblerswinsma1'=> array ("no text",22,20,"Gamblerswin9","Gamblerswin6"),
'Gamblerswinmed'=> array ("no text",22,20,"Gamblerswinmed1","Gamblerswin3"),
'Gamblerswinmed1'=> array ("no text",22,20,"Gamblerswin12","Gamblerswin6"),
'Gamblerswinbig'=> array ("no text",22,20,"Gamblerswinbig1","Gamblerswin6"),
'Gamblerswinbig1'=> array ("no text",22,20,"Gamblerswin12","Gamblerswin9"),
'Gamblerswin3'=> array ("After a flurry of hands, you're three shells richer.",10,3,"Gamblerswinleave"),
'Gamblerswin6'=> array ("After a flurry of hands, you're six shells richer.",10,6,"Gamblerswinleave"),
'Gamblerswin9'=> array ("After a flurry of hands, you're nine shells richer.",10,9,"Gamblerswinleave"),
'Gamblerswin12'=> array ("After a flurry of hands, you're twelve shells richer.",10,12,"Gamblerswinleave"),
'Gamblerswinleave'=> array ("You walk off, followed by the shocked stares of the men.",13,"Streetgodsleave2"),

'Revengefrog1'=> array ("no text",8,217,1,"Revengefrog2"),
'Revengefrog2'=> array ("An angry-looking creature, half-human and half-frog, stomps along the road. It stops and stares at you. You ask the creature what it wants.<br><br>'I'm actually a wood elf.' it says.<br><br>'Some bastard tricked me and I turned into a frog. A passing dryad tried to change me back, but the change only went half-way.'",6,215,"Revengefrogch","Revengefrogs"),
'Revengefrogch'=> array ("'I'm sorry - for a minute you looked like them.' You stare at the dirt and mumble, wondering why the wood elf doesn't recognise you.",2,3,"Admit the truth","Revengefrogy","Say nothing","Revengefrogn","Try and help the frog","Revengefrogh"),
'Revengefrogs'=> array ("'And you', it concludes, 'are that bastard!'",17,4,"Attack her",0,"Revengefroga","Deny it",0,"Revengefrogd","Try and help the frog",0,"Revengefrogh2","Cast a spell to get rid of her",1255,"Revengefrogm"),
'Revengefrogy'=> array ("You tell the elf that it was you.",12,3,17,"Charisma","Heroism","Brawling","Revengefrogyf","Revengefrogyf","Revengefrogys","Revengefrogys"),
'Revengefrogyf'=> array ("The creature howls with rage, and slashes at you with its dagger.",3,"Duelling",14,"Revengefrogas","Revengefrogyff"),
'Revengefrogyff'=> array ("Its dagger pokes your flesh again and again, like a sewing needle through cloth.",9,"Stamina",-6,"Revengefrogd2fa"),
'Revengefrogys'=> array ("The creature stares at you for a while.<br><br>'Well', it says, 'I guess that's poetic justice.' It walks off. You wonder what it meant.",13,"Streetgodsleave2"),
'Revengefrogn'=> array ("You wish her well in her quest, and walk on.",9,"Heroism",-3,"Streetgodsleave2"),
'Revengefrogh'=> array ("no text",17,4,"Offer to try and find a medical cure",0,"Revengefroghc","Offer to try and find a magical cure",0,"Revengefroghm","Tell her about Janooth",216,"Revengefroghj","Tell her about the magician's apprentice",71,"Revengefrogha"),
'Revengefroghc'=> array ("The creature thanks you.",16,12,"Revengefroghcw","Revengefroghcn"),
'Revengefroghcw'=> array ("no text",12,3,16,"Healing","Charisma","Streetwise","Revengefroghcf","Revengefroghcf","Revengefroghcs","Revengefroghcs"),
'Revengefroghcn'=> array ("no text",12,4,18,"Healing","Charisma","Streetwise","Luck","Revengefroghcf","Revengefroghcf","Revengefroghcf","Revengefroghcs","Revengefroghcs"),
'Revengefroghm'=> array ("The creature thanks you.",16,2,"Revengefroghmm","Revengefroghm1"),
'Revengefroghm1'=> array ("no text",16,12,"Revengefroghmw","Revengefroghm2"),
'Revengefroghmm'=> array ("no text",12,3,16,"Magic","Charisma","Luck","Revengefroghcf","Revengefroghcf","Revengefroghcs","Revengefroghcs"),
'Revengefroghmw'=> array ("no text",12,4,16,"Magic","Charisma","Streetwise","Luck","Revengefroghcf","Revengefroghcf","Revengefroghcf","Revengefroghcs","Revengefroghcs"),
'Revengefroghm2'=> array ("no text",12,4,18,"Magic","Charisma","Streetwise","Luck","Revengefroghcf","Revengefroghcf","Revengefroghcf","Revengefroghcs","Revengefroghcs"),
'Revengefroghcf'=> array ("You do your best, but eventually have to report your failure to the frog.",1,"Revengefrogpf"),
'Revengefrogpf'=> array ("no text",6,218,"Revengefrogyf","Revengefroghcf1"),
'Revengefroghcf1'=> array ("The frog tells you not to worry, and thanks you for looking out for a stranger. It heaps praise on your good nature and courage, each honeyed word lacerating your guilty heart.",9,"Heroism",-3,"Vilenoisefree1"),
'Revengefroghcs'=> array ("After some research you track down a witch who specialises in such cases. You take the creature to her cottage and leave it there, hoping to never see it again.",13,"Streetgodsleave2"),
// later change this so it could lead to Dahlia Two Voices.
'Revengefroghj'=> array ("You tell her about Janooth. She is very grateful, and resolves to set off at once. You silently congratulate yourself on talking your way out of danger...albeit by lying and sending the victim of your lies into danger.",9,"Luck",1,"Revengefroghj1"),
'Revengefroghj1'=> array ("no text",9,"Charisma",1,"Revengefroghj2"),
'Revengefroghj2'=> array ("no text",9,"Heroism",-5,"Streetgodsleave2"),
'Revengefrogha'=> array ("You tell her about the magician's apprentice, saying that he may be able to help.<br><br>You track down the apprentice. Eventually you convince his bodyguard, a creature that seems half beetle and half gnome, to let you in.",13,"Revengefrogha0"),
'Revengefrogha0'=> array ("no text",4,3,"Revengefrogha1","Revengefrogha2","Revengefrogha3"),
'Revengefrogha1'=> array ("The apprentice reluctantly agrees to help her, but angrily tells you never to darken his door with your problems again.",8,71,0,"Streetgodsleave2"),
'Revengefrogha2'=> array ("The apprentice is furious with you for interrupting his work. He angrily tells you to go, and never come again.",8,71,0,"Revengefrogpf"),
'Revengefrogha3'=> array ("The apprentice is happy to help. You leave the frog with him, your conscience slightly clearer.",1,"Streetgodsleave2"),
'Revengefroga'=> array ("You leap forward to defend your honour, such as it is.",3,"Duelling",14,"Revengefrogas","Revengefrogaf"),
'Revengefrogas'=> array ("The poor creature is no match for you, and you soon have it at your mercy.<br><br>'Get out of here' you tell it guiltily. It runs off, its face a study in humiliation.",1,"Revengefroghj2"),
'Revengefrogaf'=> array ("The creature's absurd flesh is weak, but its spirit is more than willing. In a frenzy, it hits you with the pommel of its dagger until you can't stand.",9,"Stamina",-4,"Revengefrogaf1"),
'Revengefrogaf1'=> array ("'Now admit your crime!' it cries.",2,2,"Do so","Revengefrogconf","Deny it","Revengefrogde2"),
'Revengefrogconf'=> array ("no text",3,"Heroism",15,"Revengefrogd2fs","Revengefrogd2ff"),
'Revengefrogde2'=> array ("no text",3,"Charisma",17,"Revengefrogds","Revengefrogd2f"),
'Revengefrogd2f'=> array ("'Damn your lies, you weasel!' the frog sneers.",1,"Revengefrogd2fa"),
'Revengefrogd2fa'=> array ("no text",3,"Luck",15,"Revengefrogd2fs","Revengefrogd2ff"),
'Revengefrogd2fs'=> array ("It kicks you a few times, then tells you you're not worth taking revenge on.",9,"Stamina",-2,"Revengefrogd2fs1"),
'Revengefrogd2fs1'=> array ("Once the frog leaves, you get up and head in the opposite direction.",13,"Streetgodsleave2"),
'Revengefrogd2ff'=> array ("'I shall be avenged!' it cries. You feel webbed hands around your throat, and then the world goes black.",0),
'Revengefrogd'=> array ("You angrily reject this slur on your honour.",9,"Heroism",-2,"Revengefrogd1"),
'Revengefrogd1'=> array ("no text",12,3,20,"Charisma","Streetwise","Heroism","Revengefrogdf","Revengefrogdf","Revengefrogds","Revengefrogds"),
'Revengefrogh2'=> array ("no text",8,218,1,"Revengefrogh"),
'Revengefrogdf'=> array ("You notice that a crowd has gathered. None of them, not even people you know, will look you in the eye.",9,"Charisma",-3,"Revengefrogdf1"),
'Revengefrogdf1'=> array ("no text",17,3,"Offer to help her",0,"Revengefrogh2","Attack her",0,"Revengefroga","Cast a spell to get rid of her",1255,"Revengefrogm"),
'Revengefrogds'=> array ("'Oh...well, I'm sorry' the frog says,<br><br>'You looked a bit like them.'",1,"Revengefrogn"),
'Revengefrogm'=> array ("no text",12,2,20,"Scouting","Magic","Revengefrogmf","Revengefrogmf","Revengefrogms"),
'Revengefrogmf'=> array ("Your spell has no effect.",1,"Revengefrogyf"),
'Revengefrogms'=> array ("You cast a druidic charm.<br><br>'I'm not the druid you're looking for!' you cry. Hypnotised, the frog agrees that you can go about your business.",8,255,1,"Vilenoisefree1"),

'catscan'=> array ("You stand inside a complicated clockwork machine, which spits out a sheet of parchment. A doctor looks at it, murmurming.",16,1,"catscancat","catscan1"),
'catscan1'=> array ("no text",5,22,"catscany","catscann"),
'catscancat'=> array ("'Well, there's no doubt about it. You are indeed a cat.' You go on your way with an utter smugness, that should be revolting but is somehow adorable.",9,"Charisma",2,"catscany1"),
'catscany'=> array ("The doctor looks at Piteous Mew.<br><br>'Yes, no doubt about it. That's a cat all right'. Greatly relived, you go on your way.",9,"Heroism",1,"catscany1"),
'catscany1'=> array ("no text",13,"Streetgodsleave2"),
'catscann'=> array ("'Well, it was very lucky you came to us. The test showed that you don't have a cat. Here you are - it's named Piteous Mew.'",7,22,1,"catscann1"),
'catscann1'=> array ("no text",8,149,1,"catscann2"),
'catscann2'=> array ("no text",9,"Charisma",2,"catscann3"),
'catscann3'=> array ("Greatly relived, you go on your way.",13,"Streetgodsleave2"),

'Spellcheck'=> array ("no text",10,-5,"Spellcheck1"),
'Spellcheck1'=> array ("A gnome in a fashionable velvet waistcoat asks you to try and cast a spell.",3,"Magic",16,"Spellchecks","Spellcheckf"),
'Spellchecks'=> array ("'No errors. Readability statistics. Average Sigils per Incantation: ten.' the gnome rattles off a list of numbers. Confident in your status as a mighty wizard, you leave.",9,"Charisma",2,"Spellcheckleave"),
'Spellcheckf'=> array ("'You used the Dread Name of Knowing, instead of the Dread Syllable of Knowing. Ignore once? Ignore all? Change? Change all?' he barks at you. In the end you have corrected many of your spells.",9,"Magic",2,"Spellcheckleave"),
'Spellcheckleave'=> array ("no text",13,"Streetgodsleave2"),

'Seal'=> array ("no text",8,209,1,"Seal1"),
'Seal1'=> array ("You enter a square crowded with shops, from elegant boutiques to raucous medicine shows. The square is packed with humans, talking animals and other creatures. Several establishments catch your eye.<br><br>An elegantly engraved plaque announces 'Spell Checker: 5 shells'. There is a queue of people waiting to go in.<br><br>You also see a crudely hand-lettered sign: 'Seal of Approval: 2 Shells'. A line of sad-looking people are lined up outside a tent.<br><br>Finally, on the other side of the square you see a third sign: 'medical clinic - free catscans'. It too has a queue of people.",2,4,"Join the queue for the Spell Checker","Spellcheck","Investigate the Seal of Approval","Seal2","Get a catscan","catscan","Walk on","Streetgodsleave2"),
'Seal2'=> array ("You join the queue, and eventually it's your turn to pay and go in.",10,-2,"Seal3"),
'Seal3'=> array ("Inside, a seal basks on a rock. It spends half an hour telling you that you're absolutely right, you can do it, and you should go for it right now.",9,"Heroism",4,"Seal4"),
'Seal4'=> array ("no text",9,"Streetwise",-2,"Seal5"),
'Seal5'=> array ("The seal's bland words are reassuring, but you're not sure how useful they'll be in the long term.",2,2,"Denounce the seal","Seal6","Walk on","Seal7"),
'Seal6'=> array ("You stand outside the tent and deliver a speech denouncing those who give meaningless slogans instead of real help.",8,211,1,"Seal6a"),
'Seal6a'=> array ("no text",3,"Charisma",20,"Seal6s","Seal6f"),
'Seal6f'=> array ("The crowd listens for a while, but returns to their line. Finally you walk off, thinking that you'll never understand people.",9,"Streetwise",-2,"Streetgodsleave2"),
'Seal6s'=> array ("The crowd listens for a while, first skeptically, but eventually roaring with approval.",9,"Heroism",2,"Seal6s1"),
'Seal6s1'=> array ("no text",6,56,"Seal6sreb","Seal6sother"),
'Seal6sother'=> array ("You walk off, with a sense of satisfaction at a job well done. The seal glares at you from the tent entrance.",13,"Streetgodsleave2"),
'Seal6sreb'=> array ("Almost without realising it, your speech turns to the root cause of people's unhappiness, their opression at the hands of the lords and merchants. The crowd nods and cheers. You hope that the seal doesn't get the city guard.",3,"Luck",20,"Sealrebs","Sealrebf"),
'Sealrebs'=> array ("But fortune is with you, and you're able to end your speech and walk on, with a sense of satisfaction at a job well done. The seal glares at you from the tent entrance.",13,"Streetgodsleave2"),
'Sealrebf'=> array ("no text",6,212,"Sealrebs","Sealrebf1"),
'Sealrebf1'=> array ("no text",8,212,1,"Sealrebf2"),
'Sealrebf2'=> array ("As if on cue, a patrol of the city guard appears. The sergeant orders the crowd to disperse, and tells you you're under arrest.",2,2,"Run","Revorun1","Fight them","Revofight2"),
'Seal7'=> array ("no text",6,56,"Seal7a","Seal7b"),
'Seal7a'=> array ("You leave, with the guilty knowledge that the rebel whose preaching so inspired you wouldn't have stayed silent.",9,"Heroism",-2,"Streetgodsleave2"),
'Seal7b'=> array ("no text",3,"Heroism",20,"Seal7c","Streetgodsleave2"),
'Seal7c'=> array ("You leave, with a few guilty looks over your shoulder at the people lining up for their false hope.",9,"Heroism",-2,"Streetgodsleave2"),

'Hair'=> array ("no text",8,192,1,"Hair1"),
'Hair1'=> array ("You pass a shop called The Hair Witch Project.",2,2,"Go in","Hair2","Walk on","Streetgodsleave2"),
'Hair2'=> array ("You enter. A woman clad in bright colours looks you over with an unforgiving eye. You can tell she's a hairdresser, because she has a horrible hairstyle.",3,"Charisma",15,"Hairs","Hairf"),
'Hairs'=> array ("She smiles at you and says 'Yep, definitely. I'll buy your hair for four shells.'",2,2,"Sell your hair","Hairsy","Decline","Hairsn"),
'Hairsy'=> array ("She pays you and you sit down.",10,4,"Hairsy1"),
'Hairsy1'=> array ("She holds up her hand, revealing long, sharp fingernails which she uses to clip your hair. She holds up a mirror. You are horrified at the stunted, thin bristles which sprout from your head, like the lawn of a palace, once luxuriant but now blighted by the sun.",9,"Charisma",-3,"Hairsy2"),
'Hairsy2'=> array ("no text",8,194,1,"Hairsy3"),
'Hairsy3'=> array ("no text",16,15,"Hairsyc","Hairsy4"),
'Hairsy4'=> array ("no text",16,9,"Hairsyd","Hairsy5"),
'Hairsyd'=> array ("Any human would still describe you as long of hair and beard. But in the mirror you see a dwarfen male who has consented to the mutilation of himself, and cut his very hair. You feel like wisdom, age and experience have all fallen beneath the witches' blades.",9,"Streetwise",-2,"Hairsy5"),
'Hairsyc'=> array ("The face that looks back at you is sickeningly familiar. You see, not an accomplished and worldly courtesan, but a nervous boy in makeup. It is as if the witch has hideously fulfilled that lying promise of all who sell beauty - and taken away twenty years.",9,"Streetwise",-2,"Hairsy5"),
'Hairsy5'=> array ("She grins at you with small, pointed teeth as you exit the shop.",13,"Streetgodsleave2"),
'Hairret'=> array ("You make your way back to the shop. The brightly-clad woman smiles at you. 'So...the little mouse was not so clever after all hmm? You have returned - returned to the trap, hoping to find sustenance, and finding only YOUR DOO...ahem, awesome, welcome back!'",8,195,0,"Hairsy"),

'Hairsn'=> array ("'Well, come back if you change your mind'.",8,195,1,"Streetgodsleave2"),
'Hairf'=> array ("She smiles at you and says 'I know what you need - hair extensions! They're only five shells today!",2,2,"Buy the hair extensions","Hairfy","Decline","Hairfn"),
'Hairfn'=> array ("She looks at you and says doubtfully 'OK...well, I guess it doesn't matter what other people say.'",3,"Heroism",15,"Hairhs","Hairhf"),
'Hairhf'=> array ("Fear grips your heart - what does she know about what people will say?",9,"Streetwise",-1,"Hairhf0"),
'Hairhf0'=> array ("no text",2,2,"Change your mind","Hairfy","Leave","Streetgodsleave2"),
'Hairhs'=> array ("You smirk at her feeble ploy.",9,"Streetwise",1,"Streetgodsleave2"),
'Hairfy'=> array ("You pay her and sit down.",10,-5,"Hairfy1"),
'Hairfy1'=> array ("She calls out 'Felix, can you bring some hair extensions?'. Felix, a small man with darting eyes and a long, thin, mustache, brings out a handful of thick strands of hair. They writhe in his hand like the tails of rats. The bright woman weaves them into your hair. She holds up a mirror. 'They'll look great once they stop moving' she says. Horrified at the nest of squirming, wriggling things, as if rats had burrowed into your head and become trapped, you leave the shop.",9,"Charisma",-3,"Hairfy2"),
'Hairfy2'=> array ("no text",8,193,1,"Hairfy3"),
'Hairfy3'=> array ("no text",13,"Streetgodsleave2"),

'Child'=> array ("You notice a very unattractive child, who seems to be walking along as slowly as he can, and fighting back tears.",2,2,"Ask him what's wrong","Childy","Pass by","Childn"),
'Childn'=> array ("no text",3,"Streetwise",16,"Childns","Childnf"),
'Childns'=> array ("Although you hate to ignore his distress, you know that some gangs use children to snare the unwary, leading well-meaning adults into an out-of-the-way place where they can be robbed.",9,"Heroism",-1,"Streetgodsleave2"),
'Childnf'=> array ("no text",9,"Heroism",-3,"Streetgodsleave2"),
'Childy'=> array ("no text",16,0,"Childyclown","Childymain"),
'Childyclown'=> array ("The child screams at your grotesque appearance. A patrol of the city guards appears and arrests you.",1,"Arrested"),
'Childymain'=> array ("You approach the child and ask him what's wrong. With trembling lip, he tells you that he was supposed to bring a very important key to his uncle, but he dropped it and it fell into a sewer.",2,3,"Try and help him","Childhelp","Try and make him feel better","Childcomfort","Leave","Childno"),
'Childno'=> array ("no text",3,"Magic",19,"Childnos","Childnf"),
'Childnos'=> array ("Something rings false in the child's story. You press him for more details. You sense some un-natural element to the way he talks about the key, and his uncle - at once refusing to give any details, yet weighing all with a sinister significance. In short, you suspect dark magic to be at work. You back away from the child, whose pleas become more urgent, rising in tone until they sound more like the hissing of a cornered rat than the voice of a child. You break into a run, only stopping when you get back to your room.",13,271),
'Childcomfort'=> array ("You tell the child what you believe to be true, that things that seem huge and awful to a child will often seem less so to an adult.",3,"Charisma",17,"Childcs","Childcf"),
'Childcs'=> array ("He looks at you as a prisoner looks at a door in his cell which he didn't even know was there as it swings open. He wipes his eyes, nose, and forehead, and thanking you sets off at a brisk pace.",9,"Heroism",2,"Childcs1"),
'Childcs1'=> array ("no text",13,"Streetgodsleave2"),
'Childcf'=> array ("He stares at you with eyes as full of tears as they are empty of understanding.",2,2,"Try and help him","Childhelp","Give up","Childcf1"),
'Childcf1'=> array ("no text",4,3,"Childnf","Childn","Childno"),
'Childhelp'=> array ("The child takes you to where he dropped the key - one of the many grilles that lead to Karrakara's extensive sewer system. You can't fit your arms through, or dislodge the grille. But in Karrakara there's always an opportunity to wallow in filth, and you soon find a nearby grille which you can both remove and fit through.",1,"Childhelp1"),
'Childhelp1'=> array ("As Karrakara is to the world, so the sewers are to Karrakara. The smell is over-powering.",3,"Stamina",21,"Childhelps","Childhelpf"),
'Childhelpf'=> array ("no text",9,"Stamina",-2,"Childhelpf1"),
'Childhelpf1'=> array ("Your vomit actually seems to make the sewer smell better.",3,"Heroism",15,"Childhelps","Childhelpf2"),
'Childhelpf2'=> array ("You climb back into the street, your eyes watering as if you're mourning the time when you smelled pleasant. You tell the child that you can't do it. He seems to understand, and sets off at a funeral-like pace.",13,"Childhelps2"),
'Childhelpf3'=> array ("You make your way to the nearest public baths, where you drown yourself and your clothes in every scent and soap available.",10,-2,271),
'Childhelpf4'=> array ("You make your way back to your room, where you wash yourself and your clothes as best you can. You feel like the sewer has somehow branded you, so that you're going to be able to smell it on yourself whether it's really there or not.",9,"Charisma",-1,271),
'Childhelps'=> array ("Although it's rather like being trapped in some great beast's intestines, your search is at least brief. You find the key and return it to the grateful child.",9,"Heroism",2,"Childhelps1"),
'Childhelps1'=> array ("no text",8,131,1,"Childhelps1a"),
'Childhelps1a'=> array ("no text",13,"Childhelps2"),
'Childhelps2'=> array ("no text",22,10,"Childhelpf3","Childhelpf4"),

'Madgob'=> array ("As you wander the city you are accosted by a wide-eyed, staring goblin.",8,123,1,"Madgob1"),
'Madgob1'=> array ("no text",6,60,"Madgobmessage","Madgobmain"),
'Madgobmessage'=> array ("You aren't sure, but it looks to you like the goblin you met in the inn. If so, he has degenerated horribly.",1,"Madgobmain"),
'Madgobmain'=> array ("He grabs your arm and babbles at you: 'I brought Am-Kesh and all her gods under the same law. I was stared at, hooted at, grinned at, chattered at, by monkeys, by parakeets, by cockatoos. I ran into pagodas, and was fixed, for centuries, at the summit, or in secret rooms: I was the idol; I was the priest; I was worshipped; I was sacrificed. I fled from the wrath of Aal-Tep through all the forests of the world: Numen Mari hated me; the Sky Father laid wait for me. I came suddenly upon Anhotep and the Crone : I had done a deed, they said, which the ibis and the crocodile trembled at. I was buried for a thousand years, in stone coffins, with mummies and sphinxes, in narrow chambers at the heart of eternal tombs. I was kissed, with cancerous kisses, by crocodiles; and laid, confounded with all unutterable slimy things, amongst the reeds and mud of the great river!'",11,2,"Madgobshells","Madgobnoshells"),
'Madgobshells'=> array ("'I beg of you, bless me, or at least give me some shells.'",2,3,"Bless him","Madgobbless","Give him a couple of shells","Madgobgive","Ignore him","Streetgodsleave2"),
'Madgobnoshells'=> array ("'I beg of you, bless me.'",2,2,"Bless him","Madgobbless","Ignore him","Streetgodsleave2"),
'Madgobgive'=> array ("You give him a couple of shells. He bows his head and says 'thank you.'",10,-2,"Madgobgive1"),
'Madgobgive1'=> array ("no text",22,6,"Madgobgivef","Madgobgives"),
'Madgobgivef'=> array ("no text",22,6,"Madgobgiveff","Madgobgivefs"),
'Madgobgives'=> array ("no text",22,6,"Madgobgivefs","Madgobgivess"),
'Madgobgiveff'=> array ("no text",9,"Heroism",1,"Madgobend"),
'Madgobgivefs'=> array ("no text",9,"Heroism",2,"Madgobend"),
'Madgobgivess'=> array ("no text",9,"Heroism",3,"Madgobend"),
'Madgobend'=> array ("Sadly, you travel on.",1,"Streetgodsleave2"),
'Madgobbless'=> array ("You bless him as best you can.",3,"Heroism",20,"Madgobblesss","Madgobend"),
'Madgobblesss'=> array ("He looks around as if seeing the world for the first time. 'Medra's balls!' He cries. 'I think you've cured me!' He slaps you on the back joyfully. 'By the Nine Gods, I'll never forget this! If you're ever in Tok, you won't have to pay for anything, I swear it!'. He hurries off, almost skipping with happiness. You smile, hoping he finds his way back to Tok safely, wherever that may be.",9,"Luck",3,"Madgobblesss1"),
'Madgobblesss1'=> array ("no text",8,61,1,"Selleron9"),

'Karradocks0'=> array ("You have found the docks area. The docks at Karrakara have ships from all over the known world, and sometimes beyond. There's also a small cluster of temples here.",8,96,1,"Karradocks1"),
'Karradocks1'=> array ("no text",3,"Seafaring",10,"Karradocks2","Karradocks3"),
'Karradocks2'=> array ("no text",3,"Seafaring",25,"Karradocks10","Karradocks15"),
'Karradocks3'=> array ("no text",3,"Seafaring",25,"Karradocks15","Karradocksb"),
'Karradocks10'=> array ("no text",8,97,1,"Karradocksb"),
'Karradocks15'=> array ("no text",8,98,1,"Karradocksb"),
'Karradocksb'=> array ("no text",3,"Seafaring",18,"Karradockss","Karradocks"),
'Karradockss'=> array ("no text",8,100,1,"Karradocks"),
'Karradocks'=> array ("You wander along the waterfront, breathing in the sea air and dodging the touts and drunken sailors.",3,"Seafaring",15,"Karradocksmain","Karradockse"),
'Karradockse'=> array ("You look at the beautiful ships, and try and avoid giving any attention to the lowlives.",4,2,"Karradocksshells","Karradocksfight"),
'Karradocksshells'=> array ("no text",11,5,"Karradocksshells1","Karradocksfight"),
'Karradocksshells1'=> array ("no text",10,-5,"Karradocksmain"),
'Karradocksfight'=> array ("no text",4,2,"Karradocksfightmain","Karradocksfightp"),
'Karradocksfightp'=> array ("no text",6,230,"Karradocksfightmain","Karradocksfightp0"),
'Karradocksfightp0'=> array ("no text",11,7,"Karradocksfightp1","Karradocksfightmain"),
'Karradocksfightp1'=> array ("Alas, you bump into a drunken pirate, in town on shore leave - or as pirates call it, 'arrrr and arrrr'.",8,230,1,"Karradocksfightp2"),
'Karradocksfightp2'=> array ("The pirate, a slim elf woman, holds up a strange machine. Her slurred mutterings are hard to follow, but you gather she's threatening you and demanding shells.",2,4,"Give 7 shells","Karradocksp7","Give 5 shells","Karradocksp5","Give 3 shells","Karradocksp3","Give nothing","Karradocksp0"),
'Karradocksp7'=> array ("You pay her and she declares you her best mate. She tells you she needs the money to buy a new mizzen-mast. Apparently the old one's mizzen. She stumbles off.",10,-7,"Karradocksmain"),
'Karradocksp5'=> array ("no text",12,2,18,"Luck","Heroism", "Karradockspshot","Karradocksp5i","Karradocksp5i"),
'Karradocksp5i'=> array ("You pay her and she declares you her best mate. She tells you she needs the money to buy a new mizeen-mast. Apparently the old one's mizzen. She stumbles off.",10,-5,"Karradocksmain"),
'Karradocksp3'=> array ("no text",12,2,18,"Charisma","Streetwise","Karradockspshot","Karradockspshot","Karradocksp3i"),
'Karradocksp3i'=> array ("You pay her and she declares you her best mate. She tells you she needs the money to buy a new mizzen-mast. Apparently the old one's mizzen. She stumbles off.",10,-3,"Karradocksmain"),
'Karradocksp0'=> array ("no text",16,7,"Karradocksp0p","Karradocksp0n"),
'Karradocksp0p'=> array ("no text",3,"Charisma",19,"Karradocksp0ps","Karradocksp0n"),
'Karradocksp0ps'=> array ("You let forth a torrent of nautical swearing. The kindest remark you utter is a threat to gut her like a rainbow trout. She stares at you, then stumbles off.",1,"Karradocksmain"),
'Karradocksp0n'=> array ("You notice she's dropped some shells. You pick them up and hand them to her.",3,"Roguery",20,"Karradocksp0s","Karradockspshot"),
'Karradocksp0s'=> array ("She laughs at her successful robbery, and stumbles off.",1,"Karradocksmain"),
'Karradockspshot'=> array ("She's outraged by your paltry offering. She pulls a switch on the machine, and there's an enormous boom and a cloud of black smoke.",1,"Karradockshothub"),
'Karradockshothub'=> array ("no text",4,6,"Karradockshot1","Karradockshot2","Karradockshot2","Karradockshot2","Karradockshot3","Karradockshot3"),
'Karradockshot1'=> array ("You look down, and see a nail sticking out of your chest.",9,"Stamina",-5,"Karradockshot1a"),
'Karradockshot1a'=> array ("The pirate stares at your wound, and her mouth opens like a feeding fish. Then she turns and runs.",13,"Karradocksmain"),
'Karradockshot2'=> array ("When the smoke clears, nothing has happened. The pirate turns the machine around and stares at it, wrinkling her brow. Then there's another boom, and another cloud of smoke. When the smoke has cleared, the pirate is lying dead.<br><br>Bystanders decide that you were probably responsible and, despite your protests, you're arrested.",8,257,1,"Karradockshot2a"),
'Karradockshot2a'=> array ("no text",13,"Arrested"),
'Karradockshot3'=> array ("no text",6,24,"Karradockshothub","Karradockshot3i"),
'Karradockshot3i'=> array ("To your shame, you faint.<br><br>When you wake up, you've been arrested for vagrancy. Luckily, the guard tells you, someone has kindly paid your fine. Your heart sinks at the sneer in his voice.",8,18,1,"Karradockshot3ii"),
'Karradockshot3ii'=> array ("Along with some other unfortunates you're put in a cart and taken into the wilderness. Eventually you're transferred to a ship, bound for a barbarian city. You've been sold as a slave, to fight to the death as a gladiator.",8,224,1,"Karradockshot3iv"),
'Karradockshot3iv'=> array ("no text",13,"Gladiatorslave"),

'Karradocksfightmain'=> array ("One of whom is unwilling to accept your apology for his running into you.",13,"Karradocksfight0"),
'Karradocksfight0'=> array ("no text",16,15,"Karradocksfightc","Karradocksfightm"),
'Karradocksfightc'=> array ("no text",4,2,"Karradocksfightcc","Karradocksfightcs"),
'Karradocksfightcc'=> array ("no text",3,"Charisma",20,"Karradocksscorn","Karradocksfightm"),
'Karradocksfightcs'=> array ("no text",3,"Streetwise",20,"Karradocksscorn","Karradocksfightm"),
'Karradocksscorn'=> array ("You tell him that, if his mother hadn't died of syphilis, the shame of his actions would've so shamed her that she'd probably have stopped sleeping with him. Over onlookers' laughter he mumbles darkly and runs off.",1,"Karradocksmain"),
'Karradocksfightm'=> array ("no text",3,"Duelling",10,"Karradocksfights","Karradocksfightf"),
'Karradocksfights'=> array ("You draw your WEAPONNAME and he puts away his flensing knife and stumbles off.",1,"Karradocksmain"),
'Karradocksfightf'=> array ("He stabs you with a flensing knife before you have time to react. Enraged, you raise your WEAPONNAME and he runs off.",9,"Stamina",-4,"Karradocksmain"),
'Karradocksmain'=> array ("no text",17,9,"Look for a boat",1001,"Karradockboat","Set out to sea",1,"Leavekarrasea","Visit the temple of Su-Averna, goddess of dancing and athletics.",0,"Karradocktemp1","Visit the temple of Ianidhini, god and goddess of worldly wisdom",0,"Karradocktemp2","Visit the temple of Numen Mari, god of the sea",0,"Karradocktemp3","Visit the temple of Mother Iasthes, goddess of travellers",0,"Karradocktemp4","Visit the temple of the Father of Wine",0,"Karradocktemp6","Visit the hobbits' Temple of Pie",0,"Karradocktemp5","Leave",0,"Streetgodsleave2"),
'Karradocktemple'=> array ("no text",2,6,"Visit the temple of Su-Averna, goddess of dancing and athletics.","Karradocktemp1","Visit the temple of Ianidhini, god and goddess of worldly wisdom","Karradocktemp2","Visit the temple of Numen Mari, god of the sea","Karradocktemp3","Visit the temple of Mother Iasthes, goddess of travellers","Karradocktemp4","Visit the temple of the Father of Wine","Karradocktemp6","Visit the hobbits' Temple of Pie","Karradocktemp5"),
'Karradocktemp1'=> array ("no text",3,"Heroism",14,"Karradocktemple1","Karradocktemple1f"),
'Karradocktemple1f'=> array ("no text",16,17,"Karradocktemple1c","Karradocktemplef"),
'Karradocktemple1c'=> array ("no text",6,313,"Karradocktemplef","Karradocktemple1d"),
'Karradocktemple1d'=> array ("An acolyte starts to tell you to begone. But he stops, and abruptly starts cringing and begging your pardon. He bestows a blessing on you, shaking in fear all the while.",14,"Stamina","Karradocktemple1e"),
'Karradocktemple1e'=> array ("Feeling like a bully, yet unsure why he's so scared, you go on your way.",8,313,1,"Karradocktemplef0"),
'Karradocktemp2'=> array ("no text",3,"Heroism",14,"Karradocktemple2","Karradocktemple2f"),
'Karradocktemple2f'=> array ("no text",16,15,"Karradocktemple2c","Karradocktemplef"),
'Karradocktemple2c'=> array ("no text",3,"Luck",20,"Karradocktemplel","Karradocktemplef"),
'Karradocktemplel'=> array ("Luckily for you, the temple is giving blessings only to men who dress as women today.",1,"Karradocktemple2"),
'Karradocktemp3'=> array ("no text",3,"Heroism",14,"Karradocktemple3","Karradocktemplef"),
'Karradocktemp4'=> array ("no text",3,"Heroism",14,"Karradocktemple4","Karradocktemplef"),
'Karradocktemp5'=> array ("no text",3,"Heroism",14,"Karradocktemple6","Karradocktemplef"),
'Karradocktemp6'=> array ("no text",4,2,"Karradocktemp6a","Karradocktemp6b"),
'Karradocktemp6a'=> array ("no text",6,276,"Karradocktemp6b","Wedding"),
'Karradocktemp6b'=> array ("no text",3,"Heroism",14,"Karradocktemple7","Karradocktemplef"),
'Karradocktemplef'=> array ("no text",4,2,"Karradocktemplefa","Karradocktemplefb"),
'Karradocktemplefa'=> array ("You try and get a blessing from the temple. But an acolyte chases you off. The docks aren't the Street of the Gods, where the priests look at your shell-purse before they look at your soul. They are there for the truly deserving.",9,"Heroism",-1,"Karradocktemplef0"),
'Karradocktemplefb'=> array ("A bald-headed acolyte chases you away, cursing you for a worthless seeker of undeserved blessings.",9,"Heroism",-1,"Karradocktemplef0"),
'Karradocktemplef0'=> array ("no text",13,"Karradocktemplef1"),
'Karradocktemplef1'=> array ("no text",6,234,"Karradocktemplef1main","Karradocktemplef1r"),
'Karradocktemplef1r'=> array ("no text",4,2,"Karradocktemplef1main","Karradocktemplef1r1"),
'Karradocktemplef1r1'=> array ("You see an empty lot that will be a temple to the goddess of procrastination, when they get round to building it.",8,234,1,"Karradocksmain"),
'Karradocktemplef1main'=> array ("You breathe in a mixture of temple incense, sea air and a hint of hidden evil and consider your options.",1,"Karradocksmain"),
'Karradocktemple1'=> array ("Su-Averna is said to appear as a small, boyish woman in the garb of an athlete. She is the patron of dancers and athletes, but also of those artists who represent the human form.",14,"Stamina","Karradocktemple4a"),
'Karradocktemple2'=> array ("Ianidhini is a minor deity of the centaurs, adopted by humans as the patron of worldly wisdom and of all who dress in the clothes of the opposite gender, whether for reasons of disguise, acting, or inclination. He or she is both male and female, so as to understand both, and at other times of no gender, to be fooled by either. For similar reasons, Ianidhini's hindquarters are a mixture of all the five races of centaurs: horse, zebra, donkey, mountain goat, and camel (whatever that may be). Ianidhini is the youngest of the original eleven centaurs; five pairs each founded one of the five races, and Ianidhini was brought forth to keep peace between them. All eleven are children of one human and one quadraped parent. Bitter theological debate rages over whether they came from human fathers and animal mothers, or vice versa.",14,"Streetwise","Karradocktemple4a"),
'Karradocktemple3'=> array ("Numen Mari is said to appear as a plume of water in a roughly human shape. Travellers by sea often throw cowrie shells into the water to ensure a safe journey.",14,"Seafaring","Karradocktemple4a"),
'Karradocktemple4'=> array ("Mother Iasthis is said to appear as a smiling, middle-aged woman borne by a flock of geese. Her symbols are the salmon and the snake. The latter relates to a legend that a traveller who was disrespectful of her found his feet turning to lead, then his staff to rope, and finally the road ahead of him to a great snake.",14,"Shelter","Karradocktemple40"),
'Karradocktemple40'=> array ("You accept the blessing from the priestess, with an uneasy feeling that there may be others more worthy than yourself.",9,"Heroism",-1,"Karradocktemple41"),
'Karradocktemple41'=> array ("no text",13,"Karradocktemplef1"),
'Karradocktemple4a'=> array ("You accept the blessing from the priestess, with an uneasy feeling that there may be others more worthy than yourself.",9,"Heroism",-1,"Karradocktemple5"),
'Karradocktemple5'=> array ("no text",13,"Karradocktemplef1"),
'Karradocktemple5h'=> array ("no text",4,2,"Karradocktemple5h1","Karradocktemple5h0"),
'Karradocktemple5h0'=> array ("You feel a little bit guilty as you look at the hard-working hobbits, some of whom may have had barely four meals today.",9,"Heroism",-1,"Karradocktemple5h1"),
'Karradocktemple5h1'=> array ("no text",13,"Karradocktemplef1"),
'Karradocktemple6'=> array ("You enter the Temple of Pie, to find that they're eating pie.",9,"Stamina",3,"Karradocktemple6which"),
'Karradocktemple6which'=> array ("no text",4,2,"Karradocktemple6a","Karradocktemple6e"),
'Karradocktemple6a'=> array ("no text",6,169,"Karradocktemple6c","Karradocktemple6b"),
'Karradocktemple6b'=> array ("You mention that the gnomes are said to also have a god of pie. 'What?' she asks - 'a single god for blueberry <i>and</i> apple?' She laughs at this absurd heresy.",8,169,1,"Karradocktemple5h"),
'Karradocktemple6c'=> array ("no text",6,250,"Karradocktemple5h","Karradocktemple6d"),
'Karradocktemple6d'=> array ("The walls of the temple are covered in writing, setting out the deeds of the recently dead. As you eat you read the 'obbit-uaries.",8,250,1,"Karradocktemple5h"),
'Karradocktemple6e'=> array ("no text",6,250,"Karradocktemple6f","Karradocktemple6d"),
'Karradocktemple6f'=> array ("no text",6,169,"Karradocktemple5h","Karradocktemple6b"),
'Karradocktemple7'=> array ("The Father of Wine, or his wife and rival the Mother of Beer, are worshipped by most of the folk in Karrakara. You drink the thick, concentrated potion that the priestess gives you.",9,"Stamina",-1,"Karradocktemple7a"),
'Karradocktemple7a'=> array ("no text",9,"Streetwise",-1,"Karradocktemple7b"),
'Karradocktemple7b'=> array ("no text",14,"Charisma","Karradocktemple7c"),
'Karradocktemple7c'=> array ("no text",14,"Luck","Karradocktemple7d"),
'Karradocktemple7d'=> array ("no text",13,"Karradocktemplef1"),
'Karradockboat'=> array ("no text",6,97,"Boatcosts10","Karradockboat1"),
'Karradockboat1'=> array ("no text",6,98,"Boatcosts15","Boatcosts20"),
'Boatcosts10'=> array ("The best price you can find for a boat is ten shells.",11,10,"Karrabuyboat","Karraboat0"),
'Boatcosts15'=> array ("The best price you can find for a boat is fifteen shells.",11,15,"Karrabuyboat","Karraboat0"),
'Boatcosts20'=> array ("The best price you can find for a boat is twenty shells.",11,20,"Karrabuyboat","Karraboat0"),
'Karrabuyboat'=> array ("As is traditional, the price includes a space at the docks until the next time you set sail.",17,4,"Buy it",0,"Karraboatcash","See if you can barter instead",100,"Karraboatbarter","Look for a blessing",0,"Karradocktemple","Leave the docks",0,"Streetgodsleave2"),
'Karraboat0'=> array ("no text",17,4,"Try and barter",100,"Karraboatbarter","Try and raise the money",0,"273ii","Look for a blessing",0,"Karradocktemple","Leave the docks",0,"Streetgodsleave2"),
'Karraboatcash'=> array ("no text",6,97,"Karraboat10","Karraboatcash2"),
'Karraboatcash2'=> array ("no text",6,98,"Karraboat15","Karraboat20"),
'Karraboat10'=> array ("no text",10,-10,"Karraboatdone"),
'Karraboat15'=> array ("no text",10,-15,"Karraboatdone"),
'Karraboat20'=> array ("no text",10,-20,"Karraboatdone"),
'Karraboatdone'=> array ("A handshake and an exchange of oaths later, you are the owner of an old but sturdy-looking one-person boat.",8,1,1,"Karradocksmain"),
'Karraboatbarter'=> array ("no text",5,15,"Karraboatuni","Karraboatbarter1"),
'Karraboatbarter1'=> array ("no text",5,16,"Karraboathor","Karraboatbarter2"),
'Karraboatbarter2'=> array ("no text",5,17,"Karraboatboo","Karraboatbarter3"),
'Karraboatbarter3'=> array ("no text",5,8,"Karraboatbox","Karraboatbarter4"),
'Karraboatbarter4'=> array ("no text",5,10,"Karraboatimp","Karraboatnobarter"),
'Karraboatnobarter'=> array ("Alas, apart from some improper suggestions, you have nothing of interest to anyone on the docks.",2,3,"Try and buy one instead","Karradockboat","Look for a blessing","Karradocktemple","Leave the docks","Streetgodsleave2"),
'Karraboatuni'=> array ("You find a sailor who is prepared to exchange his boat for your unicorn.",1,"Karraboatcanbarter"),
'Karraboathor'=> array ("You find a sailor who is prepared to exchange his boat for your horse.",1,"Karraboatcanbarter"),
'Karraboatboo'=> array ("You find a sailor who is prepared to exchange his boat for your set of books.",1,"Karraboatcanbarter"),
'Karraboatbox'=> array ("You find a sailor who is prepared to exchange his boat for the box you found in the hut.",1,"Karraboatcanbarter"),
'Karraboatimp'=> array ("You have no items that anyone wants to trade. But you find a man who appears to be a wizard, who is prepared to exchange his boat for the imp.",1,"Karraboatcanbarter"),
'Karraboatcanbarter'=> array ("As is traditional, the trade includes a space at the docks until the next time you set sail.",2,4,"Trade","Karraboatdobarter","Try and buy a boat instead","Karradockboat","Look for a blessing","Karradocktemple","Leave the docks","Streetgodsleave2"),
'Karraboatdobarter'=> array ("no text",5,15,"Karraboatloseuni","Karraboatdobarter1"),
'Karraboatdobarter1'=> array ("no text",5,16,"Karraboatlosehor","Karraboatdobarter2"),
'Karraboatdobarter2'=> array ("no text",5,17,"Karraboatloseboo","Karraboatdobarter3"),
'Karraboatdobarter3'=> array ("no text",5,8,"Karraboatlosebox","Karraboatloseimp"),
'Karraboatloseuni'=> array ("no text",7,15,0,"Karraboatdone"),
'Karraboatlosehor'=> array ("no text",7,16,0,"Karraboatdone"),
'Karraboatloseboo'=> array ("no text",7,17,0,"Karraboatdone"),
'Karraboatlosebox'=> array ("no text",7,8,0,"Karraboatdone"),
'Karraboatloseimp'=> array ("no text",7,10,0,"Karraboatloseimp1"),
'Karraboatloseimp1'=> array ("no text",9,"Heroism",-2,"Karraboatdone"),

'Wedding'=> array ("The Father of Wine, or his wife and rival the Mother of Beer, are worshipped by most of the folk in Karrakara.",8,276,1,"Wedding1"),
'Wedding1'=> array ("As you enter the temple a wedding is in progress. As in customary, cups of stupifying plum wine are offered to all comers.",2,2,"Accept","Weddingy","Refuse","Weddingn"),
'Weddingy'=> array ("no text",12,2,20,"Stamina","Streetwise","Weddingff","Weddingfs","Weddingss"),
'Weddingff'=> array ("no text",6,24,"Weddingff0","Weddingff1"),
'Weddingff0'=> array ("You toast the couple. Then you decide to have another. After a while, someone suggests that they should sort out the deluded worshippers of the Mother of Beer. It seems to you like a great idea. Somehow this leads to a fight.",9,"Stamina",-5,"Weddingff0a"),
'Weddingff0a'=> array ("When you wake up you're in a cell.",1,"Arrested"),
'Weddingff1'=> array ("You toast the couple. Then you decide to have another, and you can't quite remember what happens next...<br><br>You wake up with a strange feeling on your wrists and neck. You're lying on grass, and the place smells strange. The city-smell of incense smoke and body odours is gone. It seems as if, in your drunken stupour, you've found your way out of the city.<br><br>You feel your wrists, and they feel like cold iron. You and several other people are chained together. You've been captured by slavers!<br><br>Your captors are a motley crew of humans, dwarves, and goblins - only slightly less wretched-looking than those they've enslaved. A pinch-faced goblin kicks you, and commands you to march. You feel sick horror as you contemplate your likely fate.",1,"Campbackfiii"),
'Weddingfs'=> array ("You toast the couple. Then you decide to have another, and you can't quite remember what happens next...",11,8,"Weddingfsrich","Weddingfspoor"),
'Weddingfsrich'=> array ("When you wake up you're at home, and you've somehow spent huge amounts of money but gained nothing of value.",10,-10,271),
'Weddingfspoor'=> array ("When you wake up you're at home You feel terrible, and you have a vague memory of having challenged someone to a duel for telling you to stop dancing on the tables. You think you might have fallen badly trying to get away from them.",9,"Duelling",-2,"Weddingfspoor1"),
'Weddingfspoor1'=> array ("no text",9,"Brawling",-1,140),
'Weddingss'=> array ("You toast the couple, and go on your way.",1,"Karradocktemplef1main"),
'Weddingn'=> array ("The wedding party, and perhaps the Father of Wine himself, are insulted by your refusal. But you know that the madness of wine can lead you into worse danger.",9,"Luck",-1,"Weddingn2"),
'Weddingn2'=> array ("no text",9,"Heroism",-1,"Karradocktemplef1main"),

'e9new'=> array ("no text",5,6,"e9newa","Karraseller"),
'e9newa'=> array ("no text",5,3,"e9newb","Karraseller"),
'e9newb'=> array ("no text",5,5,"Explorekarra","Karraseller"),
// Rod isn't in this list, because may not be able to afford it.

'Karraseller'=> array ("no text",8,88,1,"Karraseller1"),
'Karraseller1'=> array ("You wade through a sea of street sellers, finding a great many worthless baubles, but a few items that catch your eye.",1,"Karraseller2"),
'Karraseller2'=> array ("no text",11,8,"Karraseller2a","Karraseller4"),
'Karraseller2a'=> array ("no text",5,6,"Karraseller2b","Karraseller3"),
'Karraseller2b'=> array ("no text",5,3,"Karraseller2c","Karraseller3"),
'Karraseller2c'=> array ("no text",5,5,"Karraseller4","Karraseller3"),
'Karraseller3'=> array ("You may look at",17,6,"a black pearl",-106,"Sellerpearl","a finely-wrought medallion",-103,"Sellermedallion","a crown",-105,"Sellercrown","a staff covered in engravings",-119,"Sellerstaff","or pass by",0,"Selleron"),
'Karraseller4'=> array ("no text",11,20,"Karraseller4a","Karraseller4done"),
'Karraseller4a'=> array ("no text",5,19,"Karraseller4done","Karraseller3"),
'Karraseller4done'=> array ("You find nothing more worth spending your remaining shells on. You decide to call it a day.",1,"Selleron"),

'Sellerstaff'=> array ("The merchant watches anxiously as you pick up the staff and examine it. The carvings are highly detailed and realistic; but instead of gods, heroes or monsters, they show such things as a man slipping on a banana skin, or another man whose britches have fallen down. The merchant tells you that the cost is fifteen shells, and that haggling is absolutely out of the question.",11,15,"Sellerstaffrich","Sellerstaffpoor"),
'Sellerstaffpoor'=> array ("For once, it sounds like 'no haggling' actually means no haggling, so you have no option but to put it back and continue browsing",1,"Karraseller2"),
'Sellerstaffrich'=> array ("For once, it sounds like 'no haggling' actually means no haggling.",6,124,"Sellerstaffrich2","Sellerstaffrich1"),
'Sellerstaffrich1'=> array ("A passing peasant says to you 'they do say that if you believed everything you heard in the markets, you'd end up with no money and a sore arse!', and laughs uproariously. The merchant glares at her.",8,124,1,"Sellerstaffrich2"),
'Sellerstaffrich2'=> array ("no text",2,2,"Buy it","Sellerstaffbuy","Decline","Karraseller2"),
'Sellerstaffbuy'=> array ("no text",10,-15,"Sellerstaffbuy0"),
'Sellerstaffbuy0'=> array ("You hand over the money and find a quiet spot to look at your purchase. It seems very sturdy, and well-weighted enough that you could use it as a quarterstaff. 'My goodness', you say out loud, 'what a thick staff. I wonder if it's magic - maybe I should rub it.' You're surprised when a passer-by hears you and starts giggling like a child. His laughter gets more and more hysterical, and soon he's lying in the street, gasping 'you said you were going to <i>rub your staff!</i>' as you look on, slightly embarrassed.",1,"Sellerstaffbuy1"),
'Sellerstaffbuy1'=> array ("You realise that you've chanced upon a powerful magic item: a Rod of Puerile Humour. Some say they were made by a sorceress as mighty as she was immature. Others say that a dwarven hero forged them, after he saw how jolly hobbits were and how grim his own folk. Others blame the wicked jester-kings of Badum-Tish. But every story agrees that they were too powerful, and all were destroyed.",7,19,1,"Sellerstaffbuy2"),
'Sellerstaffbuy2'=> array ("no text",13,"Karraseller2"),

'Sellerpearl'=> array ("no text",6,90,"Sellerpearldr","Sellerpearl0"),
'Sellerpearldr'=> array ("You remember what the woman at the market told you, and wonder whether this really is the soul of a dragon.",1,"Sellerpearlshells"),
'Sellerpearl0'=> array ("no text",16,6,"Sellerpearlw","Sellerpearl1"),
'Sellerpearl1'=> array ("no text",16,7,"Sellerpearlw","Sellerpearlo"),
'Sellerpearlw'=> array ("You know that black pearls are rare, and said to form in a different way - you've vaguely heard that they're more magical than natural.",1,"Sellerpearlshells"),
'Sellerpearlo'=> array ("The merchant tells you that black pearls are the most rare and precious of pearls; but whether he's telling the truth you have no idea.",1,"Sellerpearlshells"),
'Sellerpearlshells'=> array ("no text",11,10,"Sellerpearlshellss","Sellerpearlshellsf"),
'Sellerpearlshellsf'=> array ("Alas, you are unable to get the price below ten shells, more than you have. You continue to browse.",1,"Karraseller2"),
'Sellerpearlshellss'=> array ("The lowest price you can negotiate is ten shells.",6,124,"Sellerpearlchoice","Sellerpearlpp"),
'Sellerpearlpp'=> array ("A passing peasant says to you 'they do say that if you believed everything you heard in the markets, you'd end up with no money and a sore arse!', and laughs uproariously. The merchant glares at her.",8,124,1,"Sellerpearlchoice"),
'Sellerpearlchoice'=> array ("no text",2,2,"Buy it","Sellerpearlbuy","Decline","Karraseller2"),
'Sellerpearlbuy'=> array ("no text",7,6,1,"Sellerpearlbuy1"),
'Sellerpearlbuy1'=> array ("The merchant carefully wraps the pearl for you, and you continue to browse.",10,-10,"Karraseller2"),

'Sellermedallion'=> array ("no text",16,6,"Sellermedw","Sellermed1"),
'Sellermed1'=> array ("no text",16,9,"Sellermedw","Sellermedo"),
'Sellermedw'=> array ("The medallion is large and heavy. The elaborately-wrought figures and runes mark it as obviously dwarven. Such medallions are used in the dwarves' complex inter-tribal relations; to mark a treaty, as tokens of safe passage, as tribute, or to prove someone's status as an ambassador.",1,"Sellermedshells"),
'Sellermedo'=> array ("The medallion is large and heavy. It appears to be of good quality. The merchant tells you he bought it from a tribe in the interior.",1,"Sellermedshells"),
'Sellermedshells'=> array ("no text",11,15,"Sellermedshellss","Sellermedshellsf"),
'Sellermedshellsf'=> array ("The merchant wants fifteen shells for it, which is more than you have. You continue to browse.",1,"Karraseller2"),
'Sellermedshellss'=> array ("The merchant wants fifteen shells for it.",6,124,"Sellermedchoice","Sellermedpp"),
'Sellermedpp'=> array ("A passing peasant says to you 'they do say that if you believed everything you heard in the markets, you'd end up with no money and a sore arse!', and laughs uproariously. The merchant glares at her.",8,124,1,"Sellermedchoice"),
'Sellermedchoice'=> array ("no text",2,2,"Buy it","Sellermedbuy","Decline","Karraseller2"),
'Sellermedbuy'=> array ("no text",7,3,1,"Sellermedbuy1"),
'Sellermedbuy1'=> array ("You take the medallion, which is lighter than it looks, and continue to browse.",10,-15,"Karraseller2"),

'Sellercrown'=> array ("The merchant assures you that the crown is real, from a minor kingdom on a nearby island. It appears to be slightly dented, as if from a heavy blow. But, as he says, that would surely make it more likely to be genuine.",11,8,"Sellercrowns","Sellercrownf"),
'Sellercrownf'=> array ("You haggle with the merchant, but admit defeat at eight shells, which you must admit seems reasonable but is still more than you have. You decide to call it a day.",1,"Selleron"),
'Sellercrowns'=> array ("The merchant offers it to you for eight shells.",6,124,"Sellercrowns1","Sellercrownp"),
'Sellercrownp'=> array ("A passing peasant says to you 'they do say that if you believed everything you heard in the markets, you'd end up with no money and a sore arse!', and laughs uproariously. The merchant glares at her.",8,124,1,"Sellercrowns1"),
'Sellercrowns1'=> array ("no text",2,2,"Take it","Sellercrownbuy","Decline","Karraseller2"),
// later on, change the above bit so that it can happen anywhere in the market, or with fur, frog or imp seller.
'Sellercrownbuy'=> array ("no text",7,5,1,"Sellercrownbuy1"),
'Sellercrownbuy1'=> array ("The merchant gives you a nondescript-looking sack to carry it in. You continue to browse.",10,-8,"Karraseller2"),

// he offers to sell you the imp if:
// * you have at least 5gp
// * you have keyword 50 (you've met the imp)
// * you don't currently have the imp (item 10)
// * you don't have keyword 91 (already had chance)
// DOESN'T currently look at keyword 84
// (if you sold imp to gladiator owner)
// maybe add in later that he takes revenge eg.
// or save vs charisma - if you make it lose heroism.
'Selleron'=> array ("no text",11,5,"Selleron1","Selleronfaust"),
'Selleron1'=> array ("no text",6,50,"Selleron2","Selleronfaust"),
'Selleron2'=> array ("no text",5,10,"Selleronfaust","Selleron3"),
'Selleron3'=> array ("no text",6,91,"Selleronfaust","Selleron4"),
'Selleron4'=> array ("no text",8,91,1,"Selleron5"),
'Selleron5'=> array ("You make your way past the street sellers. However one catches your attention. He shows you the imp you met earlier. It looks very much the worse for wear. It's still holding the same glass bottle. The merchant tells you you can have the imp for five shells.",2,2,"Buy the imp","Selleron6","Decline","Selleronfaust"),
'Selleron6'=> array ("You hand over the shells, and take delivery of the imp, who thanks you profusely. The merchant tells you that the imp lives on shells - which he seems to mean literally.",7,10,1,"Selleron7"),
'Selleron7'=> array ("no text",10,-5,"Selleron8"),
'Selleron8'=> array ("no text",7,9,1,"Selleron9"),
'Selleron9'=> array ("no text",13,"Streetgodsleave2"),
'Selleronfaust'=> array ("You push past the street sellers, who shrug and turn their attentions to the next victim.",13,271),

'Buyfrog'=> array ("You wander through a small market. A street-seller claims to have for sale the wonder of the ages; the Miniature Talking Frog of Am-Kesh.",8,75,1,"Buyfrog2"),
'Buyfrog2'=> array ("no text",2,2,"Listen to him","Buyfrog3","Pass by","Streetgodsleave2"),
'Buyfrog3'=> array ("The street-seller reminds you that talking animals are always a similar size to humans. And yet this marvellous beast, he claims, can talk and think, and yet is only the size of a normal frog. He reaches into his pocket and pulls out a depressed-looking frog who wears a small crown.",6,3,"Buyfrogagain","Buyfrognew"),
'Buyfrogagain'=> array ("As you suspected, it's none other than Owyth. You ask to hold him and he whispers 'oh gods, please buy me, he smells awful.' The street-seller tells you that the frog costs five shells.",2,2,"Buy him","Buyfrogbuy","Refuse","Buyfrogagainno"),
'Buyfrogagainno'=> array ("You hand Owyth back to the seller and pass by.",9,"Heroism",-2,"Streetgodsleave2"),
'Buyfrogbuy'=> array ("You hand over your shells and take posession of the frog.",10,-5,"Buyfrogbuy2"),
'Buyfrogbuy2'=> array ("no text",7,4,1,"Buyfrogbuy3"),
'Buyfrogbuy3'=> array ("no text",6,3,271,"Buyfrogbuynew"),
'Buyfrogbuynew'=> array ("no text",8,3,1,"Buyfrogbuynew2"),
'Buyfrogbuynew2'=> array ("The frog introduces itself as Owyth. It claims that it isn't a member of a rare species of talking frogs, but rather a human who has been changed into a frog by a curse.",1,271),
'Buyfrognew'=> array ("The street-seller tells the frog to say something. The frog says 'hello' in a miserable voice. The street-seller tells you that these frogs live in great cities, miles from human civilisation. He also claims that owning one brings good luck - and all for only five shells.",6,124,"Buyfrognewchoice","Buyfrogpp"),
'Buyfrogpp'=> array ("A passing peasant says to you 'they do say that if you believed everything you heard from street sellers, you'd end up with no money and a sore arse!', and laughs uproariously. The street seller glares at her.",8,124,1,"Buyfrognewchoice"),
'Buyfrognewchoice'=> array ("no text",2,2,"Buy the frog","Buyfrogbuy","Refuse","Buyfrognewno"),
'Buyfrognewno'=> array ("You shake your head and pass by.",8,3,1,"Streetgodsleave2"),

// 'Streetgods' = when you first find it
// 'Streetgods1' = when you visit it later.
'Streetgods'=> array ("Your wandering steps take you to the Street of the Gods - home to many of the religions in Karrakara. Some of the temples are grand buildings, some are nothing more than single, rented rooms that may proclaim a different universal truth in a week's time.",8,70,1,"Streetgods2"),

'Streetgods1'=> array ("The Street is full of shouting, pleading priests.",1,"Streetgodsred"),
'Streetgodsred'=> array ("no text",6,99,"Streetgodscolour","Streetgodsred0"),
'Streetgodsred0'=> array ("no text",6,40,"Streetgodsred1","Streetgodscolour"),
'Streetgodsred1'=> array ("no text",8,99,1,"Streetgodsred2"),
'Streetgodsred2'=> array ("no text",3,"Heroism",20,"Streetgodsms","Streetgodsmf"),

'Streetgodsms'=> array ("A dark, unmarked and open doorway catches your eye, perhaps because it's the only one without a frantically pleading priest outside it. You enter, to see a sinister-looking figure. He stands silently in a bare, empty room. After a few seconds he hisses in a low voice 'you have come for redemption. Blood for blood: your life's blood for the life you took.' He motions towards a back room.",2,2,"Follow him","Streetgodsmsy","Leave","Streetgodsmsn"),
'Streetgodsmsy'=> array ("You follow him into total blackness. You jump as you hear his voice, somehow behind you. 'Everything you lose will save another. Do you now consent?' You nod, then open your mouth to say 'yes'. But the words are never uttered, and turn into a scream as you feel the skin on your neck suddenly pierced.",4,6,"Streetlose1","Streetlose2","Streetlose3","Streetlose4","Streetlose5","Streetlose6"),
'Streetlose1'=> array ("no text",9,"Stamina",-1,"Streetlose1a"),
'Streetlose1a'=> array ("no text",9,"Heroism",-6,"Streetlosedone"),
'Streetlose2'=> array ("no text",9,"Stamina",-2,"Streetlose2a"),
'Streetlose2a'=> array ("no text",9,"Heroism",-5,"Streetlosedone"),
'Streetlose3'=> array ("no text",9,"Stamina",-3,"Streetlose3a"),
'Streetlose3a'=> array ("no text",9,"Heroism",-4,"Streetlosedone"),
'Streetlose4'=> array ("no text",9,"Stamina",-4,"Streetlose4a"),
'Streetlose4a'=> array ("no text",9,"Heroism",-3,"Streetlosedone"),
'Streetlose5'=> array ("no text",9,"Stamina",-5,"Streetlose5a"),
'Streetlose5a'=> array ("no text",9,"Heroism",-2,"Streetlosedone"),
'Streetlose6'=> array ("no text",9,"Stamina",-6,"Streetlose6a"),
'Streetlose6a'=> array ("no text",9,"Heroism",-1,"Streetlosedone"),
'Streetlosedone'=> array ("You feel hot breath on your neck as your life's blood drains away. Finally you feel something withdrawing from your flesh, with a sound like a knife being drawn from a scabbard. In the dark you hear the voice, now sounding horribly satisfied, say 'it is done. Another is saved, and you are forgiven.' Feeling weak in both body and spirit, you stumble out of the darkness, through the abandoned room, and into the Street of the Gods.",8,40,0,"Streetlosedone1"),
'Streetlosedone1'=> array ("no text",13,"Streetgods2"),
'Streetgodsmsn'=> array ("You run out of the room, and towards the bigger temples.",9,"Heroism",-1,"Streetgods2"),
'Streetgodsmf'=> array ("no text",6,101,"Streetgods2","Streetgodsmf1"),
'Streetgodsmf1'=> array ("A sign promising 'Miracles and Power' catches your eye. The priest sits calm and silent, rather than frantically hawking for worshippers: most unusual, particularly when you're the only one attending him. He greets you, and starts to ask you questions about your life. You find yourself opening up to him. You talk for hours. When you're done, he calmly tells you of a great evil abroad in the land. There's a man, or a thing in the form of a man, that you can destroy. You nod agreement. He tells you to return to your room and wait. He says he must leave the city, but others will contact you. He adds that you'll be paid. 'But', he smiles, 'the likes of you never really work for money.'",8,81,1,"Streetgodsmf2"),
'Streetgodsmf2'=> array ("no text",13,"Streetgodsmf3"),
'Streetgodsmf3'=> array ("no text",8,101,1,"Assassinate1b"),
'Streetgodscolour'=> array ("no text",6,126,"Streetgodscolour0","Streetgodshk"),
'Streetgodscolour0'=> array ("no text",6,134,"Streetgods2","Streetgodshk1"),
'Streetgodshk'=> array ("The only silent people are the so-called 'Mouthess Ones': the priests of the Queen of Welcome, the goddess who appears as a dancing child with the head of a cat. They never speak in public, but advertise their faith by covering everything they own with representations of the goddess, and the short prayer 'Hail, O Kitty'.",8,126,1,"Streetgods2"),
'Streetgodshk1'=> array ("As usual, the only silent people are the priests of the cat-headed Queen of Welcome. A passing peasant remarks on the irony that those who are known for never moving their tongues are also known for pussy worship.",8,134,1,"Streetgods2"),
'Streetgods2'=> array ("no text",11,10,"Streetgods2b","Streetgods2a"),
'Streetgods2a'=> array ("The going rate for a priests' services is 10 shells, more than you have.",1,"Streetgods2aa"),
'Streetgods2aa'=> array ("no text",2,2,"Try and get a blessing for free","Streetgodsfree","Leave","Streetgodsleave2"),
'Streetgods2b'=> array ("All are eager to solicit your faith, and 10 shells is the going rate for a blessing or for healing.",1,"Streetgods2c"),
'Streetgods2c'=> array ("no text",2,4,"Buy a blessing","Streetgods3","Try and get one for free","Streetgodsfree","Buy some healing","Streetgodsheal","Leave","Streetgodsleave2"),
'Streetgods3'=> array ("You pick the least dubious-looking divine and hand over your shells.",1,"Streetgods3a"),
'Streetgods3a'=> array ("no text",10,-10,"Streetgods4"),
'Streetgods4'=> array ("no text",14,"random","Streetgods5"),
'Streetgods5'=> array ("no text",11,10,"Streetgodsagain","Streetgods2aa"),
'Streetgodsagain'=> array ("You have enough shells to buy another blessing, or healing.",1,"Streetgods2c"),
'Streetgodsleave'=> array ("no text",13,"Streetgodsleave2"),
'Streetgodsleave2'=> array ("no text",4,2,"Explorekarra",271),
'Streetgodsfree'=> array ("no text",9,"Heroism",-2,"Streetgodsfree1"),
'Streetgodsfree1'=> array ("no text",4,3,"Streetgodsfreea","Streetgodsfreeb","Streetgodsfreec"),
'Streetgodsfreea'=> array ("no text",3,"Charisma",15,"Streetgodsfrees","Streetgodsfreef"),
'Streetgodsfreeb'=> array ("no text",3,"Streetwise",15,"Streetgodsfrees","Streetgodsfreef"),
'Streetgodsfreec'=> array ("no text",3,"Heroism",20,"Streetgodsfrees","Streetgodsfreef"),
'Streetgodsfrees'=> array ("You manage to fake enough sincerity to gain a blessing.",14,"random","Streetgodsfreex"),
'Streetgodsfreef'=> array ("You feign interest in every one true faith there is, to no avail.",1,"Streetgodsfreex"),
'Streetgodsfreex'=> array ("no text",11,10,"Streetgodsfreex1","Streetgodsfreex2"),
'Streetgodsfreex1'=> array ("no text",2,4,"Try again","Streetgodsfree","Buy one instead","Streetgods3a","Buy some healing","Streetgodsheal","Leave","Streetgodsleave2"),
'Streetgodsfreex2'=> array ("no text",2,2,"Try again","Streetgodsfree","Leave","Streetgodsleave2"),
'Streetgodsheal'=> array ("no text",10,-10,"Streetgodsheal1"),
'Streetgodsheal1'=> array ("You hand over your shells, and a priest chants some words over you and gives you some herbs to eat.",6,47,"Streetgodshealwound","Streetgodshealstamina"),
'Streetgodshealwound'=> array ("The wound in your shoulder seems to have healed.",8,47,0,"Streetgodsheal2"),
'Streetgodshealstamina'=> array ("no text",9,"Stamina",5,"Streetgodsheal2"),
'Streetgodsheal2'=> array ("no text",11,10,"Streetgods2c","Streetgods2aa"),

// EXPAND THIS LATER EG ONE BASED ON STREET PREACHER.
// OR MAY TRY AND GET A BLESSING AND THEN NOT PAY.
// OR MAY GET RID OF MURDERER TAG.
// OR CURE FOR FROG.

// HAVE MORE OPTIONS FOR FAILING TO TRICK BLESSING AS WELL.

// add helmet as option to buy as well (helmet first).

'Fur'=> array ("no text",8,66,1,"Fur1"),
'Fur1'=> array ("You see a young man who is trying to sell a large fur. He catches your eye and begins a spiel about it. When you don't slow down, he suddenly adds that it has magic powers.",2,3,"Keep going","Furno","Listen to what he has to say","Fur2"),
'Fur2'=> array ("He hesitates for an instant, then tells you that the fur comes from a sphinx. He says it has the mystic ability to shelter you from any weather, be it sun, cold or storm. He tells you that this accounts for its high price of five shells.",6,124,"Furchoice","Furpp"),
'Furpp'=> array ("A passing peasant says to you 'they do say that if you believed everything you heard in the markets, you'd end up with no money and a sore arse!', and laughs uproariously. The young man glares at her.",8,124,1,"Furchoice"),
'Furchoice'=> array ("no text",2,4,"Decline","Furno","Haggle","Furhaggle","Cast a spell to see if it's genuine","Furspell","Throw caution to the winds and buy it","Furbuy"),
'Furno'=> array ("You carry on. The magic powers of the fur become ever more incredible as you get further away.",4,2,"Streetgodsleave2",271),
'Furhaggle'=> array ("no text",3,"Streetwise",20,"Furhaggles","Furhagglef"),
'Furhaggles'=> array ("You subject him to a barrage of scorn. He weathers it and eventually offers to sell it to you for two shells.",2,2,"Buy it","Furbuytwo","Decline","Furno"),
'Furhagglef'=> array ("The young man tells you that five shells is a bargain as it is.",2,3,"Buy it","Furbuy","Decline","Furno","Cast a spell to see if it's genuine","Furspell"),
'Furspell'=> array ("no text",3,"Magic",20,"Furspells","Furspellf"),
'Furspells'=> array ("no text",3,"Streetwise",20,"Furspellss","Furspellsf"),
'Furspellss'=> array ("Your magic reveals that the fur is indeed genuine. You tell the man so, and he says 'of course it is' in a slightly surprised voice.",2,2,"Buy it","Furbuyreal","Decline","Furno"),
'Furspellsf'=> array ("Your magic reveals that the fur has no magic in it. You tell the man so, and he expresses total surprise while hanging his head in shame. He offers to sell it to you for a single cowrie shell.",2,2,"Buy it","Furbuynotreal","Decline","Furnonotreal"),
'Furbuynotreal'=> array ("While it's not magic, it might be useful as a blanket.",10,-1,"Furbuynotreal2"),
'Furnonotreal'=> array ("The man has a wonderful property offer to tell you about, but you choose to pass it up.",4,2,"Streetgodsleave2",271),
'Furbuyreal'=> array ("You give the man five shells, which he takes with a bewildered air.",10,-5,"Furbuyreal2"),
'Furspellf'=> array ("Your magic is inadequate to the task. You have no idea whether he's lying, telling the truth, or is deluded. However, the young man says that, as you're obviously a sorcerer of great wisdom and power, he will let you have the fur for a special price of only three shells.",2,2,"Buy it","Furbuythree","Decline","Furno"),
'Furbuy'=> array ("You give the young man five shells and take posession of the fur.",10,-5,"Furbuycont"),
'Furbuythree'=> array ("You give the young man three shells and take posession of the fur.",10,-3,"Furbuycont"),
'Furbuytwo'=> array ("You give the young man two shells and take posession of the fur.",10,-2,"Furbuycont"),
'Furbuycont'=> array ("It does seem thicker and heavier than a natural fur would be, but the way he grins and runs off as soon as he gets your money doesn't inspire confidence.",1,"Furbuy2"),
'Furbuy2'=> array ("In any case it's too big to lug around the street, so you return to your room.",7,11,1,271),
'Furbuyreal2'=> array ("The fur is far too big to lug around the street, so you return to your room.",7,12,1,271),
'Furbuynotreal2'=> array ("In any case it's too big to lug around the street, so you return to your room.",7,13,1,271),

// Karrathief: has no keyword ie can happen more than once.
'Karrathief'=> array ("no text",12,2,20,"Streetwise","Roguery","Thieff","Thiefs","Thiefs"),
'Thiefs'=> array ("You wander the city, aware of some of its citizens taking a more than friendly interest in your posessions. However you keep one hand on your shell-purse and your WEAPONNAME in plain sight, and so avoid any trouble.",13,271),
'Thiefcont'=> array ("no text",13,271),
'Thieff'=> array ("no text",11,8,"Thiefshells","Thiefattack"),
'Thiefshells'=> array ("You wander the city, finding no adventure. However when you return to your room you find that someone has made off with some of your shells.",10,-5,"Thiefcont"),
'Thiefattack'=> array ("You wander the city, fascinated by its many out of the way corners and dark alleys. Sadly, this behaviour attracts some unwelcome attention.",13,"Thiefattack2"),
'Thiefattack2'=> array ("no text",12,2,20,"Duelling","Brawling","Thiefaff","Thiefafs","Thiefass"),
'Thiefaff'=> array ("You are attacked by a group of thieves. They beat you badly, or from their point of view extremely well, and take every single cowrie shell you have.",9,"Stamina",-5,"Thiefaff2"),
'Thiefaff2'=> array ("no text",10,-7,"Thiefass0"),
'Thiefafs'=> array ("You are attacked by a group of would-be thieves. You manage to fight back until they realise you're too much trouble and run off. However you take several wounds.",9,"Stamina",-4,"Thiefass0"),
'Thiefass'=> array ("However your arm protects you w