ナレーション
入力プロンプト
Pixi’VN の「# script」を使って ink でプレイヤーにテキストや数値の入力を求め、物語の中でその結果を参照する方法を説明します。
ink + Pixi’VN 連携では、ユーザーに 入力プロンプト を表示するための「# script」が導入されています。 To do this, you need to use the following syntax:
# request input type string使用できる parameters(すべて省略可能):type、default。
入力された値はシステムキー _input_value_ を使ってストレージに保存されるため、ink のコンテンツ内で { _input_value_ } を参照できます。
例:
=== start ===
Hello,
# request input type string
<>what is your name?
My name is { _input_value_ }
# request input type number default 18
How old are you?
I am { _input_value_ } years old
# request input type "html textarea"
Describe who you are:
{ _input_value_ }
Restart
-> DONE