Game logic - Dialogue – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
*Each answer can call different script instructions
*Each answer can call different script instructions
*Selected answer is obtained via '''Answer Id''' in '''On Answer''' event (see example)
*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=
=Properties=

Revision as of 16:34, 2 December 2018

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



Template:Ylands scripting navbox