Skip to content

Balance a scheme's odds

Goal: a scheme works about as often as you want, and you know whether the characters believe the same.

Never mix them.

The stated chance is what the scheme’s formula tells a pair of characters now. It is what they believe, and it decides whether they want to start the scheme. The measured rate is what happened over many runs. Only people read it, in the Simulation window and its reports. No node, formula or text can read it.

The report calls them Characters expect and It works. The measured rate is Success divided by the runs that ended. A given-up run is not a success.

  1. Press Play. Repeat a scheme needs the game running.
  2. Open Tools > MrW > Intrigues > Simulation. The same tabs sit on the Behaviour page of the Studio, as Simulation.
  3. In Repeat a scheme, choose Which scheme? with Select…, then Conspirator (who starts it) and Target (who it is started against).
  4. Set Repeats, from 1 to 200, and Stop a repeat after (days). A repeat that has not ended by then counts as Still running. Given up counts a scheme that gave itself up.
  5. Click Repeat from now. The scheme starts again and again for that pair, with new dice each time.
  6. Click Open report file. Reports go to IntriguesAI/reports/ in your project, as a Markdown and a CSV file.

You will see: a line such as “Poison, Olaf against Torsten, 20 repeats: Success 6 (30 %), Failed 12 … · chance they were told at the start: 48 %”. The Outcomes table counts Success, Failed, No result, Given up, Refused and Still running.

To measure a whole world, use Simulate. Its Schemes table has the columns Scheme, Link, Started, Success, Failed, No result, Given up, Characters expect and It works. With 30 or more ended runs and a gap of 10 points or more, a line below it says what the characters expect, what works, and which node ends most failed runs.

The Link column says how the scheme reads its chance. Exact: one Chance node rolls the formula and nothing else decides. Estimate: something else decides too. Not linked: no Chance node reads the formula, so it is only a belief.

A gap is not always a fault. The pairs that start a scheme are those who want it most, so a rate below the middle of the forecast is normal. A requirement or a dialogue after the roll can change the result too.

Change one thing. Repeat. Read again. A rate that moves a lot between repeats is luck. Do not tune the formula to the measured rate blindly, because the rate depends on who starts the scheme.

  • “Repeat a scheme needs the game running: press Play, then come back here.”
  • “No scheme in the game.” The database has none.
  • The repeats ended as Still running: raise Stop a repeat after (days). (The window’s tooltip says such a repeat is counted as given up; the code counts it as still running.)

More: Simulation and Schemes. Claude can run the same loop for you: Claude: balance and review.