askStyle Lua export - VanaDev/Vana GitHub Wiki

askStyle

Script Type(s): NPC Scripts

Category: NPC Exports

Return(s):

  • choiceId: number
Argument(s):
  • styles: table of numbers
Notes: Sends a style prompt dialog to the player. Returns the selection they pick. It is recommended to use the selectChoice function in order to extract the appropriate style, e.g.
 choice = askStyle(validFaces);
 if giveItem(item, -1) then
 	setStyle(selectChoice(validFaces, choice));
 end
⚠️ **GitHub.com Fallback** ⚠️