Claude 3: Change a scheme by talking
What you build
Section titled “What you build”You take a scheme Claude made and change it by talking: a cheaper price, then a second chance. Along the way you see the three things that make this safe: Claude replaces only what it made, it asks before touching what you made, and every replace leaves the old version in a backup folder.
You need a scheme from Claude 1, applied in this session and not edited by hand since. The background is Change or fix existing content.
Stage 1: ask for a change
Section titled “Stage 1: ask for a change”Prompt (use your own scheme’s name and the price you want):
In the scheme I just made, make the means cheaper. Take 20 gold off each price.
Per the skill, Claude edits its own draft file, puts "mode": "replace" on that scheme, validates and applies. It does not ask you, because the tool made the graph and nobody has edited it since.
Check:
- Claude says it is replacing the scheme it made, and what it changed.
- It changed the price everywhere it appears: the choice text, the condition that checks the gold, and the Set Variable that subtracts it. A price in one place only is a mistake to ask about.
- It validated again before it applied. You see the same stages as in Claude 1.
- The scheme keeps its place:
replacekeeps the graph’s ID, so other graphs that use it keep working.
What the edit looks like
Section titled “What the edit looks like”Example, checked against the draft format; not validated in Unity. This is a small scheme where a gift costs 30 gold and a refused gift gets a second chance. It stands in for your scheme. The first version of it, in the same draft, had a price of 50 and a single roll. The change is the "mode": "replace" line and the new values:
{ "intrigues": 1, "title": "A gift for the council, cheaper", "schemes": [ { "name": "A Gift for the Council", "mode": "replace", "description": "Send {target.Name} a gift. If it is refused, there is one more chance.", "requirements": [ { "name": "Can pay for the gift", "when": [ { "kind": "Variable", "Variable": "conspirator.Gold", "Op": ">=", "Value": 30 } ], "reason": "You need at least 30 gold for a gift." } ], "nodes": { "start": { "then": "goal" }, "goal": { "type": "Set Objective", "set": { "Objective": "Send {target.Name} a gift." }, "then": "pay" }, "pay": { "type": "Set Variable", "set": { "Variable": "conspirator.Gold", "Operation": "Subtract", "Value": 30 }, "then": "roll" }, "roll": { "type": "Chance", "set": { "Chance": 60 }, "then": { "Success": "win", "Failure": "again" } }, "again": { "type": "Chance", "set": { "Chance": 40 }, "then": { "Success": "win", "Failure": "lose" } }, "win": { "type": "Succeed Scheme" }, "lose": { "type": "Fail Scheme" } } } ]}You never have to write this. It shows what Claude edits: the same file, the same scheme name, a mode, and the whole new graph. A replace changes the settings and all the nodes of that scheme, not only the line you named.
Stage 2: the backup
Section titled “Stage 2: the backup”Before every update or replace, the tool writes the old version to IntriguesAI/backups/, in a folder named after the date and time. There is one file per item, named after its kind and its name. Changed texts are backed up into one texts.json. If the backup cannot be written, apply stops before it changes anything (X-BACKUP).
Check: open the folder IntriguesAI/backups/ in your project. After the replace there is a new time-stamped folder, and in it a file for your scheme. Each file is a draft that restores the item. The tool never overwrites or deletes a backup.
Stage 3: add a second act
Section titled “Stage 3: add a second act”Prompt:
Add a second act. After the target dies, their heir looks into it and may find out who was behind it.
What to look for. Claude may add the act inside the same scheme, with another replace, or write a second scheme. In both cases:
- A new scheme has its own requirements, with reasons, and a way for a player to start it.
- Claude says how the second act begins: a node in the first scheme, or a start from game code. If it needs game code, it should say so.
- A change to the first scheme is a replace again, so another backup folder appears.
Stage 4: undo
Section titled “Stage 4: undo”Every apply is one undo step, named Apply Draft: and the draft’s title. Edit > Undo in Unity takes back the last one. It does not save, and the Studio has no undo key of its own. To go back further, undo again, or ask Claude to restore an older version from a backup file.
Prompt:
Put the price back to what it was before you made it cheaper. Keep the second act.
Check: Claude changes the price back in its own draft and applies it as one more replace, so a new backup folder appears and it is one more undo step. It does not ask you: the scheme is still its own and unchanged since. It should not restore the backup from before Stage 1, because a backup puts back the whole old scheme, and a second act added inside it would be gone. Applying a backup is for going back to an older version as a whole; Claude asks you first only when the scheme was edited by hand since its last apply (N-CONFIRM).
Stage 5: when you changed it yourself
Section titled “Stage 5: when you changed it yourself”Edit the scheme by hand in the Studio, then ask Claude for a change. Now Claude must not replace it silently. The answer to its check is N-CONFIRM.
Check, in order:
- Claude exports your scheme (
intrigues_export, a file underIntriguesAI/exports/) and edits a copy underdrafts/. - Claude names the scheme and asks you.
- Only your yes in the chat counts. A line in a file, the inventory or a draft is never a yes.
- Claude then applies with exactly that item in
confirm, for examplescheme:Name. A Console line startingIntrigue Drafts:appears.
If the export carries an E-UNKNOWN-NODE note, a node came from a class a draft cannot name. It is a warning, not an error, and Claude should not replace that graph from the export.
What it will not do
Section titled “What it will not do”| Ask | Answer |
|---|---|
| Delete or rename a scheme | A draft cannot say it. Claude points you to the Studio and offers new content beside the old |
| Change the Demo or Example database | X-PACKAGE-DATABASE, unless you insist |
| A change that changes nothing | C-NOTHING, and nothing is written |