Skip to content

3. Put a battle in your scene

The demo is a scene you were given. This page builds the same playable duel in a scene of your own, from a menu item and an Inspector, with no C# at all.


Recorded walkthrough

Watch the wizard create a three-versus-three Playable Battle with seed 424242, then choose an action and its target. The written steps below use Playable Duel and seed 12345; both follow the same wizard workflow.

This 81-second recording uses real mouse and keyboard input in Unity 6000.3.25f1 on an isolated desktop. Loading and idle waits are shortened. English instructions are included in the picture, with optional captions and a transcript. The project already contains the starter catalog; installation, Undo/Redo and optional character art are separate workflows.

Create an empty scene, choose the catalog and encounter, enter Play Mode, and submit the first command.

Choose a step to play it on its own, or watch the full tutorial.

Use fullscreen to read the Unity controls. Each chapter pauses at its end. Continue full tutorial resumes from that point. Audio starts muted.

Choose a step
Read the transcript

Open a new scene

Create an Empty scene for the starter battle.

Start with an empty scene

Create the empty scene, then open Tools → TurnHerald.

Open the battle wizard

Choose Create Playable Battle.

Choose the starter catalog

Open the Catalog picker.

Set catalog and seed

Choose StarterCatalog and enter a repeatable seed.

Create the encounter

Select Playable Battle, then Create Playable Battle.

Confirm the created scene

Confirm the result. The wizard created scene objects.

Return to the scene

Close the wizard to inspect the created battle.

Enter Play Mode

Press Play. TurnHerald starts the selected encounter.

Wait for the battle

The battle waits when a human-controlled actor needs input.

Expand the Game view

Use the Game tab menu to maximize the battle view.

Choose an action

Choose Power Blow to target one enemy.

Select the enemy

Choose Iron Duelist. The command resolves in the battle.

Continue or leave Play Mode

The next actor becomes ready. Exit Play Mode to return to authoring.

Undo/Redo and optional character art are separate walkthroughs.

Download video (4.9 MB) · English captions · Transcript · Chapter timings

Music: Exploration Theme by Cleyton Kauffman, CC0.

Build the scene

  1. Open the scene you want the battle in. A brand new empty scene is fine.
  2. Choose Tools > TurnHerald > Create Playable Battle. A window opens with a catalog and a label table already filled in.

    The Create Playable Battle window, with Catalog set to StarterCatalog, Display labels set to StarterDisplayStrings, Fixed seed 12345, an Encounter dropdown reading Playable Duel, and a Create Playable Battle button

  3. Leave Catalog on StarterCatalog and Display labels on StarterDisplayStrings. The labels are what turn unit.playable-hero.1 into "Ember Vanguard" on screen.

  4. Leave Registry provider, Presentation recipes and Skin empty. Empty means the shipped defaults: the built-in mechanics and schedulers, no authored visual beats yet, and the Slate Nocturne skin.
  5. Leave Fixed seed at 12345. The same seed and the same choices give the same battle every time you press Play.
  6. Open Encounter and choose Playable Duel (encounter.playable-duel).
  7. Click Create Playable Battle. If your scene already has a camera, the wizard asks before pointing it at the battle; choose Frame the battle. Then click OK on the confirmation.
  8. Press Play and take the turn, exactly as you did in the demo.

Only encounters you can actually play are listed

The Encounter dropdown offers an encounter only when one of its living members is authored Control: Human. An encounter where every combatant is AI-controlled has no decision to hand you, so it is not in the list. TurnHerald never rewrites an authored control kind to make one playable: that field is content, and content is part of what makes a battle reproducible.

The wizard edits scene objects only. It does not touch your catalog, invent content, or pick an encounter for you.

What the wizard made

One object named TurnHerald Playable Battle with two children, and two more scene objects only when your scene does not already have them.

Object Component What it is for
TurnHerald Playable Battle BattleRuntimeController Owns the battle: compiles, starts, ticks, pauses for decisions
TurnHerald Playable Battle AudioSource What the audio adapter plays through
Battle Presenter (child) BattlePresenter The stage, the tokens and their plates
Battle UI (child) BattleUiRoot Roster, turn strip, tray, log, result banner
EventSystem EventSystem and an input module Added only when the scene has none, so uGUI receives clicks
Main Camera Camera, AudioListener Added only when the scene has none

