I remember doing this in Leisure Suit Larry and Maniac Mansion...
Swearing in 8-bit adventures A few of the responses are quite creative, like sending you to God's prison (which you could escape if you examine the floor for a trap door, free to swear again...)