1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-16 22:14:23 +03:00
inform7/resources/Documentation/Examples/RedCross.txt

24 lines
713 B
Plaintext
Raw Normal View History

Example: * Red Cross
Location: New actions
RecipeLocation: Combat and Death
Index: DIAGNOSE command
Description: A DIAGNOSE command which allows the player to check on the health of someone.
For: Z-Machine
2019-02-05 02:44:07 +02:00
{*}"Red Cross"
2019-02-05 02:44:07 +02:00
Diagnosing is an action applying to one visible thing. Understand "diagnose [something]" as diagnosing.
Check diagnosing:
if the noun is not a person, say "Only people can have diagnoses." instead.
Carry out diagnosing:
say "You're not a medical expert."
2019-02-05 02:44:07 +02:00
Instead of diagnosing the player:
say "You feel fine!"
2019-02-05 02:44:07 +02:00
The Clinic is a room. Fred is a man in the Clinic. The player carries a tongue-depressor.
Test me with "diagnose me / diagnose fred / diagnose tongue-depressor".