Skip to content

Find out what happened

When the wrong line plays, resist the urge to add more conditions immediately. First look at what Story Engine saw.

Read a Rule Trace

  1. Open Window > Game Creator > Story Engine > Rule Trace.
  2. Check that the menu at the left of the toolbar reads Recording. If it reads Recording Off, open it and choose Record trace silently.
  3. Enter Play Mode and perform the interaction you want to check.
  4. Select the Director run in the list. Use Freeze to keep it visible while the game continues.
  5. The chosen Rule is listed first, under Selected. Compare it with the Rule you expected. A Rule that did not match names its first failed required condition.

The trace shows which conditions passed, which required conditions failed, each Rule's score and priority, and how ties or busy Rules affected the result.

Current Rule Trace window: the run summary shows that The optional fish was selected. Its FishCollected equals False condition passes, while One fish is plenty did not match because FishCollected equals True fails.
Start with the run summary: the blue header names the chosen response, "The optional fish". Read the failed condition: "One fish is plenty" requires FishCollected to be True. The player has not caught the fish yet, so this Rule did not match. A recorded Market Adventure run. Select the image to read the full trace.

The list keeps the 25 most recent Director runs. While frozen, the button counts new runs; select it again to follow new evaluations. In a long run, Filter Rules narrows the list by Rule title, status or condition, and each Rule's Criteria list can be opened or closed. Clear removes traces but leaves story history alone. Drag the divider between the run list and the details to make the list wider or narrower.

Start with these questions

What you see What to check
No new Director run Did the Trigger or instruction sequence run? Is that Trigger still waiting for an earlier sequence?
No matching Rule Check category, active GameObjects, enabled Rules and required conditions
A Rule is missing It may belong to another category, be inactive, or not have been checked because a stronger match already won
The expected Rule lost Compare priority first, then score, then passing mandatory criteria
A response keeps repeating A sole or best match can repeat. Add a history condition if repetition must be prevented
Rejected (busy) The Rule is still running and this request is configured to reject
Rejected (loop) The response chain tried to enter the same Rule again
A Rule could not be checked Read the relevant Console error and inspect its conditions

Open the explanation from a Rule

In a Rule's Inspector, use Explain Last Evaluation at the top. In the Rule Editor, select the Rule and use Explain in the toolbar above it, or right-click its card and choose Explain. Both open Rule Trace on the most recent recorded evaluation for that Rule.

The Rule stays pinned at the top of the trace while you browse other runs. Each run that checked it shows a Focused Rule line with its result, so you can see where it was considered.

If it has no explanation yet, make another Director request with trace recording enabled. The editor cannot reconstruct a run that was never recorded.

Look for gaps with Story Insights

Open Window > Game Creator > Story Engine > Story Insights.

History answers what has played and how often. Coverage summarizes the recorded trace runs: selected and never-selected matches, ties, frequently failed required conditions and other patterns worth reviewing.

A Rule that has never won is a question to investigate. It might need a missing situation in your test, or it might be overshadowed by a broader Rule.

Test a small set of situations

For a greeting, try the first meeting, a return visit and the special case you added. Also try the case where that special condition is false.

For a puzzle response, test the action before it is allowed, when it becomes allowed, after it succeeds, and when the player tries it again. Check the player can still continue.

When testing a first-time moment again, reset its history in Story Insights. When testing a complete new game, use your game's normal reset flow.

Trace colors help you scan, but the labels and condition results carry the explanation. Tracing is an editor tool and is not included in your player build.