Everything the wizard created is one undo step away: Edit > Undo Create TurnHerald Playable Battle removes it, and puts a camera it moved back exactly where it was.

Read the controller

Select TurnHerald Playable Battle and look at the Battle section. These fields are the whole no-code setup.

The BattleRuntimeController Inspector showing the Battle section: Catalog, Encounter Id encounter.playable-duel, Registry Provider, Human Control set to Require At Least One Human, Seed Policy Fixed, Fixed Seed 12345, Ticks Per Second 30, Auto Start and Auto Advance

Field What to do with it
Catalog The authoring catalog to compile. Swap it for your own once you have one.
Encounter Id One exact stable id. A blank or unknown id fails with a message that names the problem; it never falls back to the first encounter it finds.
Registry Provider Leave empty until you add mechanics or schedulers of your own.
Human Control What the controller insists on before it starts. The default refuses to start an encounter with nobody for the player to be.
Seed Policy Fixed replays the same battle from Fixed Seed. Incrementing adds the number of successful starts to it, so repeated runs of the same fight differ.
Ticks Per Second How many battle ticks one real second is worth. Raise it to make every fight quicker. Only the whole tick count ever reaches the engine, so this changes pace and never a result.
Auto Start Start the battle when the scene starts. Clear it to start from your own trigger.
Auto Advance Let the controller turn frame time into ticks each Update. Clear it when something else drives the clock.

The Presentation section below is where the scene objects are wired together. The wizard has already filled the two that matter.

The BattleRuntimeController Inspector showing the Presentation section: Presenter, Ui Root, Recipes, Skin, Display Strings, Audio Source, audio and VFX binding lists, and the Inspector Events for battle started, snapshot changed, events produced, battle ended and runtime failed

  • Presenter and Ui Root point at the two child objects. Clear both and the same battle runs with nothing drawn, which is how you would run one headlessly.
  • Recipes is where a PresentationRecipeSet goes when you want events to play animations, effects and sound. See Turn events into visuals.
  • Skin restyles every region. See 7. Restyle the interface.
  • Inspector Events at the bottom are UnityEvents. Drag any object in and call a method of your own when a battle starts, a snapshot changes, events are produced, a battle ends, or the runtime fails, without writing a listener.

Press Play

The controller compiles the catalog, creates the engine on your seed, binds the presenter and the interface, and pumps ticks. When the engine reaches a decision that belongs to a human, it stops pumping and the tray fills.

The battle running in a scene: roster, turn strip reading NOW Ember Vanguard, battle log, and the skill tray asking the player to choose an action

Clicking a skill, and picking a target when that skill needs one, is all there is to it. BattleUiRoot raises the player's choice, the controller checks it against the pending actor and the compiled legal choices, and submits it. Nothing in that path is yours to write. 6. Take a decision from the player covers what the controller checks, how the target picker decides who is on offer, and how to submit a choice from your own UI instead.

When it does not start

The controller fails closed and says why, in the Console and on screen.

What you see What it means
A message naming a missing encounter id Encounter Id does not match any encounter in Catalog. Ids are exact text.
A human-control failure The encounter compiled, but no living member is authored Control: Human.
A wall of compile diagnostics The catalog itself is wrong. Run Tools > TurnHerald > Content Validator, which lists the same diagnostics asset by asset and field by field.

Leave Log Failures on while you are building. Show Failure Banner also prints the failure in the Game view, so a mistyped encounter id is visible without opening the Console.

Your own content in the same scene

Nothing above is specific to the starter catalog.

  1. Author your own combatants, skills and an encounter: Author content in the right order.
  2. Set at least one living team member's Control to Human on the team the player is.
  3. Run Tools > TurnHerald > Content Validator and clear what it reports.
  4. Put your catalog in Catalog and your encounter's stable id in Encounter Id.
  5. Press Play.

Next