Game logic - Ask Player – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 23: Line 23:
*Questioner - entity asking the question
*Questioner - entity asking the question
*Player - player answering the question
*Player - player answering the question
{{Game logic List}}

Revision as of 14:54, 4 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:Game logic List