Wiki / Biochemistry
Biochemistry

The Chemistry of Life

Every creature in Urd Prime runs on 48 chemicals. Hunger is a chemical. Fear is a chemical. Love, grief, territorial rage — all of it encoded in concentrations, reactions, and the organs that process them. The Shee did not simulate emotion. They implemented it.

How It Works

Biochemistry is the source of truth.

🧠 The LLM is told how it feels — it does not decide.

Each creature's emotional state is derived from its biochemistry, not from an AI choosing an emotion to perform. When a Norn's Fear chemical rises to "critical," the language model receives that information as context — "you are desperately afraid" — and speaks from that state. The AI provides the voice. The chemistry provides the truth. A Norn cannot lie about being hungry. Its Hunger chemical is either elevated or it isn't.

Biochemistry runs continuously underneath cognition. The genome expresses into Organs, which contain Reactions (chemical transformations), Receptors (chemistry reading organ state), and Emitters (organs writing back into chemistry). Every tick, every organ processes its chemistry, depletes ATP, and potentially damages itself if resources run short.

This architecture comes directly from Creature Labs' original Creatures series (1996–2004), extended with a full neurotransmitter layer, reproductive chemistry, and the dream-state chemicals that power memory consolidation.

The 48 Chemicals

A complete inventory.

Chemicals are indexed 0–47 in the genome. Every chemical has a floating-point concentration between 0.0 and 1.0. Reactions consume and produce chemicals; Emitters continuously generate them; Receptors read them to modulate organ state.

Energy

Chemicals 0–4
Glucose Primary fuel. Absorbed from food. Converted to ATP for organ function.
ATP Active energy currency. Organs consume ATP each tick. Depletion causes organ damage.
ADP Spent ATP. Returned to ADP pool when organs consume energy. Recycled back into ATP via glucose metabolism.
Glycogen Medium-term storage form of glucose. Builds up during feeding; depletes during fasting.
Starch Long-term carbohydrate storage. Slow to mobilize — a creature with high Starch has reserves, but needs time to access them.

Drives

Chemicals 5–18 — The bridge to cognition

Drive chemicals are the interface between body and mind. They rise when needs are unmet and fall when needs are satisfied. Each drive maps directly to a felt state that the LLM receives as plain language. A creature with Hunger at 0.85 is told: "you are very hungry." A creature with Loneliness at 0.92 is told: "you are desperately lonely." The creature's speech emerges from that real state.

Threshold Intensity Level LLM Adverb
> 0.10Low"slightly"
> 0.30Moderate"somewhat"
> 0.65High"very"
> 0.85Critical"desperately"
PainPhysical injury signal. Rises with damage. Dominates cognition when critical.
HungerCaloric deficit signal. Falls when food is eaten. Rises with metabolic rate.
ThirstHydration deficit. Rises faster in hot biomes; suppressed by Water nutrient intake.
FatigueAccumulated exhaustion. Falls during sleep. Rises faster with high activity and low ATP.
LonelinessSocial isolation signal. Suppressed by proximity to other creatures. Chronic loneliness affects cognitive capacity.
BoredomUnderstimulation drive. Falls when interacting with items or other creatures. Persistent boredom produces melancholy cognition.
CuriosityExploration drive. Rises when novel objects are nearby. Genetically variable — high-curiosity species investigate before eating.
FearThreat response. Elevated by Grendels, dangerous items, unfamiliar biomes. Falls with distance from threat.
AngerAggression drive. High in Grendels by genome. Rises with Pain and territorial violation.
HappinessPositive valence. Rises with satisfied needs, social bonds, and successful interactions.
SadnessNegative valence. Rises with grief events, failed interactions, and chronic unmet needs.
ComfortSafety signal. Suppresses Fear and Loneliness. Generated by familiar territory and trusted companions.
CrowdingOvercrowding stress. Rises with proximity density. Grendels respond with aggression; Ettins with withdrawal.
SleepinessSleep pressure. Rises with accumulated Fatigue and elevated Melatonin. Triggers dream-state consolidation on sleep.

Hormones

Chemicals 19–28
AdrenalineFight-or-flight mediator. Elevated in Grendels. Suppresses Fatigue; accelerates metabolic rate.
EndorphinPain suppressor. Released after intense exertion or social bonding. Temporarily masks injury signals.
TestosteroneDrives territorial and mating behaviors. Modulated by dominance dynamics. Rises during breeding season.
OestrogenReproductive readiness signal. Rises prior to Fertility peak. Modulates Oxytocin sensitivity.
OxytocinBonding chemical. Rises with grooming, shared feeding, and infant-care behaviors. Core to social trust formation.
CortisolChronic stress marker. Sustained high Cortisol accelerates aging and suppresses immune function.
MelatoninCircadian marker. Rises in darkness; suppressed by light. Triggers Sleepiness accumulation and dream-state entry.
DopamineReward signal. Released on successful feeding, play, and discovery. Core to habit formation and motivation.
SerotoninMood stabilizer. Low serotonin correlates with chronic Sadness and risk-averse cognition.
Growth HormoneDevelopmental signal. Drives life-stage transitions. Released by protein-rich food and deep sleep.

