Game logic - Ask Player – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
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
*Player's answer will return in On answered event as as Answer text (see example)
*Player's answer will return in '''On Answer''' event as as '''Answer text''' (see example)


<gallery>
<gallery>
Image:Ylands-Editor-Ask-Player-example1.png|Input prompt
Image:Ylands-Editor-Ask-Player-example1.png|Input Prompt
Image:Ylands-Editor-Ask-Player-example1b.png|On Answer
Image:Ylands-Editor-Ask-Player-example1b.png|On Answer
Image:Ylands-Editor-Ask-Player-example1c.png|Input prompt
Image:Ylands-Editor-Ask-Player-example1c.png|Show Prompt
</gallery>
</gallery>


Line 20: Line 20:


=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}}
{{Ylands scripting navbox}}

Revision as of 17:19, 2 December 2018

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



Template:Ylands scripting navbox