Skip to content

askChoice Lua export

Bui edited this page Aug 29, 2014 · 1 revision

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);
Clone this wiki locally