DialogueOption

Methods
4
Fields
None

Getting one

ui:dialogue():find(…)

Methods

MethodReturnsDescription
text()stringThe option's text.
optionNumber()numberWhich numbered option this is, from 1.
click()booleanPick it with a click.
press()booleanPick it with the number key, which is what a person usually does.

Returned by

MethodReturnsDescription
Dialogue.findDialogueOption?The first option matching a pattern.
Dialogue.options{ DialogueOption }Every option currently offered.

Method details

press

press: (DialogueOption) -> boolean

Pick it with the number key, which is what a person usually does.