Example: hello world Example: demo adventure Example: 99 bottles RUN »
X OK
written by Gabor de Mooij | Licensed GPLv3
@^->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 @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 @^+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 @^:hello world! @^:I am MechaniQue/J 2.0! @^:PRESS ENTER TO CONTINUE @^? @fin