내레이션
입력 프롬프트
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