henry232323 / RPGBot

A Discord Bot with lots of RPG utilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: make_choice() function

Lopaki opened this issue · comments

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
}