Skip to content

Give characters a mind by prompt

Characters that nobody plays can decide for themselves: befriend, plot, court, hold a grudge. You write plain rules for it, and Claude can write them for you.

Piece What it is Draft section
Personality values Numbers each character has (Boldness, Greed, Energy). A value with personality: true shows as a bar with a word for each end variables
Traits One word a player can say (Brave, Greedy). Each moves numbers and leans toward kinds of decisions. Traits in one group are opposites traits
Formulas A named number about one or two characters (“Likes”, “Fear of”) formulas
Decisions Something a character may do on their own: who thinks, who they look at, how much they want it, what happens decisions
Ambitions Something a character wants for a long time (“Avenge a wrong”) ambitions
Opinions How much one character likes another: standing lines, memories that fade, ties such as friend or rival opinionRules, memoryKinds, tieKinds
Settings The switch and the knobs: thinking on or off, how active behaviour

Nothing runs until behaviour.think is true. The Think Now and Would Do nodes work either way.

The trait is the name and the number is how much. A trait pushes a number while the character holds it. Ask the trait “is Loyal” and the number “how loyal”.

ClaudeExample, not a recorded run
You

In the northern clan, let the people without a court seat plot against each other. The more they like someone, the less they want to plot against them. Scheming characters should want it more, and never against a parent or a child.

Claude

I will read your database first, so I reuse your variables and roles.

intrigues_statusfinds the project and the database
intrigues_inventoryreads your variables, traits, formulas, decisions and schemes
Claude

My plan, in the order I write it:

  • Values: Intrigue and Standing for each person, Affection between two people, and Greed as a personality value.
  • Traits: Scheming (more Intrigue, leans toward plots) and Loyal (less Greed, and leans away from hostile things).
  • A formula, Likes, that reads their Affection toward the target.
  • A scheme, Undermine, that the decision starts: a roll, then it either lowers the target’s standing or lowers their affection for the plotter.
  • A decision, Plot against a rival, with the rules you gave. I will turn thinking on.
intrigues_validatechecks the draft without changing anything
intrigues_applyadds it as one undo step
Claude

Done. The inventory reads the decision as a sentence, so you can check my work. Nothing happens until thinking is on, and I turned it on. To watch it, enter Play mode and open Tools > MrW > Intrigues > Thinking.

Part What it holds
Values Intrigue and Standing (actors), Affection (a relationship), Greed (a personality value with the words Generous and Greedy)
Traits Scheming: Intrigue +30, leans toward Plots by 40. Loyal: Greed −20, leans toward Hostile by -40
Formula Likes: their Affection toward the target, read about two characters
Scheme Undermine: a chance of 40 plus the conspirator’s Intrigue. Success lowers the target’s Standing by 10. Failure lowers their Affection for the plotter by 20
Decision Plot against a rival: tags Plots and Hostile. Every 90 days, then rests 360 days, and rests 720 days before choosing the same target again (restPerTarget). Only for people who hold no court role. Never against a parent or child
Switch behaviour.think set to true

Every few days (every), each character who is not played by a human thinks about the decision.

  • If who fits them and they are not resting, they work out how much they want it, as a percent. The dice then say yes or no: 40 percent means four times in ten.
  • With a target, they look at up to lookAt people of the group, keep those who fit, and choose one.
  • When they do it, the scheme starts with them as the conspirator and the chosen character as the target. The scheme’s requirements may still say no, and then they rest a short time.
  • Does not want is not may not. A line that says doesNotWant makes the percent 0 for those characters, but a scheme started by hand still works. When something must never happen, put a requirement on the scheme.
  • A character a human plays is left alone unless the decision says alsoForPlayers.
  • A decision with "every": 0 is thought about only when a Think Now node names it.

An ambition is a long wish. Every so often, each character nobody plays may take one up, and while they hold it, decisions with its tags are wanted more or less, until it is reached or given up.

An ambition changes nothing unless a decision carries its tags. “Avenge a wrong” leans toward Hostile, so a decision tagged Hostile is wanted more by whoever holds it. Claude writes both.

Opinions are one number, worked out when asked. Claude keeps the model small:

  • A few standing lines, each with one reason: same clan, close relative.
  • Memories that wear off: “Betrayed me”, “Helped me”.
  • Ties that last until something ends them: Friend, Rival. A tie can run both ways or one way.

Each kind needs something that gives it, and each opinion needs something that reads it. The audit tells Claude when one is missing.

A scheme can state its own chance of success. Claude keeps two numbers apart, and so should you:

  • The stated chance is what the formula says for one pair of characters, right now. It is what characters believe.
  • The measured rate is what happened over many runs. Only people read it, in the Simulation window. A draft cannot read it.

For each scheme, the scheme settings say which of these three it is. A scheme with no formula shows nothing.

Kind Meaning
Exact One Chance node rolls the formula and nothing else decides the result. The stated chance is the real one
Estimate The formula is rolled, but something else also decides. The stated chance is close, not exact
Not linked No Chance node reads the formula, so it is only what characters believe

Three tools show the numbers:

  • Forecast needs no game and works only in Edit mode. It says how often each decision is expected per year, and how the stated chance is spread over pairs of characters.
  • Simulate runs the real game faster and measures decisions taken and how schemes ended. It needs Play mode.
  • Repeat a scheme runs the same start many times. It needs Play mode too. A rate that moves a lot between repeats is luck, not balance.

Open Tools > MrW > Intrigues > Simulation for them. They are also a tab under Behaviour in the Studio. When the stated and the measured numbers differ, ask Claude why. It checks the cause in a fixed order and changes one thing at a time.

When the person who answers a Show Dialogue is not played, the node chooses for them by NpcAnswer:

Value Meaning
At random By chance. NpcWeights make a choice likelier
The first available choice The first choice they may pick
By what they want Each choice has a wants form (NpcWants, keyed by the choice’s Key) and the chance follows it
The one they want most The choice with the highest wants. The first when tied

A choice marked PreferredByAI comes first in every mode.

A clan can think like a character. It acts through its head, holds attitudes toward other clans, makes decisions and wants things for years. Claude writes attitudes from strength and threat, a clan’s resource shared into pots, and clan decisions with "for": "clans". A clan whose head a human plays never acts by itself.

These nodes are in the behaviour part of the node catalogue. Claude uses them in schemes:

  • Think Now, Set Ambition, Clear Ambition
  • Add Trait, Remove Trait
  • Add Memory, Remove Memory, Add Tie, Remove Tie
  • Set Attitude, Set Clan Law
  • Add Modifier, Remove Modifier
  • Advance Days, Set Game Speed
  • Condition rows: Has Trait, Has Ambition, Has Tie, Check Opinion, Would Do, Check Attitude, Is Heir Of, Is In Line For, Check Date
  1. Enter Play mode. The Thinking window is for Play mode.
  2. Choose Tools > MrW > Intrigues > Thinking. It shows why a character did or did not act.
  3. To see it faster, advance days with the Advance Days node or the Simulation window.

You can also add a ready-made set with Give this world a mind… on the Behaviour pages in the Studio. It is one undo step.

Build houses, clans and cultures by prompt, or Change or fix existing content.