-
-
Notifications
You must be signed in to change notification settings - Fork 2
ink input
Black Ram edited this page Nov 14, 2024
·
14 revisions
Pixi’VN allows you to use in the ink syntax the possibility to use the Input.
The syntax is as follows:
#
+ request
+ input
+ type of the value
-
#
It is a special character used by ink syntax for add Special Commands. -
request
It is the operation that you want to do with the input element. The available operations arerequest
. -
input
It is the type of the input element (is a string). If contains spaces, you must use double quotes.
The value will be saved in storage with the following system key storage.keysSystem.CURRENT_INPUT_VALUE_MEMORY_KEY
, that is _input_value_
. So you can access the value with _input_value_
.
Example:
// this is used to avoid the ink error, because the variable is not defined
VAR _input_value_ = ""
=== start ===
My input value is: {_input_value_}
# request input
# request input number
# request input "array of string"
The input value is: {_input_value_}
-> DONE
::: sandbox {template=58gk4t entry=/src/ink_labels/start.ink} :::