Hide a scheme from the lists
The goal
Section titled “The goal”A scheme stays out of the game’s lists of schemes: always, or until the story unlocks it, or only for some characters. Or the scheme is listed with the reason it cannot start.
Do it, step by step
Section titled “Do it, step by step”- Open the scheme on the Schemes page. With no node selected, the Element Inspector shows its settings.
- Pick a value in Show in lists:
| Show in lists | What the lists do |
|---|---|
| Always | Show the scheme. A requirement on Hide the scheme can still hide it. This is the value a new scheme starts with. |
| Never | Never show it. Only code, graphs and the AI start it. |
| Only when conditions are met | Show it while the conditions under Show when are met. |
- For Only when conditions are met, click + Add condition under Show when and pick a condition. With no condition the scheme is always shown.
The conditions are read for the character who looks at the list. That character is the Conspirator of the rows, and the character the scheme would be started against is the Target. So one character can see the scheme while another does not. The same rule decides which running schemes the schemes window lists.
To unlock a scheme later, make a condition on a true/false variable, for example one of the world or of the Conspirator, and turn the variable on with a Set Variable node. A scheme variable does not work here: the rows read only its starting value.
Show in lists only decides what the lists show. It never stops code, a graph or the AI from starting the scheme. In a game with more than one player, the host also refuses, by default, a start from a player whose lists do not show the scheme.
Refuse, hide or warn with a requirement
Section titled “Refuse, hide or warn with a requirement”A requirement to start can also hide the scheme, and it can tell the player why the scheme cannot start.
- Find the Requirements section of the scheme’s settings.
- Click Add requirement and pick a condition, or click Use a set… to reuse a requirement set.
- Give it a Name and a Reason. The player reads the reason when the requirement is not met, and the name when the reason is empty.
- Set Counts to To start, or to To start and while it runs. A new requirement starts as To start.
- Set If not met. It shows only when the requirement counts to start.
| If not met | What happens |
|---|---|
| Refuse and show why | The scheme cannot start. The player reads the reason. |
| Hide the scheme | The scheme cannot start and is not listed. |
| Only warn | The scheme can start. The player reads the reason as a caution. |
A new requirement starts on Refuse and show why.
The scheme starts only when every requirement that counts to start is met, except those on Only warn.
The demo does it: Offer a Token uses the set Schemer Is Grown and a requirement Target is alive, both on Hide the scheme, so nobody sees the scheme against a dead target, while Your purse is not thin is on Only warn and only tells the player that a plain gift is all they can afford.
What you will see
Section titled “What you will see”A list of schemes to start leaves out a scheme that Show in lists does not show, and a scheme a requirement hides. It lists a refused one with its reasons. The Try it panel under the requirements list shows which requirements are met for a Conspirator and a Target you pick.
From code, scheme.Listing reads the setting and scheme.IsListed(conspirator, target) says whether the lists show the scheme for those two. A RequirementCheck has Allowed, Hidden, GetReasons and the matching warning calls. actor.GetSchemesFor(target, list) leaves out a hidden or a refused scheme, and StartScheme returns null for it exactly as it does for a refused one. Neither of them reads Show in lists.
What can go wrong
Section titled “What can go wrong”- The scheme never appears, and you wanted a reason. Show in lists is on Never, its conditions are not met for this character, or a requirement is on Hide the scheme. For a reason, use a requirement on Refuse and show why.
- The scheme is hidden from the lists but still starts. That is how Show in lists works: code, graphs and the AI start it anyway. To stop the start, use a requirement.
- The scheme still starts with a requirement. The requirement is on Only warn, or counts While it runs only, which never blocks a start.
- A Set Variable does not unlock the scheme. The condition reads a scheme variable. Use a variable of the world or of a character.
How it connects
Section titled “How it connects”- The setting is on Scheme settings. Timing, reasons and sets are on Requirements and the Requirement Sets page.
- The
Hiddenanswer and the other calls are on Schemes from code. - To stop a scheme that already runs, see End a scheme when the target dies or leaves.