1. Install and run the demo¶
Import the package, press Play on the shipped scene, and take the first turn yourself. Then run one seed twice and see for yourself that nothing about the battle moved.
Install¶
- Import TurnHerald into a Unity project. Everything lands under
Assets/TurnHerald/, and no third-party package comes with it. - Choose Tools > TurnHerald > Open Runtime Demo. That saves what you have open and opens
Assets/TurnHerald/Samples/RuntimeDemo/TurnHeraldDemo.unity. - Press Play.
There is no fourth step.
What has been verified
The core engine and data assemblies are engine-free and designed to remain compatible with Unity 2022.3. Native presentation, Studio and adapter validation is currently recorded against Unity 6000.3.25f1 (Unity 6.3). This page does not claim that the native editor workflow is current or approved on Unity 2022.3, nor that other editor streams, render pipelines or platforms are supported. TurnHerald is a working name pending legal clearance.
Four things you might expect to set up and do not:
- No shader or material step. Every panel, bar, plate and pip is drawn procedurally by one
shader that ships inside a
Resourcesfolder, so it survives build shader stripping. - No font asset for this demo. With no font assigned on the shipped Runtime Demo skin, text
falls back to Unity's built-in
LegacyRuntime.ttf. Native uGUI/TMP profiles use aTMP_FontAsset; import Window > TextMeshPro > Import TMP Essential Resources before following the no-code profile workflow in Build your combat without code. - No Event System. The demo scene holds a camera, the driver and the interface, and nothing
else. uGUI needs an
EventSystembefore any element receives pointer input, so the demo creates one with aStandaloneInputModulewhen Play begins and the scene has none. Pointer, keyboard and legacy gamepad navigation all work without you adding anything. - Six drawn characters are included, and you may ship them. They live under
Samples/Characters/, the demo uses them, and they are licensed with the package for use in your own commercial projects, not look-but-do-not-touch demo art. The two archetypes without a drawing fall back to a generated role glyph, which is what an unfilled slot looks like. To swap in your own, see Use your own character art.
Take the first turn¶
Play compiles the two starter catalogs and starts the picker's first scenario, Playable Battle,
on seed 12345. It is a 3 v 3 with the Vanguard, Ranger and Mender under human control against
the opposing Duelist, Adept and Colossus. The battle runs until one of your heroes is asked what
to do, and then waits for you.
- Press Play and watch the opening beats. The turn-order strip shows which member moves first; the log in the bottom left names every event as it resolves.
-
When Ember Vanguard comes up, the battle stops. The skill tray fills along the bottom with that hero's legal choices, and nothing advances until you pick one.
-
Click a skill. The caption under each button says what it may aim at, so Power Blow reads "one enemy" and Strike reads "auto enemy".
- Pick a target if the skill needs one. A skill whose caption starts with "auto" is sent straight away. Any other skill replaces the tray with the target list, one button per combatant that skill may legally hit; click one and the choice is submitted, or press Back to return to the tray.
-
Watch the result land. The events play out, the log grows, the plate over the token picks up a status pip, and the tray comes back for the hero's next decision.
-
Keep choosing until one side falls. The result banner appears in the centre when the battle reaches a terminal result.
The tray follows the pending decision rather than the clock. It is on screen only while a human-controlled actor owes a decision, and it hides itself the moment the engine stops waiting, which is why the eight automated scenarios never show it.
What is on screen¶
| On screen | Where | Fed from |
|---|---|---|
| Plate over each token: name, health bar, shield bar while a shield holds, one pip per status | Above the stage tokens | the snapshot |
| Roster, one row per combatant | Top left | the snapshot |
| Turn-order strip | Top centre | the snapshot's decision entries |
| Battle log | Bottom left | the event stream |
| Skill tray and Concede | Bottom centre | the legal choices compiled from the snapshot |
| Scenario picker, seed field, playback row, status line | Top right | the demo driver |
| Result banner | Centre, at the end | the terminal result |
The ten scenarios¶
The picker spans ten authored scenarios. Playable Battle is offered first because it is the 3 v 3 human-controlled opening. The other eight Action Order scenarios are Playable Duel, Tutorial Duel, Mirror Brawl, Boss and Minions, Healer Check, DOT Pressure, Reaction Showcase and Formation Showcase. ATB Rush is last and runs the ATB scheduler from its own catalog.
Each scenario owns its scheduler and formation. Selecting a scenario therefore changes the authored battle variant; the demo does not swap a scheduler or formation into a running battle.
| Scenario | Scheduler | Shape | What to look at |
|---|---|---|---|
| Playable Battle | Action Order | 3 v 3 | Human party control and the staggered party formation |
| Playable Duel | Action Order | 1 v 1 | Target selection, keyboard/gamepad focus and decision pausing |
| Tutorial Duel | Action Order | 1 v 1 | The smallest complete start request |
| Mirror Brawl | Action Order | 3 v 3 | The same teams under a line formation |
| Boss and Minions | Action Order | 6 v 6 | The largest Action Order layout and Colossus lead |
| Healer Check | Action Order | 3 v 3 | Conditional healing decisions |
| DOT Pressure | Action Order | 3 v 3 | Periodic statuses at action end |
| Reaction Showcase | Action Order | 5 v 5 | Six reactions across both trigger phases |
| Formation Showcase | Action Order | 6 v 6 | Row and side target selection from slot metadata |
| ATB Rush | ATB | 5 v 5 | Gauge fill, pause-on-input and residual carry |
The first nine scenarios use scheduler.action-order.v1. ATB Rush uses
scheduler.atb.v1; its gauge threshold and input pause policy are ATB fields and are not
available on Action Order content.
< and > move the selection only. The running battle continues until you press Start.
Prove determinism¶
Every other page rests on this property, so watch it happen once.
- Select the TurnHeraldDemo object and note its Seed field (
12345). - Press Play and play the duel to its end. Read the last log lines and the result.
- Stop and press Play again. Make the same choices in the same order: the same events resolve in the same order with the same numbers, and the same side wins.
- Change Seed by one and press Play. The random sequence may change the battle, but a different seed does not guarantee a different result.
- Press Play, then type a number into Seed in the top right.
- Press Start. A fresh engine runs the selected scenario on that seed.
- Press Start again with the same number and repeat your choices. It resolves identically.
Text the field cannot read as an unsigned integer is ignored, and the current seed is kept.
A battle is a function of its inputs: the encounter, its scheduler, its formation, the seed, and the commands submitted. Hold those and the engine reproduces the same state hash, the same event-chain hash and the same result every time. Your own choices are part of that tuple, which is why a playable scenario has to be replayed the same way to land in the same place; an automated scenario needs only the seed.
Compare hashes, not log lines
The demo displays no hashes. Open the same scenario and seed in Tools > TurnHerald > Battle Workbench, which prints the event-chain hash beside its event log. That is the value which must not move. See Step a battle in the Workbench.
Content is an input too
Edit a stat, a skill or an encounter and the same seed gives a different battle. That is not a determinism failure, it is a different set of inputs. Determinism lists everything the tuple covers.
What the transport controls change¶
At 1x, one second of presentation time becomes 30 simulation ticks, handed to the engine as an integer tick count. The controls change how that conversion happens and nothing else.
| Control | Key | What it changes |
|---|---|---|
| Pause | Space |
The driver stops requesting ticks. Visual beats already queued keep playing out. |
| Speed | Tab |
Cycles 0.5x, 1x, 2x, 4x. Presentation time converts to ticks that much faster, and queued beats play at that rate. |
| Skip | Enter |
Finishes every queued visual beat now. No simulation value is touched. |
< > |
-- | Selects the previous or next scenario, wrapping at both ends. |
| Start | -- | Tears down the current battle and creates a fresh engine for the selected scenario on the seed in the field. |
None of that can change a result. Advancing seven ticks at a time and advancing seven hundred produce the same hashes, so your frame rate and your speed setting are invisible to the simulation. The shipped test suite asserts this directly: it runs the demo driver and a Workbench session over the same tuple at different tick batch sizes and requires both hashes to match.
The keyboard shortcuts need the legacy input backend (Project Settings > Player > Active Input Handling: Input Manager or Both). Without it the buttons still work.
Your own decisions are the exception
Once a player chooses, the tick their command lands on is itself an input, so a faster or
slower clock could move it. Authoring the scheduler's input pause policy as PauseOnInput
removes that risk. See Schedulers and tempo.
For a shipping build, tick Hide Transport Controls on the BattleUiRoot component. The
region is then not built at all, so the picker and playback row cost nothing.
Next¶
- 2. Build your combat without code -- author a playable battle and its content from the editor.
- 3. Put a battle in your scene -- place the authored battle in a scene of your own, with no code at all.
- Determinism -- what reproduces a battle exactly, and which of your own choices can break it.
- Troubleshooting -- if the interface renders as flat rectangles with no shading.

