选择菜单
How to present and control choice menus in native ink, including once-only, sticky, conditional and fallback choices. Compatible with the Pixi’VN integration.
The ink + Pixi’VN integration supports native ink choices without introducing new choice types. For full details on choice syntax and behavior, refer to the official ink documentation.
You can ask the player to make a choice in ink using a list of * or + bullets, followed by the choice text. The choice text is displayed to the player and they select one option to continue the story.
*indicates a choice that can only be made once.+indicates a choice that can be made multiple times (sticky choice).
=== start ===
* Go to Paris
You decide to visit Paris. -> visit_paris
+ Go to London -> visit_london
* Stay at home
You decide to stay at home. -> DONESuppressing choice text
By default, the text of a chosen option is printed again in the output. If the visible choice text is given in square brackets, that text is shown only in the choice menu and not printed in the subsequent output.
=== start ===
Hello world!
* [Hello back!]
Nice to hear from you!The square brackets split the option content: what appears before is printed in both the menu and the output; what is inside the brackets appears only in the menu; what follows appears only in the output. This is useful for dialogue choices:
=== start ===
"What's that?" my master asked.
* "I am somewhat tired[."]," I repeated.
"Really," he responded. "How deleterious."