Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing A Player To Name Their Character #915

Open
egyptthecreator opened this issue Sep 15, 2024 Discussed in #914 · 1 comment
Open

Allowing A Player To Name Their Character #915

egyptthecreator opened this issue Sep 15, 2024 Discussed in #914 · 1 comment

Comments

@egyptthecreator
Copy link

Discussed in #914

Originally posted by egyptthecreator September 14, 2024
I want to allow a player to pick their name for the duration of a playthrough.

Is there a way to create a text box that flags the player's input as a variable to recall throughout the story?

@michaeloa
Copy link

premek's answer is the correct one.

The way I'd typically do something like this would be to create an external function (of the "action" variety - i.e., not lookAheadSafe) which then is bound to code that will pop up an edittext dialog. You'll have to stop the story flow, of course.

Once the dialog has been closed, extract the chosen name from the dialog, set the name variable in your Ink story, and then continue processing the story.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants