form.show(playerList[0]).then((result: ActionFormResponse) => { if (result.canceled) { log("Player exited out of the dialog. Note that if the chat window is up, dialogs are automatically canceled."); return -1; } else { log("Your result was: " + result.selection); } }); } }
Returns data about the player results from a modal action form.
示例: showActionForm.ts
示例: showFavoriteMonth.ts