V1.27.0: battles that run themselves: track, targets, hit or miss, saves, auto-rolls

- Turn-order track: names coloured by PC, NPC or monster, this round, a flag
  where it ends, and the next round
- Target by clicking a name on the track, the card, or keys 1-9; whoever is
  on turn and every target show what they have in hand
- Attacks and spells are declared, rolled and applied: type or roll the d20
  and the app says hit, miss or critical; a save spell asks each target for
  its save against the caster's DC; the DM overrules anything and applies
- Critical damage by the campaign's rule; a spell spends its slot; a
  concentration save is called for
- Auto-rolled monster and NPC attacks: aimed (weighted), rolled, and offered
  to the DM to accept, edit or discard; hidden from players until accepted
- Monsters can have named attacks and multiattacks; spells say how they land
- A "What now" line tells the DM (and each player) what the scene waits on

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 09:14:04 +02:00
co-authored by Claude Opus 5.5
parent 8811f14732
commit 9b3637576d
29 changed files with 2693 additions and 38 deletions
+131 -11
View File
@@ -319,6 +319,21 @@ battles only.
combatant it returns to the top and the **round** goes up by one.
- **Next Round** skips straight to the top of the next round.
- Anyone out of the fight (section 6, "The fallen") is passed over.
- **The turn-order track.** While a battle is in progress a line of names
stays at the top of the screen: whoever is on turn first (larger, with ▶),
then everyone still to act this round, then a **🏁 Round N+1** flag where
the round ends, then the whole order again for the round after. It is names
only, coloured by what each is: **blue** for a player character, **green**
for an NPC, **red** for a monster. A struck-through name is dying. The DM
can read off who is next, and who follows the end of the round, at a glance.
Before the battle begins the older strip (names with HP) is shown instead.
- **What now.** Under the track the DM gets one line saying what the scene is
waiting on: "Aria's turn: waiting for them to pick a target", "Aria's
Longsword: enter the d20 against Goblin 1 (AC 15)", "Fireball: 3 saving
throws to enter (DEX, DC 14)", "Goblin 2's Attack is ready (Aria: hit for
5). Accept, change or discard it." A player gets the same line for what is
theirs to do: "Your turn! Pick a target", "Roll your d20 for Longsword",
"make a DEX saving throw and enter your d20".
- **The list follows the turn.** While a battle is in progress, whoever is on
turn is at the top of "Initiative order" with those still to act this round
beneath them. Each combatant whose turn has passed moves down to a **Next
@@ -333,8 +348,10 @@ Combatants can be marked as **targets**: whoever is being attacked (or
healed) right now. One target is an ordinary attack; more than one is an
**area attack**.
- Click **🎯 Target** beside a combatant's name to mark them; click it again
to unmark. Each one marked is added to the targets.
- Three ways to mark someone, each a toggle: click their **name on the
turn-order track**; click **🎯 Target** beside their name on their card; or
press **1 to 9** for the first nine combatants in turn order (leaving out
whoever is on turn). Each one marked is added to the targets.
- The **DM** can mark anyone at any time, in a battle or a quest. A **player**
can while their own character is on turn in a battle, so they can show the
DM who they are going for. A player cannot mark someone who is out of the
@@ -344,8 +361,13 @@ healed) right now. One target is an ordinary attack; more than one is an
on their own turn, use the buttons on their card.
- A target's card is outlined in red for everyone and reads "Targeted by
<whoever is on turn>".
- While anyone is marked the DM gets an **attack bar** above the list, which
stays in view while scrolling. It shows who is attacking whom, each target's
- **In hand.** The card of whoever is on turn, and of every target, shows a
highlighted "In hand" line: the weapons the character has equipped, with
their to-hit and damage (or, for the DM, a creature's attacks). So both
sides of an exchange show what they are fighting with.
- While anyone is marked the DM also gets a quick **damage bar** above the
list, for changing HP by hand without an attack (below). It shows who is
attacking whom, each target's
AC and HP, and the attacker's attacks: a character's equipped weapons (none,
if nothing is equipped) and damaging spells, or a monster's or NPC's
attack and damage. The amount box is ready to type in; **Damage** (or
@@ -381,8 +403,96 @@ An attack on several targets is harder to land and its damage is shared.
is applied.
- A target with no hit points to track is left out of the sharing.
The app does not roll the attack or decide whether it hits: the DM compares
the roll with the AC shown and types the damage.
The damage bar does not roll or decide anything: it is for when the DM
already knows the number. An attack that is to be rolled and judged goes
through **Attacks and spells**, next.
### Attacks and spells
An attack or a spell is **declared**, **rolled**, and then **applied** by the
DM. The app works out whether it hits (or whether each target saves) from the
d20 that is entered, and the DM can overrule it at every step.
**1. Declare.** Once a target is marked, a box "<whoever is on turn> attacks
with…" lists what they can use, one button each:
- a character's **equipped weapons** (outlined, so the weapon in hand stands
out), each with its to-hit and damage;
- the **spells** they know, each saying how it lands: a spell attack ("+6 to
hit"), a saving throw ("DC 14 DEX save"), or no roll;
- for the DM, a monster's or NPC's **own attacks**;
- for the DM, **✎ Something else…**: an attack roll, a saving throw or an
effect spelled out on the spot (a trap, a breath weapon, a monster's spell):
its name, bonus or DC and ability, and damage dice.
A **player** declares for their own character, on its turn. The **DM**
declares for anyone. Declaring replaces that combatant's unfinished action.
**2. Roll.** The action appears as a card for everyone, with a row per target:
| The action is | Each target's row asks for | And says |
|---|---|---|
| An attack (a weapon, a spell attack, a creature's attack) | The attacker's **d20** against that target | "17 vs AC 15": **HIT**, **MISS**, **CRITICAL HIT** on a natural 20, a miss on a natural 1 |
| A saving throw spell | That target's **d20** for the save; their save bonus is filled in | "14 vs DC 14": **SAVED** or **FAILED** |
| Something that just lands (Magic Missile) | Nothing | It hits |
- The d20 is **typed in** (press Enter or click away) or **rolled by the
app** with "🎲 Roll the d20". A player follows the campaign's dice setting;
the DM can always do either. With several targets an attack takes one d20
per target, and the area-attack AC penalty is counted in.
- The attacker's player enters the attack rolls; a player enters the **save
for their own character** when a spell or trap is aimed at them; the DM can
enter anything.
- **Damage**: once something hits (or someone fails a save), "🎲 Roll damage"
rolls the dice shown, or the total rolled at the table is typed in. On a
**critical hit** the app rolls the critical damage as well, by the
campaign's rule (the dice twice, or the dice at their most plus one roll),
and that target takes it. A save that succeeds takes half, or nothing,
as the spell says.
**3. Overrule (DM).** Beside each target the DM has **Hit / Miss / Crit** (or
**Saved / Failed**) buttons that rule the outcome whatever the dice say (a
ruling shows a ✎; pressing it again goes back to the dice), and a **dmg** box
to set what that one target takes. "Aim it at" moves a single-target action
to someone else, keeping the d20 already rolled.
**4. Apply (DM).** **✔ Apply** (or the **A** key) lets it land: each target
loses what the card says, with temp HP, death saves and the fallen handled as
for any damage; a spell spends a slot of its level from its caster (if they
have none left it says so and spends nothing); anyone hurt while
Concentrating gets a line telling the DM the save to call for. The card then
moves to **⚔ What just happened** in the side column, where the last few
actions stay for everyone to read. **✕ Discard** throws it away; a player can
call off their own.
Passing the turn discards whatever was left unfinished.
### Auto-rolled monster and NPC attacks
With **Auto-roll monster attacks** (and, separately, **Auto-roll NPC
attacks**) on in the campaign settings, a monster's or NPC's turn begins with
its attack **already declared and rolled** by the server:
- **Who it goes for.** Monsters and hostile NPCs attack the party (characters
and friendly NPCs); friendly NPCs attack monsters and hostile NPCs; a
neutral NPC attacks nobody. Among those still standing the target is drawn
at random, weighted: whoever it attacked last and whoever has hurt it count
for more, and so, a little, does a lower AC. A creature with several
attacks tends to keep at one foe.
- **What is rolled.** The d20 against that target's AC, and, on a hit, the
damage (critical damage on a natural 20). A monster with **named attacks**
([MONSTERS.md](MONSTERS.md), section 2) makes each of them, as many times
as its multiattack says: one card each.
- **The DM decides.** The card reads, for example, "🤖 Goblin 2: Attack → Aria:
17 vs AC 15, HIT, −5 HP". **✔ Accept** applies it; or change the target,
the d20, the outcome or the damage first; or **✕ Discard** it and run the
turn by hand.
- **Players do not see it until it is accepted**, when the campaign keeps the
DM's monster rolls hidden (the default); then it appears in "What just
happened" like any other.
A creature with no attack bonus or damage, or with nobody to attack, declares
nothing.
## 8. Conditions
@@ -570,7 +680,9 @@ when there is something to trade, and always for the DM in a quest.
| Rewards | All | Only awarded ones |
| Difficulty and the monsters' XP | Yes | Never (awarded XP shows on their own sheet) |
| Exchange rates and things for sale | Yes | Yes, for NPCs they can see and for the scene itself |
| Controls (add, damage, turns, rewards) | Yes | None |
| An attack or spell being resolved | Yes, all | Yes, but not a monster's or NPC's AC, and not the DM's hidden (auto-rolled) ones until they are accepted |
| What just happened (the last few actions) | Yes | Yes |
| Controls (add, damage, turns, rewards) | Yes | None, apart from their own attacks and rolls |
The server only sends a player what the right-hand column lists, so hidden
information cannot be dug out of the page.
@@ -588,6 +700,12 @@ information cannot be dug out of the page.
| Change HP or conditions | Yes | No |
| Enter an initiative roll | Yes, for anyone | For their own character only |
| Mark targets | Yes, any time | On their own character's turn |
| Declare an attack or a spell | Yes, for anyone, and anything spelled out | For their own character, on its turn, with its weapons and spells |
| Enter or roll an attack's d20 and damage | Yes | For their own character's attack |
| Enter or roll a saving throw | Yes, for anyone | For their own character |
| Overrule a roll, set a target's damage, change the target | Yes | No |
| Apply or accept an action | Yes | No |
| Discard an action | Yes | Their own |
| Enter a death save, or stabilise | Yes, for anyone | For their own character only |
| Set death-save tallies by hand | Yes | No |
| Revive a dead character outright | Yes | No |
@@ -608,10 +726,12 @@ People outside the campaign cannot open its encounters.
- Rolling initiative for characters into their field (a player clicks their
Init chip to roll it, then types what came up)
- Applying an attack's damage automatically: attacks and damage are rolled
with a click ([CHARACTERS.md](CHARACTERS.md), "Rolling from the sheet") and
the DM enters the result
- Rolls that everyone at the table sees
- Advantage and disadvantage on an attack or save within an action (roll both
d20s and enter the one that counts), resistances and vulnerabilities (set
the target's damage by hand), and upcasting a spell for more damage
- Healing through an action (use + Heal on the card or the damage bar)
- A monster choosing among different attacks by itself: with auto-roll it
makes all of its named attacks, or its single one
- Death saves for monsters and NPCs, and prompting for a save on a dying
character's turn
- A roll, a spell slot or a time limit for reviving the dead