How Combat, Movement & Stealth Work
Combat is where normal AI chats break down fastest: bonuses stack illegally, spell slots disappear or duplicate, monsters drift off their squares, and hidden enemies accidentally get revealed in narration.
Elthoria keeps the real Pathfinder 1e rules engine, turn order, battle grid, and hidden stealth tracker separate from storytelling. Your AI Game Master checks the exact numbers first, executes legal moves and rolls through Elthoria's combat tools, and narrates what actually happened.
TIP
Looking for the Java services, action economy rules, geometry formulas, and stealth state machine under the hood? Switch over to Combat, Rules Engine & Stealth Runtime Deep Dive on the Developer side.
One combat turn at a glance
1. Initiative & Round Tick Elthoria tracks turn order, round count, and ticking buff durations
│
▼
2. Plan & Position Check action economy, legal 5ft square movement (including mud/rubble),
│ or ask the Tactical Advisor for an enemy's best move
▼
3. Roll & Adjudicate Exact attack bonuses, crits, combat maneuvers, spells, DR & energy resist
│
▼
4. Apply, Update & Narrate HP, dying/stabilization, spell slots, class pools, and board update —
then your AI GM narrates the result (and can undo mistakes cleanly)1. Initiative, Turn Order & Timed Buffs
- Campaign-scoped tracker: Each campaign has its own initiative tracker (
start_combat,roll_initiative,next_turn,previous_turn) so encounters never bleed across campaigns. - Automatic round countdowns: Whenever a full round finishes, Elthoria automatically ticks down timed buffs and spell durations and flags expired effects — no more forgetting when Haste or Bless wears off.
- Flexible turn control: Add mid-fight reinforcements, remove defeated foes, override a rolled initiative, or step backward if someone delayed or forgot a reaction.
2. Action Economy & Character Math (No Mental Arithmetic)
Elthoria tracks exact Pathfinder 1e turn budgets and sheet math so you don't have to pause the table:
- Action economy: Tracks Standard, Move (or double-move), Full-Round, Swift / Immediate (shared swift budget), Free, and 5-Foot Step (only when you haven't moved yet).
- Exact bonus stacking: Active buffs (Bless, Heroism, Bull's Strength, Haste, Power Attack, magic gear, conditions) stack strictly by bonus type — untyped, dodge, and circumstance stack while duplicate morale or enhancement bonuses take only the highest. You can ask for a full breakdown of any attack roll at any time.
- Spell slots & class pools: Casting a spell or spending ki points, rage rounds, bardic performance, or channel energy automatically decrements the real pool and restores cleanly on rest.
3. Attacks, Criticals, Maneuvers, Damage & Dying
- Single & full attacks: Resolves d20 + bonus against target AC, natural 20 auto-hit / natural 1 auto-miss, critical threat ranges (
20,19-20,18-20), confirmation rolls, critical damage multipliers (×2to×4), and multi-attack iterative / off-hand routines. - 11 Combat Maneuvers & Grappling: Resolves d20 + CMB vs. CMD for Bull Rush, Dirty Trick, Disarm, Drag, Grapple, Overrun, Reposition, Steal, Sunder, Trip, and Feint, plus a full grapple tracker (Free → Grappled → Pinned → Tied Up) with exact penalties and escape options.
- Damage Reduction & Energy Resistance: Automatically subtracts fire/cold/acid/electricity/sonic resistance and checks physical DR bypasses (e.g.
DR 10/magicorDR 5/cold iron and silver) before touching HP. - Death, Dying & Stabilization: Tracks exact Pathfinder HP states:
- Healthy (positive HP)
- Disabled (0 HP — staggered; standard action deals 1 self-damage)
- Dying (negative HP above
-CON— unconscious, loses 1 HP/round, rolls DC 20 CON check to stabilize) - Stable (unconscious, no longer bleeding)
- Dead (HP at or below
-CON— and ready to log into your living world immediately!)
4. Legal Square Movement vs. GM Board Setup
Elthoria keeps GM setup and legal combat movement cleanly separated on your tactical battle board:
- GM Setup (
apply_tactical_board_command): Placing tokens before initiative, dragging enemies behind cover, or editing terrain squares. - Legal Combat Movement (
execute_combat_command): Rules-checked 5-foot square movement that enforces:- 5-10-5 alternating diagonals (first diagonal costs 5 ft, second costs 10 ft, carrying parity across turns)
- Difficult terrain (entering rubble, mud, or shallow water costs 10 ft straight / 15 ft diagonally)
- Exact walls and occupancy (nobody walks through walls or ends on another creature's square)
5. Hidden Enemies & Fair Stealth Ambushers
Want an invisible assassin or lurking archer stalking the party across a foggy dock without accidentally revealing their square?
- Private stealth state: Elthoria tracks each hidden enemy's physical visibility (
hidden,visible,invisible,greater_invis), active Stealth roll (including Pathfinder invisibility bonuses), and queued ambush moves in a GM-only tracker. - Exact line-of-sight & Perception: When a player looks around, Elthoria evaluates exact square line-of-sight against opaque walls/pillars (no diagonal corner peeking!) and distance penalties before comparing Perception against the enemy's active Stealth total.
- Per-character detection: If the sharp-eyed elf spots the assassin while the paladin misses them, Elthoria records exactly who detected whom so narration stays fair and spoiler-free.
6. Tactical Advisor (recommend_combat_action)
Running six different monsters and want smart, in-character tactics without slowing down the round? Ask Elthoria's Tactical Advisor to rank an enemy's legal options:
- Weighs expected damage, battlefield control, ally protection, counterattack exposure, and resource cost — adjusted by that creature's aggression, protectiveness, risk tolerance, and remaining resources.
- Low hit chance or weak intel automatically pulls down flashy risky moves, while a reckless berserker shrugs off exposure that would make a cautious caster fall back.
Plain-English GM prompts for live combat
| Moment in combat | What you say to your AI GM |
|---|---|
| Start the fight | "/elthoria-play — start combat on our watchtower cellar board with the party and two goblin scouts, and roll initiative." |
| Run a full turn | "/elthoria-turn — apply Bull's Strength and Power Attack to Rowan, move him 20 ft around the rubble to engage Goblin 1, roll his longsword strike, and advance the turn." |
| Ask for enemy tactics | "It's the hobgoblin captain's turn — recommend his best tactical action given he's aggressive and low on potions." |
| Run a hidden ambusher | "Initialize the shadow assassin as a hidden stealthed NPC behind the north pillar, queue her flanking move, and run Perception checks as the party enters." |
| Check a tricky maneuver or death | "Have the ogre try to grapple Lyra, then process Rowan's dying stabilization roll at the start of his turn." |
| Fix a mistake cleanly | "Wait — Lyra had Shield of Faith up! Undo that last hit and re-check against her buffed AC." |
Where to go next
- Walkthrough 2: Tactical Combat, Initiative & Stealth — step-by-step live encounter from board setup to stealthed ambush and teardown.
- Running Sessions: Combat, Stealth, Maps & Prep — quick tabletop playbook for smooth sessions.
- How NPCs, Villains & Your World Make Decisions — how tactical combat recommendations connect to Elthoria's broader reasoning engine.
- Combat, Rules Engine & Stealth Runtime Deep Dive (Developer track) — full technical specification of
elthoria-rules-engine,elthoria-gameplay-runtime, and adjudicated combat commands.
NOTE
Attribution — Pathfinder 1e SRD: Elthoria's combat mechanics, action economy, typed bonus stacking, CMB/CMD maneuvers, 5-10-5 diagonal movement, and dying/stabilization rules are based on Open Game Content from the Pathfinder Roleplaying Game First Edition System Reference Document (SRD) (© Paizo Inc.), used under the Open Game License (OGL) v1.0a. Pathfinder is a registered trademark of Paizo Inc.; Elthoria is an independent project not affiliated with or endorsed by Paizo Inc.