Skip to content

Show a status window

A LitRPG or progression story shows its readers a status window: a character’s stats, set apart from the prose. In Leafbind a status window is part of the text, and it is joined up with your story events. Each number on it is either worked out from the story or one you give, which Leafbind then checks the story against.

In the editor and the preview it looks like this, from the end of the sample project’s Chapter 3:

Waverly · Hedge Healer, Level 4 HP — 58/60 Σ XP — 505 Σ Equipped — Stillwater Σ Inventory — Skinning Knife Σ

Put the cursor in the paragraph the status window should follow, then choose Edit → Insert status window…, the + Stats button above the text, or Insert status window… on the right-click menu. The status window goes in after that paragraph, never in the middle of a sentence.

In the dialog:

  • Whose: the character the status window is for. It starts with whoever your last status window was for, or the scene’s POV.
  • Title, and Beside it if you want a subtitle such as Level 7 Healer.
  • The stats it shows. Tick each one you want on the status window; unticked stats stay off it. Drag a stat by its handle to change the order, or use Alt+Up and Alt+Down.
  • For each ticked stat, choose:
    • Calculated here: the number is worked out from the story, and changes by itself if you change an earlier event. The dialog shows what it comes to now.
    • Specified here: you type the number. Leafbind checks the story against it, and warns if the two disagree.
  • Lists of things, such as an inventory or skills, can be rows too, calculated or frozen like a number. See Track items, effects and skills.
  • Add stat adds one the character doesn’t have yet. Add a line adds plain text, such as Class: Healer, or a heading such as Attributes if you leave its text empty.
  • Add a rule adds a line across the status window, to set one part apart from the next, such as the class from the numbers. Typing --- into Add stat does the same. In the file it is a row of dashes, | --- | |.

A new status window starts laid out like the character’s last one, so a status window that comes back every chapter only needs its numbers checked.

Click the status window. The same dialog opens, with Save and Delete. In a locked scene it opens read-only. A click on the status window in the preview opens it too, and you can change it there. In Preview alone, with no editor beside it, Ctrl+Z can’t undo that change; the scene’s history has the text before it.

To keep a number as it is now, choose Frozen at 80 for it, or Freeze all for every calculated number at once. A frozen number stays put while you change the story before it, and warns if the story stops adding up to it. Choose Calculated here to let it follow the story again.

  • A calculated number has a Σ beside it, for the sum of the events before it, and follows the story. Change the wolf bite in chapter 3 and every later calculated number follows. It changes nothing itself: the events after the status window carry on from where they were.
  • A specified number works like a checkpoint: from the status window on, it is the number. If the events before it don’t add up to it, the row turns amber, and pointing at it says what they add up to.

The text beside the title can show stats too, such as Hedge Healer, Level 4. In the dialog, write the stat’s name in braces in Beside it, Hedge Healer, Level {Level}, or choose it from Insert a stat beside the field. Each stat you name is listed under Shown beside the title, with the same choices as a row: Calculated here, Specified here or Frozen at. Locking the scene freezes it like any other calculated number, and an export or a copy shows just the number.

A list can stand there too, such as a class: {Classes}, Level {Hedge Healer Level} reads Hedge Healer, Level 4 (see Levels on skills and classes).

Select / max beside a stat in the dialog to show it out of its maximum, as HP 80/100. A bar between the name and the number fills to the share, green above half, amber above a quarter and red below. The maximum is a stat of its own, HP MAX, so it can be calculated, specified or frozen just like the number, and an event can change it: {>>! waverly.hp-max +10<<}.

Going over the maximum is flagged. If an event heals Waverly to 110 when her maximum is 100, that event turns amber and says so: Waverly HP is now 110, over its maximum of 100. Lowering the maximum below the number does the same. Only the event that takes her over is flagged, not every one after it while she stays there, and a status window showing 110/100 is flagged as well. Nothing is refused: if a potion really does push her past her maximum for one fight, keep it.

Once readers have seen a chapter, its numbers shouldn’t change behind their backs. So when you lock a scene, or mark it as published (which locks it), every calculated number on its status windows is frozen at what it shows. A frozen number has a snowflake beside it.

  • If you later change an earlier event, the frozen number stays and its row turns amber: frozen at 80 when the scene was locked, but the events before it now add up to 75. You decide what to do: fix the earlier event, or reopen the chapter and change what readers see.
  • Unlocking doesn’t unfreeze it. Otherwise unlocking a chapter to fix a typo and locking it again would quietly take the new number. To make a frozen number follow the story again, open the status window and choose Calculated here for it.
  • A scene locked some other way, for example in another editor, can still have calculated numbers. Its warning offers Freeze the numbers.

An EPUB shows a status window framed, with its icon in the title bar and its numbers lined up on the right. A chapter copied for Royal Road shows it as a plain table, because Royal Road keeps no styling from a paste. A chapter copied for Patreon shows it as a quote with one line per stat, because Patreon keeps no tables. Either way its numbers are in. A calculated number nothing in the story says the value of goes out as an empty cell, never as a question mark, and Leafbind tells you which ones before you post.

As well as a number the story disagrees with, a status window warns, in the same places as other stat warnings, when:

  • a calculated number has nothing to go on: no starting value, and no event before it;
  • the scene’s own end-of-scene events change it: those count at the end of the scene, after the status window, so it shows the number from before them;
  • a number is over its maximum, such as HP 110/100;
  • it is for a name no wiki entry has;
  • it can’t be read.
  • In any other Markdown editor, a status window is a plain table. A calculated number shows as ?, and a frozen one as ?:80; beside the title, as {level:?} and {level:?:4}. You never have to type any of them: the dialog writes them.
  • A status window doesn’t count towards your word count. It’s the game talking, not your prose. A table you write yourself, without a status window’s marker, still counts.
  • A line you type yourself is not followed. A line such as Skills: Heal, Void Step is shown as you wrote it. To have a list followed through the story, add it as a row, calculated or frozen.

The sample project has a status window at the end of each chapter. Create a copy of The Hedge Healer from Tutorials… in the ? menu, and click each window to see its rows in the dialog:

  • Chapter 1, The Wolf, is locked, as a chapter readers have seen would be, so every number on its window is frozen, its inventory list too. The window can’t change, and if you change an earlier event the frozen numbers warn instead of following.
  • Chapter 2, The Lake, states Waverly’s XP as 425, and the story is checked against it. Its class and level beside the title, and her skills, are calculated.
  • Chapter 3, Stillwater, is calculated throughout: HP out of its maximum, with a bar, then a rule, then four lists.

The last scene, Mistakes Leafbind catches, has two windows with warnings: a stat with nothing to go on, a stat the scene’s own end-of-scene events change, and a row whose name is no stat.