# Characters, story nodes, and branches

> Build characters who evolve over time, hide plot secrets safely, structure multi-scene arcs with natural-language branches and fallbacks, and craft memorable endings.

What separates a forgettable chatbot from a story players stay up late finishing? **Progression** — characters whose demeanor softens as trust grows, secrets that stay locked until earned, and moments where the player's choices genuinely steer where the plot goes next.

In LoreHat Studio, **Characters** and **Story** give you visual, no-code tools to choreograph all of that without rigid multiple-choice menus.

## Design characters who grow and keep secrets

Open **Characters** in the sidebar to manage both your starring cast and background extras.

![Studio Characters workspace showing Main characters, Supporting characters, Name, Gender, Age, One-line introduction, and Character profile with Add alternate profile](/illustrations/studio-basics/studio-characters.webp)

### When to use each character tool

| What you want | Use this feature | Concrete example |
| :-- | :-- | :-- |
| Everyday personality, voice, and backstory | **Default Character profile** | Mara is guarded, dry-humored, and avoids eye contact when her family comes up. |
| Character visibly changes after a turning point | **+ Add alternate profile** _(with a condition)_ | Once `trust >= 4`, Mara's **Confidante** profile activates: she drops the sharp sarcasm, shares her fears openly, and treats the player as an equal partner. |
| A canon truth the character hides until earned | **Add character information** _(secret, with a condition)_ | _"Mara hid the original harbor ledger beneath the third lighthouse stair"_ — unlocked only when `visited: Lighthouse` and `trust >= 3` (or marked **Always active** so the AI has the secret available whenever that character profile is active; this setting alone does not stop the character from revealing it). |
| Shopkeepers, guards, neighbors, or passersby | **Supporting characters** | Describe the town bartender and night watchman in one short block instead of building full character sheets for everyone. |

### Controlling background extras (Supporting characters)

Under **Supporting characters**, two simple switches prevent crowded or off-tone scenes:

- **Allow relevant supporting characters:** Great for bustling cafés, fantasy towns, or detective investigations where a passing courier or waiter makes the world feel alive.
- **Prevent unrelated characters:** Great for intimate two-person dramas, survival stories, or locked-room mysteries where random strangers shouldn't wander in uninvited.

## Choose the right Story structure for your work

Open **Story** in the sidebar. Not every great work needs ten chapters — pick the structure that fits your premise:

![Studio Story workspace showing Global story guidance, Show scene names on transition, Change start mode, and ordered story nodes with As written and Outline modes](/illustrations/studio-basics/studio-story.webp)

| Structure | Best for | How to build it on the Story page |
| :-- | :-- | :-- |
| **Single open scene** | Cozy hangouts, language partners, freeform slice-of-life | Write **Global story guidance** + 1 **Outline** node describing the everyday setting and vibe. |
| **Linear chapters (3–5 nodes)** | Slow-burn romances, road trips, guided mysteries | Add nodes in order with **Next node**. Use conditions (like `trust >= 3`) so Chapter 2 opens only when the player is ready. |
| **Branching story with endings** | Thrillers, heist stories, detective cases, RPG quests | Add **Branches** on pivotal nodes, define natural-language **Routes**, add a **Fallback** for missed clues, and mark final nodes as **Normal** or **Bad endings**. |

### Key controls on every Story node

- **As written vs. Outline:**
  - Pick **As written** when exact plot facts or choreography matter (_"The power cuts out; a brass key slides under the door with a torn note"_).
  - Pick **Outline** when you want fluid improvisation around a goal (_"Lucía chats over morning coffee and adapts her Spanish to the player's comfort level"_).
- **Change start mode:** Choose **The opening message is the story start** or **Write the story start separately**. This changes how the editor presents the opening; both modes follow the same entry rules once play begins.
- **Show scene names on transition:** Switch this on to display chapter titles cleanly in chat whenever the story enters a new node — players love feeling like they just turned a page!
- **First node rule:** Every new chat enters your **first main-route node**, so keep it unlocked at the start (no entry condition that starts out false). Drag nodes up or down anytime to reorder your main route.

> **Natural pacing, not forced skipping:** Adding a **Next node** gives the AI a clear destination when the current beat feels resolved — it won't abruptly yank the player out of a great conversation after one message.

## Make scenes react with conditions, entry updates, and arrival cues

Before adding conditions, create your trackers under **Work variables** so Studio can show clean dropdowns and protect you from typos.

