Skip to content

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.

Fantasy UGUI sample at the initial action decision

Fantasy UGUI sample at the initial action decision, with shipped character art and action selection visible. Customize this sample composition in Combat Studio and choose the UI technology and visuals that fit your game. Captured in Unity 6000.3.25f1 (Unity 6.3), 1920 x 1080. Compare this source capture in the native layout gallery.

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.

Build your combat without code ->

Drive it from my code

Compile a catalog, create an engine from an encounter and a seed, pump it from a MonoBehaviour.

Run a battle from code ->

Match my game

Turn a shipped skin into an asset you own, then put every interface region where you want it.

Restyle the interface ->

Make it fair

Step a battle tick by tick, read the formula trace behind a number you did not expect.

Step a battle in the Workbench ->

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.Simulation is compiled with noEngineReferences: true. It cannot reach UnityEngine.Random, Time or a GameObject, even by accident.
  • Amounts are Fixed64 and chances are Chance64, both integer-backed. No float reaches a value that feeds a hash. Their ToString returns the raw scaled integer used by canonical encoding, so text a player reads goes through BattleNumberFormat.
  • 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
ui.CommandChosen += choice =>
{
    var snapshot = engine.GetSnapshot();

    engine.Submit(new BattleCommand(     // only the driver submits
        snapshot.NextCommandSequence, snapshot.Tick, BattleIds.UseSkillCommand,
        choice.ActorId, choice.SkillId, choice.Targets, PropertySet.Empty));
};

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