<html>
<head>
<style type="text/css">
a:hover {text-decoration: underline; color: #FFFFFF;}
a {text-decoration: none; color: #DDDDDD;}
</style>
<script type="text/javascript" src="scripts/error.js"></script>
<script type="text/javascript" src="scripts/setkey.js"></script>
<script type="text/javascript">
function keypressed(thekey) {
if (thekey == top.goupkey)
top.gameframe.picframe.themap.moveUp();
else if (thekey == top.godownkey)
top.gameframe.picframe.themap.moveDown();
else if (thekey == top.goleftkey)
top.gameframe.picframe.themap.moveLeft();
else if (thekey == top.gorightkey)
top.gameframe.picframe.themap.moveRight();
else if (thekey == 109)
commandmenu();
else if ((thekey == 101) || (thekey==top.acceptkey))
commandenter();
else if (thekey == 116)
commandtalk();
else if (thekey == 115)
commandsearch();
else if (thekey == top.cancelkey)
commandsearchsmart();
else if (thekey == 114)
commandrest();
else if (thekey == 112)
top.doit();
else
top.showmessage("Unknown key: " +thekey+ "
");
}
function commandmenu() {
if (!top.commandlocked)
{
top.picframeURL("main_character.html");
top.commandframeURL("command_menu.html");
}
}
function commandenter() {
if (!top.commandlocked)
{
with (top.gameframe.picframe.themap)
{
enterIt(getCharX(), getCharY());
}
}
}
function commandsearch() {
if (!top.commandlocked)
{
top.commandframeURL("command_search.html");
}
}
function commandsearchsmart() {
if (!top.commandlocked)
{
top.commandframeURL("command_search_smart.html");
}
}
function commandtalk() {
if (!top.commandlocked)
{
top.commandframeURL("command_talk.html");
}
}
function commandrest() {
if (!top.commandlocked)
{
top.rest();
}
}
function commandoutside(width)
{
var thetext=top.topbox("interface/top-gamemenu.gif",90,15,width);
thetext+="<table border='0' align='center'>";
thetext+="<tr><td><a href='javascript:commandmenu()' onMouseOver=\"top.showhelp('Access the menu to view stats, use items, save games, etc.')\" onMouseout='top.showstats()'><font size='4'><B><u>M</U>enu</B></font></a></td></tr>";
thetext+="<tr><td><a href='javascript:commandenter()' onMouseOver=\"top.showhelp('Go inside towns, caves, dungeons, etc.')\" onMouseOut='top.showstats()'><font size='4'><B><U>E</U>nter</B></font></a></td></tr>";
thetext+="<tr><td><a href='javascript:commandtalk()' onMouseOver=\"top.showhelp('Start a conversation.')\" onMouseOut='top.showstats()'><font size='4'><B><U>T</U>alk</B></font></a></td></tr>";
thetext+="<tr><td><a href='javascript:commandsearch()' onMouseOver=\"top.showhelp('Search for items. Use to open treasure chests.')\" onMouseOut='top.showstats()'><font size='4'><B><U>S</U>earch</B></font></a></td></tr>";
thetext+="<tr><td><a href='javascript:commandrest()' onMouseOver=\"top.showhelp('Make camp and rest. Recovers HP and MP. Requires item: Tent')\" onMouseOut='top.showstats()'><font size='4'><B><U>R</U>est</B></font></a></td></tr>";
thetext+="</table>"
thetext+=top.bottombox(width);
thetext+="<p align=\"center\">" +top.helpLink(320,500,"help/mapscreen.html")+ "</p>";
return thetext;
}
function startup() {
top.commandframeLoaded();
top.thecommand = this;
top.writecommandlayer(commandoutside(200));
top.showstats();
}
</script>
</head>
<body bgcolor="#002080" onLoad="startup()">
<script>
if ((document.all) || (document.getElementById))
{
document.write("<div id=\"commandlayer\" style=\"position:relative; left:0px; top:5px;\"></div>");
}
else
{
document.write("Could not create dynamic content.");
}
</script>
</body>
</html>