DialogueChoice

Class · class DialogueChoice: object · Source

A selectable conversation option with stable identity and availability rules.

Audience: author

Superclass: object

Subclasses: GoodbyeChoice, TopicDialogueChoice

Declared members

  • available — method; Observational condition evaluated while producing choices.
  • eligible — method; internal
  • id — property; Stable choice identifier sent by the host on selection.
  • isActive — property; Whether this choice is currently eligible.
  • labelId — property; Message id used to display the choice label.
  • once — property; Consume this choice separately for each asker after selection.
  • requiresKnowledge — property; Fact tags required in the asker's knowledge.
  • selected — method; Handle an accepted selection and any resulting world mutation.
  • subject — property; Subject that the asker must know before this choice appears.
  • voice — property; Private speaker whose owner alone may see this choice.

Member details

available

available(c) · Source

Observational condition evaluated while producing choices.

eligible

eligible(c) · Source

Internal implementation detail; no supported authoring contract is documented.

id

id = nil · Source

Stable choice identifier sent by the host on selection.

isActive

isActive = true · Source

Whether this choice is currently eligible.

labelId

labelId = nil · Source

Message id used to display the choice label.

once

once = nil · Source

Consume this choice separately for each asker after selection.

requiresKnowledge

requiresKnowledge = [] · Source

Fact tags required in the asker's knowledge.

selected

selected(c) · Source

Handle an accepted selection and any resulting world mutation.

subject

subject = nil · Source

Subject that the asker must know before this choice appears.

voice

voice = nil · Source

Private speaker whose owner alone may see this choice.