game.title = "Demo game"; game.author = "Mike Buland"; game.version = 1; game.revision = 0; game.start = <<start>>; global { 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 <<main>> { command: "there" hi { } setup { player.inventory = []; } enter { } } function hello() { bob = 55 * 2 + 1; } situation <<start>> { enter { display('''You are here, there is a wrench sitting on the table.'''); test("use", bob ); } } situation <<end>> { enter { goto( <<start>> ); } }