Game logic - Ask Player – Ylands

From Bohemia Interactive Community
Revision as of 13:46, 4 October 2018 by Rudy.cz (talk | contribs) (Created page with "=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 pro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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