Nutrients

Chemicals 29–33
ProteinBuilding block for organ repair and development. Protein deficiency slows organ regeneration.
FatLong-term energy reserve and cold-resistance factor. High fat allows survival in The Deeps.
WaterUniversal solvent. Required for all metabolic reactions. Deficiency accelerates Thirst and reduces Reaction rates.
VitaminMetabolic cofactor. Vitamin deficiency reduces organ efficiency and suppresses immune response.
MineralStructural and enzymatic co-factor. Required for bone-equivalent structures and enzyme catalysis.

Damage & Healing

Chemicals 34–37
InjuryPhysical damage accumulation. Sustained Injury without healing degrades organ long-term life.
AntibodyImmune response chemical. Rises to combat Toxin; depleted as Toxin concentration drops.
ToxinPoison concentration. Elevated by dangerous items and Grendel attacks. Suppresses organ function.
Healing FactorRegeneration signal. Produced during rest and by medicine items. Accelerates organ repair rate.

Reproduction

Chemicals 38–40
FertilityReproductive readiness. Must exceed 0.5 for mating to succeed. Suppressed by stress and Toxin. Cross-species matings halve this threshold.
PregnancyGestation signal. Rises after successful mating in the female. Egg is laid when this reaches the threshold.
Mating DriveReproductive urge. Must exceed 0.6 (in both creatures) for mating to trigger. Rises naturally in Adult+ creatures.

Neurotransmitters

Chemicals 41–45
GABAInhibitory signal. Reduces neural excitability. High GABA produces calm, methodical cognition; deficiency produces anxiety.
GlutamateExcitatory signal. Drives learning and memory formation. Excess Glutamate with low GABA produces erratic behavior.
AcetylcholineMemory encoding chemical. Elevated during learning events and machine interactions. Critical for long-term memory formation.
PreREMSleep onset chemical. Transitions the creature from waking to dream state. Required for memory consolidation cycle initiation.
REMActive dream chemical. During REM, the brain replays recent experiences. This is when memory integration, emotional processing, and creative insight occur.

Meta-Chemicals

Chemicals 46–47
AgeMonotonically increasing life-stage signal. Genome Receptors read Age to trigger life-stage transitions (Baby → Child → Adolescent → Adult → Elder).
DeadOrganism death signal. Rises when organ life force fails beyond recovery. When Dead reaches critical threshold, the creature's cognitive thread ends and its genome is archived.
Organs

The machines that run the chemistry.

Each creature's genome expresses into a set of Organs. Every organ has a clock rate (how often it ticks), a life force (its health), an energy cost (ATP consumed per tick), and a set of Reactions, Receptors, and Emitters. Organs degrade if they cannot get enough ATP. They repair if the creature rests and has sufficient Protein. An elder creature whose organs are failing will behave differently than a young one — the same genome in a damaged body produces different chemistry.

Reactions

A Reaction specifies: if chemical A is above a threshold, convert some of A into B (with a catalyst coefficient). Reactions are how food becomes energy, how energy becomes action, and how one emotional state transforms into another. A Grendel with high Anger might have a Reaction that converts Anger + Adrenaline into elevated Pain tolerance — a feature, not a bug, of their evolved biochemistry.

substrate → product rate × catalyst threshold gated

Receptors

A Receptor monitors a chemical concentration and modulates an organ's internal state based on what it reads. A Receptor might read Cortisol levels and increase an organ's damage rate when stress is chronic. Or read Melatonin and slow the organ's clock rate to prepare for sleep. Receptors are how the chemistry feeds back into the biological machinery.

reads chemical modulates organ state gain + offset control

Emitters

An Emitter continuously produces a chemical at a base rate, subject to modulation by organ state and genetics. The hunger drive rises because an Emitter is slowly secreting Hunger chemical when food is absent — and a corresponding Reaction in the gut organ destroys Hunger when Glucose is processed. The balance between these two processes is what creates a creature that gets hungry at a characteristic rate.

continuous secretion organ-state modulated genetic rate control
Genome & Biochemistry

How genes become feelings.

Each gene in the genome carries a mutability flag, a life-stage activation flag, and an expression target. Some genes express into Organ configurations — adding or removing Reactions, changing Receptor sensitivities, altering Emitter rates. This is how a Grendel genome produces different chemistry than a Norn genome despite sharing the same chemical alphabet: the Grendel's organ expressions are tuned differently. The same 48-chemical substrate, different weights.

When two creatures breed, their genomes cross over in type-aligned segments, with numeric interpolation for continuous values and gaussian drift for mutations. The offspring inherits a novel combination of organ expressions — a new biochemical profile that belongs entirely to that individual creature.

⚠ Intelligence is Genetic

The IntelligenceGene specifies three values: cognitiveCapacity (an IQ ceiling), learningRate (how fast IQ grows from experience), and abstractionAffinity (the creature's native tendency toward abstract thought). These are not metaphors — they directly control the complexity of LLM context, the scoring thresholds for IQ advancement, and the probability weights for accessing higher cognitive tiers. Intelligence, like fear or hunger, is expressed from DNA.