bl791's picture
download
raw
6.95 kB
<html>
<head><title>MQJ NOT RUNNING (yet)....</title>
</head>
<body onload="setTimeout('starten();',1000)" style='background-repeat:no-repeat;background-color:#555555;font-family:verdana;font-size:12px;'>
<style>
#knoppen a
{
color:#AAAA11;
border:0px;
cursor:pointer;
font-size:10px;
margin-left:30px;
text-decoration:none;
}
body{
color:#AAAA11
font-family:verdana;
}
button:hover{
}
input, textarea{
background-color:#110000;
color:#AAAA11;
border:1px #882211 solid;
}
#cred
{
color: #AAAA11;
margin-left:295px;
margin-top:10px;
font-size:9px;
}
#console{
margin-top:32px;
margin-left:42px;
width:450px;
background-color:black;
color:#FFFFFF;
border: 1px #A48383 solid;
padding:5px;
}
#i1,#i2{
clear:both;
margin-top:32px;
width:450px;
height:100px;
margin-left:42px;
border: 1px #A48383 solid;
}
#answ
{
margin-top:10px;
width:450px;
height:20px;
border: 1px #A48383 solid;
}
#knoppen
{
/*margin-left:52px;*/
margin-top:10px;
margin-left:-10px;
width:542px;
height:20px;
padding:5px;
background-image: url(bar.png);
}
#abox{
clear:both;
margin-left:32px;
height:50px;
}
</style>
<applet id="m" code=mechanique.m2a.class archive="mq.jar" width=0 height=0> </applet>
<div id='console'></div>
<textarea id='i1'></textarea>
<textarea id='i2'></textarea>
<div id='knoppen'>
<a id='b1' href='#' onclick="document.getElementById('i1').value=document.getElementById('e3').value;document.getElementById('i2').value='';">Example: hello world</a>
<a id='b2' href='#' onclick="document.getElementById('i1').value=document.getElementById('e1').value;document.getElementById('i2').value=document.getElementById('e1p').value;">Example: demo adventure</a>
<a id='b3' href='#' onclick="document.getElementById('i1').value=document.getElementById('e2').value;document.getElementById('i2').value='';">Example: 99 bottles</a>
<a id='b4' href='#' onclick='run(false)'>RUN &raquo;</a>
</div>
<div id='abox'>
<a id='clr' style='cursor:pointer;color:#FFFFFF;' onclick='$("answ").value="";'>X</a>&nbsp;<textarea id='answ' type='text' class='ci' onKeyDown='update(event.keyCode);'></textarea>&nbsp;<a style='cursor:pointer;color:#FFFFFF;' id='ok' onclick='update(13)'>OK</a></div>
<div id='cred'>written by Gabor de Mooij | Licensed GPLv3</div>
<textarea id='e1' style='display:none;'>
@^->beach|^#DEMO by Gabor de Mooij, problems: ZERO must be uppercase, there may never be more than one ZERO key
@[misc]{_i}^->inventory
@{_u}{_t}{_d}{OR}^:Please be more specific..
@{_n}{_s}{_w}{_e}{OR}^:You cannot go that way...
@^<-
@[inventory]^:You carry with you:|^#inventory implementation
@^+ZERO
@{key}^:a golden key.
@{shovel}^:a rusty shovel.
@{ZERO}^:nothing.
@^<-
@[beach]^:the beach.
@^:;To the south is the deep blue sea, to the east is a forest and
@^:;to the west is an abandoned lighthouse.
@{DICE1}^:A gull is circling above the sea.
@^?
@{_w}{!key}^:The door of the lighthouse is locked.
@{_w}{key}^->lighthouse
@{_e}^:You wander to the forest.|^->forest
@{_ushovelsand}{_dig}{_digshovel}{OR}{shovel}^:You dig up a key (Taken).|^+key
@{;lighthouse}^:A lighthouse, made of white bricks. It looks desolated.
@^->misc
@^->beach
@[forest]^:the forest.
@^:;To the north is a wooden house, the door is ajar.
@^:;To the west is a path leading down to the beach.
@^?
@{_w}{_beach}{OR}^->beach
@{_n}{_uhouse}{OR}^->house
@^->misc
@^->forest
@[house]^:in the wooden house.
@^:;Here are a table, some chairs and a fireplace.
@^:;To the south is an open door, leading to the forest.
@{!chest_open}^:;In the corner lies a toolchest.
@{chest_open}^:;In the corner lies an open toolchest.
@{OCC11_25}^:On the table lies a christmas card.
@^?
@{;fireplace}^:Seems a long time ago since someone used that.
@{;chair}^:A simple chair, made of wood.
@{;table}^:Just a normal table.
@{;toolchest}{;chest}{OR}{!chest_open}^:A big red toolchest.
@{;toolchest}{;chest}{OR}{chest_open}{!shovel}^:An open chest with a shovel inside.
@{;toolchest}{;chest}{OR}{chest_open}{shovel}^:An open chest, it's empty.
@{_utoolchest}{_uchest}{OR}{chest_open}^:The toolchest is already open.
@{_utoolchest}{_uchest}{OR}{!chest_open}^:Opening the chest reveals a shovel|^+chest_open
@{_tshovel}{chest_open}{!shovel}^:You take the shovel out of the chest.|^+shovel
@{_s}{_exit}{_quit}{OR}^:You leave the house.|^->forest
@^->misc
@^->house
@[lighthouse]^:in the lighthouse (using the key to unlock the door)
@^:well done! You finished this little demo. [PRESS ENTER TO QUIT]
@^?
@fin
</textarea>
<textarea id='e1p' style='display:none;'>
@go
@to
@with
@on
@over
@in
@at
@by
@using
@applying
@east=e
@north=n
@west=w
@south=s
@open=u
@talk=u
@inventory=i
@walk
@run
@drink=d
@use=u
@attack=u
@pull=p
@put=p
@drop=p
@get=t
@fetch=t
@grasp=t
@the
@take=t
@look=DESCRIBE_FULL
@around
@see=l
@investigate=l
@apply=u
@open=u
@close=c
@attack=u
@wait=wt
@sleep=wt
@stay=wt
@enter=u
</textarea>
<textarea id='e2' style='display:none;'>
@^+beer*99
@[start]{beer*2}^:%%beer%% bottles of beer on the wall, %%beer%% bottles of beer
@{=beer*1}^:%%beer%% bottle of beer on the wall, %%beer%% bottle of beer
@^-beer
@{beer*2}^:Take one down and pass it around, %%beer%% bottles of beer on the wall.
@{=beer*1}^:Take one down and pass it around, %%beer%% bottle of beer on the wall.
@{!beer}^:Take one down and pass it around, no more bottles of beer on the wall.
@{beer}^->start
@^:No more bottles of beer on the wall, no more bottles of beer
@^:Go to the store and buy some more, 99 bottles of beer on the wall.
@fin
</textarea>
<textarea id='e3' style='display:none;'>
@^:hello world!
@^:I am MechaniQue/J 2.0!
@^:PRESS ENTER TO CONTINUE
@^?
@fin
</textarea>
<script>
function starten()
{
$('i1').value = "Enter your MechaniQue program here...";
$('i2').value = "Enter your parsing rules here... ";
$('answ').value = "Enter user / player input here..";
setTimeout(function(){$("answ").value=''},5000)
}
function spinit()
{
//if (__flag) $("spinner").style.color='red'; else $('spinner').style.color='#772222';
}
$ = function(e){return document.getElementById(e)}
__out="...";
__flag=1;__ready=0;
setInterval(function(){__out=$('m').output; if ($('console').innerHTML.indexOf('...')!=-1) __ready=1;},500)
update = function(k)
{
if (typeof(k)!='undefined' && k==13){
$('answ').value.length
$("m").answer($('answ').value);
setTimeout("$('answ').value='';",10);
}
$("console").innerHTML = "<div class='co'>"+__out+"</div>";
}
setInterval("update(0)",500);
run = function(b)
{
$('m').input=$('i1').value;
$('m').input2=$('i2').value;
$('m').run(b);
try{$('answ').value='';$('answ').focus();}catch(e){}
}
</script>
</body>
</html>

Xet Storage Details

Size:
6.95 kB
·
Xet hash:
71e28b28b270b9acfb1537a9716dbba38f4170712b15713563e9a90bb989d090

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.