import mud.obj.*; player.tell("Inventory: "); if (player.contents.size() > 0) { player.contents.each { thing -> player.tell("- $thing [${thing.weight}u]"); }; } else { player.tell ("You're carrying nothing."); }