Tag: sourceedit |
Mark Otaris (talk | contribs) (Updated) |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Infobox class |
+ | {{Infobox class}} |
− | | explorer order = 22}} |
||
+ | The '''DialogChoice''' class is an object used to make dialog trees to converse with players. It is used with the {{Class link|Dialog}} class to create dialogs. While the Dialog class is used to create the top of the hierarchy of a dialog, the DialogChoice class is used to create choices that the user can choose, and responses that the dialog system will give back if the user chooses specific choices. |
||
− | An object used to make dialog trees to converse with players. |
||
+ | {{Member list |
||
− | == Properties == |
||
+ | | GoodbyeChoiceActive = |
||
− | |||
− | This class has four [[properties]]. |
||
− | |||
− | === {{property|name=GoodbyeChoiceActive|type=bool}} === |
||
Whether or not the "Goodbye" choice can be used. |
Whether or not the "Goodbye" choice can be used. |
||
− | + | | GoodbyeDialog = |
|
The "Goodbye" dialog option. |
The "Goodbye" dialog option. |
||
− | + | | ResponseDialog = |
|
What the object speaking will say when this choice is clicked. |
What the object speaking will say when this choice is clicked. |
||
− | + | | UserDialog = |
|
What the player interacting with the dialog say when this option is clicked. |
What the player interacting with the dialog say when this option is clicked. |
||
+ | }} |
||
+ | |||
+ | == External links == |
||
+ | |||
+ | * {{DevHub class link}} |
||
+ | * {{Roblox API Reference class link}} |
Latest revision as of 03:53, 17 March 2019
The DialogChoice class is an object used to make dialog trees to converse with players. It is used with the Dialog class to create dialogs. While the Dialog class is used to create the top of the hierarchy of a dialog, the DialogChoice class is used to create choices that the user can choose, and responses that the dialog system will give back if the user chooses specific choices.
Properties
GoodbyeChoiceActive: bool
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe
GoodbyeDialog: string
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe
ResponseDialog: string
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe
UserDialog: string
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe