17. Duplicate, delete and tidy safely
Duplicate is useful for similar lines or action settings. After duplicating, reconnect the copy’s outputs. PCA clears outgoing targets on copied nodes so the new branch does not silently inherit an old route.
| Operation | Check afterward |
|---|---|
| Duplicate a Line | Speaker, voice, portrait, text, return mode and NEXT. |
| Duplicate a Choice | All option text and IDs, then every output destination. |
| Delete a node | Incoming links that may now be empty; the start node if it was deleted. |
| Change an Action Type | The newly displayed fields; the previous action’s fields are replaced. |
| Auto Arrange | The whole layout, including long loops and tall Choice nodes. |
Deleting through the editor clears references to the deleted destination. Removing a node through the runtime Remove Dialogue Node action has different bypass rules, explained later. Do not assume the two operations are identical.
Save before a major rearrangement. Use Undo if you delete the wrong node. Keep a named End node visible in the graph so the exit route is easy to check.
A tidy layout makes mistakes easier to notice. It does not prove that conditions, read history or inventory rewards are correct; those need Play tests.
