game { title = "Demo game"; command: "take" item { if item in situation.items then { player.inventory += item; situation.items -= item; display('''You pickup the ''' + item + ''' and put it in your pocket.'''); } else { display('''You don't see anything like that here.'''); } } command: "use" item { if not item in player.inventory then { display('''You don't have anything like that in your pocket.'''); } else { } } } situation <
> { command: "there" hi { } setup { player.inventory = []; } enter { } } function hello() { } situation <> { enter { display('''You are here, there is a wrench sitting on the table.'''); test("use", bob ); } } situation <> { enter { goto( <> ); } }