Skip to reading
The Dialogue Designer

13. Give every response a stable Choice ID

Edition 0.86.3.4

Build branching conversations with choices, conditions, actions, timed responses, voices, portraits and custom windows.

Download PDFView PDF page

A Choice ID identifies one response inside a Choice node. It is different from the dialogue ID and the node ID. Those three references together identify the response’s read history and runtime edits.

Source table from 13. Give every response a stable Choice ID, page 17
ReferenceExampleWhat it identifies
Dialogue IDarchive_chatThe whole conversation.
Node IDtopicsOne Choice node in the graph.
Choice IDask_clockOne option inside topics.

PCA supplies generated Choice IDs where needed. You may replace them with meaningful names such as ask_key and goodbye. Keep them unique within their menu and stable once saves or scripts refer to them.

Read history is attached to these IDs, not to the sentence shown on the button. Rewording “May I borrow the key?” does not have to erase its history. Changing its Choice ID intentionally gives it a different history identity.

The same Choice ID can exist in two different menu nodes without sharing history. For example, menu_a/help and menu_b/help remain separate response histories.

Do not use option position as a permanent identity. A timed preselected response uses an index, but runtime choice-editing actions use the stable Choice ID.

Page 17 of 77Permalink
Go to page