askChoice Lua export - VanaDev/Vana GitHub Wiki

askChoice

Script Type(s): NPC Scripts

Category: NPC Exports

Return(s):

  • choiceId: number
Argument(s):
  • N/A
Notes: Sends a choice prompt dialog to the player. Returns the selection they pick. It is recommended to use the selectChoice function in order to extract the appropriate choice, e.g.
 choice = askChoice();
 selectChoice(choices, choice);
⚠️ **GitHub.com Fallback** ⚠️