gm-combat
Installation
SKILL.md
Combat Mechanics (D&D kit)
STEP 0 — KIT GUARD. If the scene-context KIT block is not dnd5e, close this skill and resolve the fight through the generic core (game_core) and the active ruleset.
Persist combat with bash tools/gm-combat.sh (start/add-enemy/hp/condition/next-turn/end) so HP and initiative survive resumes.
Flow
- Get enemy stats (
features/dnd-api/monsters/dnd_monster.py "[creature]" --combator quick: AC 13, HP 15, +3, 1d6+1). - Initiative:
uv run python lib/dice.py "1d20+[dex]"per combatant; order high→low. - Each turn: attack
1d20+bonusvs AC; on hit roll damage; update HP viagm-combat.sh hp. - Resolution: award XP, handle loot (persist BEFORE narrating), advance time.