From SmartBots Developers Docs
Jump to: navigation, search

Virtually "presses" a pop-up dialog button (which was displayed by an in-world script).

Bot.replyDialog(channel, object, button);


This command accepts the following parameters:

Variable Required Description

channel yes The dialog channel (either positive or negative value)
object yes UUID of the object which sent us the dialog
button yes The text of the dialog button to press
Function returns a Promise with the following data:
success bool true if command completed successfully
error string error string if command has failed


Bot.on("script_dialog", function(event) {
	Bot.replyDialog(, event.object_uuid, event.buttons[0]);
	console.log("Got an dialog and answered with the first button: " + event.buttons[0]);