I need help with it. This macro will open window where i'll insert my OtF but i need help with the code, please do not laugh, i started in JavaScript 1 week ago!
let dialogEditor = new Dialog({
title: "Macro 3d6 Gurps",
content: "Clique para rolar 3d6",
buttons: {
one: {
label: "Rolar",
callback: () => {
Roll.create("3d6").roll().toMessage(); // i don't know how to call the OTF here!
},
},
close: {
icon: "<i class='fas fa-tick'></i>",
label: "Fechar"
},
},
default: "close"
});
dialogEditor.render(true)
I need help with it. This macro will open window where i'll insert my OtF but i need help with the code, please do not laugh, i started in JavaScript 1 week ago!