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

Suggestion: make_choice() function #69

Open
Lopaki opened this issue Nov 12, 2021 · 0 comments
Open

Suggestion: make_choice() function #69

Lopaki opened this issue Nov 12, 2021 · 0 comments

Comments

@Lopaki
Copy link

Lopaki commented Nov 12, 2021

A function that asks the players to make a choice and stops the script, then continues running the script after the choice is made
Preferably make it open a window and let the players click on one of the choices and return the choice given.
Possible arguments: make_choice("Text to display",amount ) -

"Text to display" is shown in the window over the choices.
amount is the number of choices to make (maximum of 6, so the menu won't load too long)

Possible uses:
a = make_choice("1. apple or 2. banana",2)
if ( a is 1){
apple
}
if (a is 2){
banana
}

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

1 participant