3 ms·
"I don't think COBOL is a good comparator." Another similar language is Inform 7, the text adventure authoring language, which came out in 2006, about 20 years
by pmoriarty 6y ago
"I don't think COBOL is a good comparator."
Another similar language is Inform 7, the text adventure authoring language, which came out in 2006, about 20 years after Hypercard.[1]
Below is a simple example program in the language. A more involved example can be found here: [2]
"Hello Deductible" by "I.F. Author"
The story headline is "An Interactive Example".
The Living Room is a room. "A comfortably furnished living room."
The Kitchen is north of the Living Room.
The Front Door is south of the Living Room.
The Front Door is a door. The Front Door is closed and locked.
The insurance salesman is a man in the Living Room. The description is "An insurance salesman in a tacky polyester suit. He seems eager to speak to you." Understand "man" as the insurance salesman.
A briefcase is carried by the insurance salesman. The description is "A slightly worn, black briefcase." Understand "case" as the briefcase.
The insurance paperwork is in the briefcase. The description is "Page after page of small legalese." Understand "papers" or "documents" or "forms" as the paperwork.
Instead of listening to the insurance salesman:
say "The salesman bores you with a discussion of life insurance policies. From his briefcase he pulls some paperwork which he hands to you.";
move the insurance paperwork to the player.
[1] - https://en.wikipedia.org/wiki/Inform_7 https://en.wikipedia.org/wiki/Inform_7
[2] - http://inform7.com/book/RB_1_3.html#e74 http://inform7.com/book/RB_1_3.html#e74