Game logic - Ask Player – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 25: Line 25:




{{Game logic list}}
----
{{Ylands scripting navbox}}

Revision as of 16:36, 7 October 2018

Description

Game logic used for prompting player for specific, written, answer. Such answer can be then operated with by using 'Answer text' literal.

  • Initiated via Show prompt instruction
  • When called, it will open edit window and will wait for player input
  • Player's answer can be then used as Answer text, when On answered event is called (see example)

Properties

  • Question - text shown in the header of input prompt window

Events

  • On open - called when input window opens
  • On closed - called if player decides to close the window
  • On answered - called after player confirms the window

Instructions

  • Show prompt - it will initiate Ask player game logic
  • Get question - returns current question text (string)
  • Set question - will set question text

Literals

  • Ask player - Ask player game logic
  • Answer text - string with player's input
  • Questioner - entity asking the question
  • Player - player answering the question



Template:Ylands scripting navbox