### 1. Entry conditions ("Who can enter this scene?")

Combine simple rules with **And** (every rule must be true) or **Or** (at least one must be true):

- **Example (unlocking a secret room):** Enter _The Hidden Archive_ only when **all** of these hold: `trust >= 3` **and** `key_found` is `true` **and** **Visited story node** includes _The Old Harbor_.

### 2. Set variables on entry ("What changes automatically on arrival?")

Set one or more variables the instant the story enters a node — for example, entering _Act II: The Storm_ automatically sets `chapter` to `2` and `storm_active` to `true`. _(Note: entry conditions are checked before entry updates run, so a node can't use its own entry update to satisfy its own entry condition.)_

### 3. Prompt on entry (one-time cinematic entrance)

Want a dramatic arrival moment without the AI repeating it three messages later? Put a one-shot direction in **Prompt on entry**:

- **Example:** _"Open with two atmospheric sentences describing the foghorn echoing across the black water and the sudden drop in temperature."_

LoreHat sends **Prompt on entry** only on the turn the scene begins; lasting scene rules stay in the main node text.

## Craft branches, natural choices, fallbacks, and endings

### Example: structuring a turning-point scene

Imagine a mystery chapter called **Node 2: The Harbor Warehouse**. You want two dramatically different outcomes plus a safety net if the player arrived without the warehouse key:

1. **Main route (`Node 2: The Harbor Warehouse`):** Entry condition requires `key_found == true`.
2. **Fallback branch (`When entry conditions are not met`):** Point this to a branch called **Break In Through the Pier Window**. Players who skipped the key take this tense detour, find an alternate way inside, and use **Return after the branch** to rejoin **Node 3: Facing the Mayor**!
3. **Natural-language Routes:** Add two routes on Node 3:
   - **Route 1 — Description:** _"Hide the forged ledger and cover for the harbor master"_ → **Continue to:** _Ending: Quiet Compromise_
   - **Route 2 — Description:** _"Confront the mayor publicly with the ledger"_ → **Continue to:** _Ending: Dawn Trial_ (**Available when:** `trust >= 3`)

### Writing choices that feel like magic to players

- **Describe player intent, never button labels.** Write _"Refuse the bribe and walk out into the storm"_, not _"Option B"_. Players just roleplay naturally in their own words, and LoreHat recognizes when they commit to that path!
- **Per-scene cast controls:** Use **Allowed characters** and **Blocked characters** on a node to keep cast lists tidy (for example, blocking _The Mayor_ from appearing during _Private Rooftop Talk_). Leaving **Allowed characters** empty permits everyone; **Blocked characters** always wins.
- **Normal ending vs. Bad ending:** Mark any final node (other than your opening node) as an **Ending**. Reaching an ending wraps up the structured plot cleanly — and players can still keep chatting afterward to play out their own epilogue!

## Check your visual map and playtest every route

Click **Story progression** in the top right of the **Story** page to inspect your whole flowchart — main route, branch detours, return arrows, and endings — at a single glance. Look for any stray node that nothing points to.

Then open **Preview chat → Restart** and test:

- Entering the story cleanly with starting variable values.
- Expressing a branch choice in completely different everyday words than your choice description.
- Missing a condition on purpose to verify your fallback branch catches the player smoothly.
- Playing through each ending — plus sending one epilogue message afterward.

## Hand this to your AI: design a branching story arc

Want help plotting scenes, secrets, and branches? Copy this prompt into your AI assistant:

```text
Help me outline a playable branching story for LoreHat Studio (no coding).
Create a 4-node main arc plus 1 optional branch and 2 distinct endings (1 Normal ending, 1 Bad ending):
- Recommend 2–3 simple Work variables to drive the story (name, type, initial value).
- For each Story node, give: Title, recommended mode (As written or Outline), 1-sentence Prompt on entry, scene description (3–5 sentences), any entry condition, and any variables set on entry.
- On the turning-point node, write 2 natural-language route descriptions phrased as player intent (not "Option A/B") and name which ending each leads to.
- Include 1 Alternate profile and 1 secret **Character information** entry unlocked midway through the story.

My premise and main character: [PASTE YOUR IDEA HERE]
```

Next: deepen your world with Writing styles, Sticker board, World Lore, variables, and visuals in [World Lore, writing styles, variables, and visuals](/en/creator/systems/).
