TurnHerald¶
Deterministic, replayable turn and tempo battles for Unity. Action-order or ATB scheduling, formations, statuses, reactions, AI policies, a Monte Carlo balancing workbench, and a battle interface you can restyle from one asset.
Choose your path¶
See it work¶
Open the no-code tutorial, run the shipped demo scene, then prove with your own seed that the same inputs replay.
Drive it from my code¶
Compile a catalog, create an engine from an encounter and a seed, pump it from a MonoBehaviour.
Match my game¶
Turn a shipped skin into an asset you own, then put every interface region where you want it.
Make it fair¶
Step a battle tick by tick, read the formula trace behind a number you did not expect.
Looking for a type rather than a task? The API reference lists 424 public types, grouped by what they are for and filterable as you type.
What it does¶
You author content as assets. A compiler freezes it. The engine runs a battle from content, an encounter and a seed, and returns events plus a snapshot. A presenter draws them. The interface offers legal choices and raises intent; your driver submits the command.
What determinism buys you¶
The same encounter, scheduler, formation and seed produce the same battle every time, so a bug report can be a seed and a replay file rather than a description. That holds structurally:
TurnHerald.Simulationis compiled withnoEngineReferences: true. It cannot reachUnityEngine.Random,Timeor aGameObject, even by accident.- Amounts are
Fixed64and chances areChance64, both integer-backed. No float reaches a value that feeds a hash. TheirToStringreturns the raw scaled integer used by canonical encoding, so text a player reads goes throughBattleNumberFormat. - Pause, speed and skip scale the visual clock only. No presentation value changes an outcome.
The shape of the code¶
var result = new BattleContentCompiler().Compile(
AuthoringCompileRequest.WithBuiltIns(catalog));
var encounter = result.CatalogSnapshot.Encounters[0].Value;
var engine = BattleEngine.Create(
result.CatalogSnapshot.BattleContent, encounter.StartRequest, seed: 12345u);
var step = engine.AdvanceTicks(ticks); // Events, Snapshot, Outcome
Requirements¶
| Requirement | Detail |
|---|---|
| Core engine | Engine-free data and simulation assemblies are designed for Unity 2022.3 compatibility |
| Native editor | Presentation, Studio and adapters are currently validated on Unity 6000.3.25f1 (Unity 6.3), Built-in |
| Other pipelines/editors | Pending verification |
| Dependencies | None. No DRM, no telemetry, no online activation |
What you still bring
TurnHerald draws the interface, the stage and the bars. Character art, animation and audio stay yours. The sample scene binds placeholder tokens, status icons and sound effects so you can see the presentation layer working before you replace them.
Working name and evidence
TurnHerald is a working name pending legal, store and domain clearance. The current source guides describe editor workflows; they do not establish release approval or native-editor support beyond the validated Unity 6.3 configuration above. The native runtime profile gallery has a fresh English capture pass; real-mouse editor workflow video evidence remains a separate pending requirement.
Next¶
- Install and run the demo — a battle on screen, then the same battle again from the same seed.
- Architecture — the three roles and the one boundary.
- Author content in the right order — the asset layers.
