← Explore
Updated Nov 13, 2026
forecastKit gives a turn-based tactics game the "72% to hit, 3-5 damage" moment that XCOM-style and Fire Emblem-style games live on.
- Odds math (pure, deterministic): base aim, defense, half/full cover, range falloff, flanking, high ground, custom modifiers, armor, crits, grazes and exact kill chance, with a labelled breakdown of every modifier.
- Graze outcome: a roll just above the hit chance clips for about half damage (at least 1). The band is configurable with
spec.graze(15 points by default, 0 turns it off). Every preview style shows the graze chance. - Preview in 4 styles x 5 themes: big number, duel card, tooltip, minimal pill in clean, sci-fi holo, fantasy parchment, pixel arcade and cartoon pop.
- 4 result styles: stamp (the outcome word over the target), burst (a huge number on a starburst), ticker (a compact stacking line with the roll) and banner (a full-width result band), each covering HIT, CRIT, GRAZE, MISS and HEAL in every theme. Switch with one setting:
Preview.setResultStyle(name)or theresultStylefield of the OddsPreview component. - Seeded resolve that always lands inside what the preview showed and comes out the same on every machine, for honest multiplayer.
- Test suite (11 tests, including 10,000-seed checks of the graze guarantee) and a guide.
local Odds = require("forecastKit.odds")
local Preview = require("forecastKit.preview")
Formerly published as oddsKit (renamed in 1.0.2; same package guid).
The demo scene lets you flip every preview style (1-4), theme (5-9), result style (R) and scenario (Q), and resolve attacks with Space.
Comments · 0
Open discussion, no rating attached. Ask questions, swap notes, follow threads.
Sign in to join the discussion.
Documented parts · 4
- forecastKitpackage
- oddsmodule
- previewmodule
- resultStylesmodule