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 <
> { player.inventory = []; } function hello() { } situation <> { display('''You are here, there is a wrench sitting on the table.'''); global.command("use", } situation <> { goto( <> ); }