Game logic - Ask Player – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Ylands " to "[[Ylands:")
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Description=
=Description=
Game logic used to query specific answer from a player. When the game logic is initiated trough [[Ylands Tile - Show input prompt|'''Show Prompt''']] instruction an input dialog will be shown to a player. Player then can enter and submit the answer, which will call [[Ylands Tile - Input Prompt On Answer|'''On Answer''']] event inside the Ask player logic. Such answer can be then operated with using '''Answer Text''' literal.
Game logic used to query specific answer from a player. When the game logic is initiated trough [[Ylands:Tile - Show input prompt|'''Show Prompt''']] instruction an input dialog will be shown to a player. Player then can enter and submit the answer, which will call [[Ylands:Tile - Input Prompt On Answer|'''On Answer''']] event inside the Ask player logic. Such answer can be then operated with using '''Answer Text''' literal.


*It will open edit window and will wait for player input
*It will open edit window and will wait for player input
Line 11: Line 11:
</gallery>
</gallery>


=Properties=
= Properties =
===Question===  
[[File:{{PAGENAME}}.png|right|400px|Properties]]
=== Question ===
*Text shown in the header of input prompt window
*Text shown in the header of input prompt window


=Ask player events=
= Ask player events =
*[[Ylands Tile - Input Prompt On Answer|On Answer]]
*[[Ylands:Tile - Input Prompt On Answer|On Answer]]
*[[Ylands Tile - Dialogue On Open-Close|On Open / Close]]
*[[Ylands:Tile - Dialogue On Open-Close|On Open / Close]]


=Related instructions=
= Related instructions =
*[[Ylands Tile - Show input prompt|Show Prompt]]
*[[Ylands:Tile - Show input prompt|Show Prompt]]
*[[Ylands Tile - Input prompt question|Get / Set Question]]
*[[Ylands:Tile - Input prompt question|Get / Set Question]]




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}


[[Category: Game Logic]]
[[Category: Game Logic]]
[[Category: Ylands 0.10]]
[[Category: Ylands 0.10]]

Revision as of 17:36, 16 November 2022

Description

Game logic used to query specific answer from a player. When the game logic is initiated trough Show Prompt instruction an input dialog will be shown to a player. Player then can enter and submit the answer, which will call On Answer event inside the Ask player logic. Such answer can be then operated with using Answer Text literal.

  • It will open edit window and will wait for player input
  • Player's answer will return in On Answer event as as Answer Text (see example)

Properties

Question

  • Text shown in the header of input prompt window

Ask player events

Related instructions