Switch to edit mode.
Name(s): sit1: if (player.location != this.location)
2: player:tell("Uh...shouldn't you at least be in the same room?")
3: elseif (player in this.sitting)
4: player:tell("But you're already sitting on ", this:title(), "!")
5: else
6: player.location:announce_all_but({player}, player:title(), " sits down on ", this:title(), ".")
7: player:tell("You sit down on ", this:title(), ".")
8: this.sitting = {@this.sitting, player}
9: endif