Game logic - Dialogue – Ylands
Jump to navigation
Jump to search
(Created page with "=Description= Shows player a window of predefined options, which can be selected from. Each option then can execute its own sequence of actions. *Dialogue between player and...") |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}}") |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=Description= | =Description= | ||
When initiated using [[Ylands:Tile - Show dialogue|'''Show Dialogue''']] instruction, it will display a window of predefined options as defined in properties. After selecting a option [[Ylands:Tile - Dialogue On Answer|'''On Answer''']] event will be called inside the Dialogue logic. It's possible to show/hide answer options using [[Ylands:Tile - Answer enabled|'''Answer Enabled''']] instruction, or modify their text. | |||
*Dialogue between player and world entity (i.e NPC) | *Dialogue between player and world entity (i.e NPC) | ||
*Initiated via Show | *Initiated via '''Show Dialog''' instruction | ||
*Player selects from pre-defined answers | *Player selects from pre-defined answers | ||
*Each answer can call different script instructions | *Each answer can call different script instructions | ||
*Selected answer is obtained via Answer | *Selected answer is obtained via '''Answer Id''' in '''On Answer''' event (see example) | ||
<gallery> | |||
Image:Ylands-Editor-Dialogue-example1a.png|Properties | |||
Image:Ylands-Editor-Dialogue-example1b.png|On Answer | |||
Image:Ylands-Editor-Dialogue-example1c.png|Dialogue window | |||
</gallery> | |||
= | = Properties = | ||
* | === Question === | ||
* | *Question displayed in the header of the dialogue | ||
* | === Options === | ||
*List of possible answers | |||
*Number in the header of the option → answer Id | |||
=== Show leave button === | |||
*Whenever to show "leave" button in the Dialogue window. | |||
= | = Dialogue events = | ||
* | *[[Ylands:Tile - Dialogue On Answer|On Answer]] | ||
* | *[[Ylands:Tile - Modal Dialogue On Open-Close|On Open / Close]] | ||
= | = Related instructions = | ||
* | *[[Ylands:Tile - Show dialogue|Show dialogue]] | ||
* | *[[Ylands:Tile - Dialogue question|Get / Set dialogue question]] | ||
* | *[[Ylands:Tile - Answer text|Get / Set answer text]] | ||
*Answer | *[[Ylands:Tile - Answer enabled|Get / Set answer enabled]] | ||
{{ | ---- | ||
{{Navbox/Ylands}} | |||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}} | |||
[[Category: Game Logic]] | |||
[[Category: Ylands 0.10]] |
Latest revision as of 14:21, 24 November 2023
Description
When initiated using Show Dialogue instruction, it will display a window of predefined options as defined in properties. After selecting a option On Answer event will be called inside the Dialogue logic. It's possible to show/hide answer options using Answer Enabled instruction, or modify their text.
- Dialogue between player and world entity (i.e NPC)
- Initiated via Show Dialog instruction
- Player selects from pre-defined answers
- Each answer can call different script instructions
- Selected answer is obtained via Answer Id in On Answer event (see example)
Properties
Question
- Question displayed in the header of the dialogue
Options
- List of possible answers
- Number in the header of the option → answer Id
Show leave button
- Whenever to show "leave" button in the Dialogue window.
Dialogue events
Related instructions