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); } }); } }
Builds a simple player form with buttons that let the player take action.
示例: showActionForm.ts
示例: showFavoriteMonth.ts