When in Rome 2: Far from Home

An interactive fiction by Emily Short (2006) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Section 4 - Mood-related

Definition: a person is offended:
    if the odor sensitivity of it is weak, no;
    if the odor sensitivity of it is inverse, no;
    if it can touch a stinky thing, yes;
    no;

Definition: a person is uncomfortable:
    if it is hungry, yes;
    if it is cold, yes;
    if it is offended, yes;
    if it is blinded, yes;
    no.

Definition: a person is comfortable if it is not uncomfortable.

Definition: a person is snappish if the mood of it is less than friendly and it is uncomfortable.

Definition: a person is light-sensitive if it lies beyond Saturn. Definition: a person is blinded if it is light-sensitive and it can see a lit device.

To decide whether (character - a person) lies beyond (place - a moon):
    if the system of the moon of the character is greater than place, yes;
    no.

To decide whether (character - a person) lies nearer than (place - a moon):
    if the system of the moon of the character is less than place, yes;
    no.
    
Mood is a kind of value. The moods are hostile, curious, friendly, and secretive. A person has a mood. A person is usually curious.