---
config:
  layout: elk
  theme: base
  themeCSS: ".cluster-label div { background: #fafbfc; }"
  flowchart:
    htmlLabels: true
    useMaxWidth: false
    curve: linear
    nodeSpacing: 30
    rankSpacing: 55
---
flowchart TB
%% Experienced events, memory, mood and breakdowns | Dwarf Fortress 53.16 | checked 2026-09-19
%% Node sources and edge claims: ../SOURCE-INDEX.md and ../systems-data.json
classDef state fill:#edf4fb,stroke:#557795,color:#152b40;
classDef process fill:#eaf5f0,stroke:#46795f,color:#173c29;
classDef control fill:#f0edfb,stroke:#79619b,color:#332552;
classDef report fill:#f0f1f3,stroke:#7a828a,color:#333b43,stroke-dasharray:3 3;
classDef inferred fill:#fff3da,stroke:#ad6900,color:#633d00,stroke-width:2px,stroke-dasharray:6 4;
classDef uncertain fill:#fff0f1,stroke:#b34150,color:#712631,stroke-width:2px,stroke-dasharray:2 4;
  subgraph sg0["Connections to other panels"]
    P_PERSON["Personality facets"]:::state
    P_VALUES["Personal values"]:::state
    P_NEEDS["Psychological needs"]:::state
    P_BEHAVIOR("Autonomous behavior"):::process
    J_WORK("Job execution"):::process
  end
  subgraph sg1["Experience"]
    P_THOUGHT["Experienced events / thoughts"]:::state
    P_EMOTION["Emotions"]:::state
  end
  subgraph sg2["Memory"]
    P_MEMORY["Short / long-term memories"]:::state
    P_RECALL("Recall past experience"):::process
    P_CORE["Core memories"]:::state
    P_TIME("Passing time"):::process
  end
  subgraph sg3["Stress"]
    P_STRESS["Short-term stress / mood"]:::state
    P_CHRONIC["Long-term stress"]:::state
    P_BREAKDOWN("Temporary breakdown"):::process
    P_INSANITY["Irreversible insanity"]:::state
  end
  subgraph sg4["Reports"]
    P_REPORT[/"Personality / thoughts<br/>display"/]:::report
  end
  subgraph sg5["Cross-system inputs"]
    W_ENV["Local environment"]:::state
    S_REL["Relationships and allegiances"]:::state
    C_HEALTH["Injuries and illness"]:::state
    C_DEATH["Death and corpses"]:::state
  end
  subgraph sg6["Cross-system outputs"]
    G_CRIME["Criminal acts / offenses"]:::state
  end
  P_TIME -->|"unmet needs worsen"| P_NEEDS
  %% edge 1: PS_NEED
  W_ENV -->|"weather and hazards trigger"| P_THOUGHT
  %% edge 2: PS_THOUGHT
  C_HEALTH -->|"pain and illness trigger"| P_THOUGHT
  %% edge 3: PS_THOUGHT
  C_DEATH -->|"witnessed death triggers"| P_THOUGHT
  %% edge 4: PS_THOUGHT
  S_REL -->|"social contact and loss<br/>trigger"| P_THOUGHT
  %% edge 5: PS_REL
  P_THOUGHT -->|"elicits emotional response"| P_EMOTION
  %% edge 6: PS_THOUGHT
  P_EMOTION -->|"strength selects stored<br/>events"| P_MEMORY
  %% edge 7: PS_MEMORY
  P_TIME -->|"eligible memories persist or<br/>replace"| P_MEMORY
  %% edge 8: PS_MEMORY
  P_MEMORY -->|"supplies remembered event"| P_RECALL
  %% edge 9: PS_MEMORY
  P_RECALL -->|"re-evokes emotion"| P_EMOTION
  %% edge 10: PS_MEMORY
  P_RECALL -->|"eligible memories become core"| P_CORE
  %% edge 11: PS_MEMORY
  P_CORE -->|"can permanently change facets"| P_PERSON
  %% edge 12: PS_MEMORY
  P_CORE -->|"can permanently change<br/>beliefs"| P_VALUES
  %% edge 13: PS_MEMORY
  P_EMOTION -->|"adds or subtracts stress"| P_STRESS
  %% edge 14: PS_EMOTION, PS_STRESS
  P_TIME -->|"drifts toward neutral"| P_STRESS
  %% edge 15: PS_STRESS
  P_STRESS -->|"gradually accumulates or<br/>recedes"| P_CHRONIC
  %% edge 16: PS_STRESS
  P_STRESS -->|"bad mood plus chronic stress<br/>risks"| P_BREAKDOWN
  %% edge 17: PS_STRESS
  P_CHRONIC -->|"high stress plus bad mood<br/>risks"| P_BREAKDOWN
  %% edge 18: PS_STRESS
  P_CHRONIC -->|"harrowed plus new trauma<br/>risks"| P_INSANITY
  %% edge 19: PS_STRESS
  P_BREAKDOWN -->|"causes tantrum or withdrawal"| P_BEHAVIOR
  %% edge 20: PS_BREAK
  P_BREAKDOWN -->|"cancels current job"| J_WORK
  %% edge 21: PS_BREAK
  P_BREAKDOWN -->|"tantrums can injure others"| C_HEALTH
  %% edge 22: PS_BREAK
  P_BREAKDOWN -->|"tantrum damage creates<br/>offenses"| G_CRIME
  %% edge 23: PS_JUSTICE
  P_INSANITY -->|"replaces ordinary behavior"| P_BEHAVIOR
  %% edge 24: PS_BREAK
  P_MEMORY -->|"reports recent history; not<br/>exact slots"| P_REPORT
  %% edge 25: PS_MEMORY
  P_STRESS -->|"summarizes mood"| P_REPORT
  %% edge 26: PS_STRESS
  click P_PERSON "https://dwarffortresswiki.org/index.php/Personality_facet" "P_PERSON: Personality facet" _blank
  click P_VALUES "https://dwarffortresswiki.org/index.php/Personality_value" "P_VALUES: Personality value" _blank
  click P_NEEDS "https://dwarffortresswiki.org/index.php/Need" "P_NEEDS: Need" _blank
  click P_BEHAVIOR "https://dwarffortresswiki.org/index.php/Need" "P_BEHAVIOR: Need" _blank
  click P_THOUGHT "https://dwarffortresswiki.org/index.php/Thought" "P_THOUGHT: Thought" _blank
  click P_EMOTION "https://dwarffortresswiki.org/index.php/Emotion" "P_EMOTION: Emotion" _blank
  click P_MEMORY "https://dwarffortresswiki.org/index.php/Memory_(thought)" "P_MEMORY: Memory (thought)" _blank
  click P_RECALL "https://dwarffortresswiki.org/index.php/Memory_(thought)" "P_RECALL: Memory (thought)" _blank
  click P_CORE "https://dwarffortresswiki.org/index.php/Memory_(thought)" "P_CORE: Memory (thought)" _blank
  click P_STRESS "https://dwarffortresswiki.org/index.php/Stress" "P_STRESS: Stress" _blank
  click P_CHRONIC "https://dwarffortresswiki.org/index.php/Stress" "P_CHRONIC: Stress" _blank
  click P_BREAKDOWN "https://dwarffortresswiki.org/index.php/Mental_breakdown" "P_BREAKDOWN: Mental breakdown" _blank
  click P_INSANITY "https://dwarffortresswiki.org/index.php/Mental_breakdown" "P_INSANITY: Mental breakdown" _blank
  click P_TIME "https://dwarffortresswiki.org/index.php/Memory_(thought)" "P_TIME: Memory (thought)" _blank
  click P_REPORT "https://dwarffortresswiki.org/index.php/Personality_facet" "P_REPORT: Personality facet" _blank
  click W_ENV "https://dwarffortresswiki.org/index.php/Thought" "W_ENV: Thought" _blank
  click S_REL "https://dwarffortresswiki.org/index.php/Relationship" "S_REL: Relationship" _blank
  click J_WORK "https://dwarffortresswiki.org/index.php/Skill" "J_WORK: Skill" _blank
  click C_HEALTH "https://dwarffortresswiki.org/index.php/Thought" "C_HEALTH: Thought" _blank
  click C_DEATH "https://dwarffortresswiki.org/index.php/Relationship" "C_DEATH: Relationship" _blank
  click G_CRIME "https://dwarffortresswiki.org/index.php/Justice" "G_CRIME: Justice" _blank
