Cast a cutscene from whoever is in the party right now
The scene was written for the healer and the thief, but the healer stayed in town and the thief is dead. Here is how to give every part to a present character, never the same one twice, and to report plainly which parts nobody can play.
Why this works
A scene is a set of jobs, not a set of names. Filling the jobs so that as many as possible get someone, and no one does two, finds a full cast even when the obvious first choice would block it, and tells you plainly which jobs stay empty.
When not to use it
Skip it for a story scene that belongs to specific people, such as a farewell between two named friends. Do not swap in a stranger there; give the player a different scene, or hold it back until those two are together.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 4 common mistakes and the fix
- A diagram of every state
- 23 lines of example code with 3 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "Cast a cutscene from whoever is in the party right now" (read_entry cutscene-cast-when-companions-are-away) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP