How do I...?
There are 31 how-to pages. Each answers one goal, starts with the answer, and then gives the steps. Find your goal below, or search the site for the words you would use.
By topic
Section titled “By topic”Run a scheme the way you want
- Decide by chance with fair odds: Roll success or failure with a Chance node, tilt it with bonuses, make the odds the scheme states the real ones, and pick one of several turns with a Random Branch.
- Wait some days or until something happens: Pause a flow for days, for a random length, until a date, until a condition holds or until something stops it, and start a flow at each new month or year.
- Run something every month or year: Three ways to act when a month, a season or a year begins: an On Date node, a decision with a rhythm, and the WorldClock events in your code.
- Show a choice only when a condition holds: Put a condition on a dialogue choice with Available when, hide or grey it, say why, and take a price when it is picked.
- Hide a scheme from the lists: Keep a scheme out of the lists with Show in lists (Always, Never, or only when conditions are met for the character who looks), or refuse, hide or warn with a requirement.
- End a scheme when the target dies or leaves: Two ways to stop a running scheme: the Ends if target is gone switch, and a requirement that counts while the scheme runs with a When a Requirement Breaks node.
Characters, families and who inherits
- Find someone and remember them: Pick an actor from a group with Find Actor, keep them in a scheme variable with Store In, and use their name in later nodes and texts.
- Do something for every clan member: Run the same nodes once for each member of a clan with For Each Actor, use the Current Actor, and leave early with Break Loop.
- Create characters while the game runs: Bring in a newcomer or a child with the Create Actor node, give it a look or a portrait, and decorate its object with a RuntimeActorHandler.
- Let the player play another character: Move the player to an actor, or to their heir, with the Switch Player node or with IM.SetPlayer and IM.MovePlayer in code.
- Choose who inherits: Pick a succession rule for a role on the Roles page, name one heir with Set Heir, or let your code decide with Decided in code.
- Make betrothals and pregnancies: Intrigues has no betrothal or pregnancy feature. You build them from a variable or a tie, a wait, and the Marry and Create Actor nodes, or from Marry and HaveChild in code.
- Keep actors when their scene unloads: Set Actor Home to World on the Intrigue Manager and unload scenes through IntrigueScenes.Unload, so the actors stay in the world.
Characters who act on their own
- Let characters start schemes on their own: Turn on thinking, write a decision whose action is Start a scheme, and check why nobody acts.
- Find out why a character did not act: Open the Thinking window in Play mode, pick the character, and read the reason a decision was not taken. The two world settings that make a whole world look dead, and the lines the window uses.
Dialogue, voice and languages
- Add a voice to a dialogue: Turn on Use Voice on a Show Dialogue node, set one clip per language, make the text follow the voice, and pin places with the at mark.
- Add a language: Add a language on the Languages tab of the Texts page, choose what it falls back to, translate the texts, and switch language while the game runs.
- Use Unity's Localization package: Add the Unity Localization Bridge to a scene, name a String Table, and copy texts both ways between a story and a table.
- Use my own dialogue window: Give a Dialogue Style its own window prefab with a Dialogue Panel, or draw every dialogue yourself by implementing IDialogueView.
Your own code and UI
- Call my C# from a scheme: Mark a method with IntrigueMethod, call it with Run Code, or let Get From Code ask it for an actor, a clan or a family.
- Read Intrigues values from my code: Read a World, actor, clan or family variable with GetVariable, ask without a log with TryGet, and hear when a value changes.
- Start a scheme from code: Start a scheme you drew in the Studio with StartScheme, find out what may start with GetSchemesFor, and use RequestScheme when the call may come from a client.
- Change the scene without code: Send a Signal from a scheme and let a Signal Receiver in your scene switch an object on or run any Unity event, with no script.
- Show a value in my UI: Put a live value such as gold on a label with a Bound Text component and a token, or keep a label current from code with IntrigueUI.Bind.
Saves
- Save my own data with the game: Register one LambdaPart so your inventory or quest log is written into the same save as the world and comes back with a load.
- Save to a cloud or a console save API: Skip the slots: capture the world, encode it to bytes, store the bytes where you like, then decode, stage and restore.
- Restore the scene after a load: Use On Game Loaded to say something to the player or send a signal again, because a save keeps the story and not the scene.
Multiplayer
- Hide a value from other players: Set Who Sees It on a variable to Owner only or Host only, so other players' machines never get the value in a multiplayer game.
Test, balance and undo
- Test a scheme without Play mode: Press Run in the Studio to play a scheme in a copy of your world, choose who plays with Run with setup, and start in the middle with Run from here.
- Balance a scheme's odds: Repeat one scheme in Play mode, read the stated chance beside the measured rate in the report, and know which to change.
- Undo what Claude added: One Edit > Undo takes back a whole draft Claude applied. Nothing is saved until you press Cmd+S or Ctrl+S, and changed items have a backup.
When no goal fits
Section titled “When no goal fits”- To learn a whole subject in order, follow the tutorials.
- To look up one node, open All nodes.
- When something does not work, see Troubleshooting.