Skip to content
TheGenieOfTheCode edited this page Nov 15, 2026 · 9 revisions

Draw Steel: Battle Log

Notes on how this module works and why it is built the way it is. The README is the short version: what the module does and what it looks like. These pages are the long version, for anyone curious how it works, since a lot of it isn't obvious from the code.

Pages

  • Turn Markers covers why the markers are drawn into the log rather than posted to it, how the Director decides where a line lands, and some annoying problems I ran into along the way.
  • Compact Abilities covers the theme fix, why it is needed at all, and how folding a message works.
  • Target Damage Style covers the compact panel for the target sections of Draw Steel 1.2 messages, the modifier pills, and why the rows are the system's own sections.
  • Clean Comms covers the Speaking As row, one line messages, joining messages and highlighting names, and how a typed message's speaker gets changed.
  • Resource Log covers what gets logged and how a line reads, who dealt the damage, merging, who sees what, where the automatic numbers come from, and the problems that came up.
  • Effect Log covers which conditions and effects get logged, why a line says an effect ended, forced movement and falls, who sees what, and what other modules can use to keep their effects out or log their own moves.
  • Chat Tabs covers the All, Abilities, Logs and Chat tabs, the ability lines in the Logs tab, and how the counts work.

In the module's settings tab, the book icon beside a heading or a setting opens its page here.

The shape of it

The module does eight things.

  1. It records where each turn, round and fight began, and draws lines into the chat log at those points. Nothing is posted and nothing is written onto anybody's messages.
  2. It redeclares the system's dark palette on the chat containers, so the messages follow your theme instead of a quirk of how the system scoped its own CSS.
  3. It lets you fold an ability message down to its name, and remembers that choice per person.
  4. It turns typed messages into single lines with the speaker's portrait, lets you choose who you speak as, and highlights the names people mention.
  5. It records every change to a creature's resources during a fight, and draws a line for each into the chat log where it happened, the same way as the turn markers.
  6. It records when conditions and effects start and end on creatures, and when creatures are force moved or fall, and draws those lines the same way.
  7. It adds tabs above the chat log to show everything, only abilities, only the logs, or only talk.
  8. It can fold the target sections of Draw Steel 1.2 ability messages into the compact panel Target Damage used, with the modifiers as pills you can click.

Everything a player sees is theirs alone, apart from the record of where the turns fell and the two logs, which the Director keeps on everybody's behalf.

History

Called Draw Steel: Chat Polish until 2026-09-27, once the turn markers made the battle log its main feature. The rename changed the module id, and a Foundry setting is stored under the id, so src/migrate.mjs carries the old settings across the first time the renamed module loads. It copies rather than moves, so rolling back loses nothing.

Clone this wiki locally