/* * Example Ubiquity Dice Roller */ let d = new Dialog({ title: 'Ubiquity Dice Roller', content: `
`, buttons: { no: { icon: '', label: 'Cancel' }, yes: { icon: '', label: 'Roll', callback: (html) => { let val1 = html.find('input[name="firstInput"]').val(); new Roll(`${val1}d6cs>=4x6`).toMessage(); } }, }, default: 'yes', close: () => { console.log('Example Dialog Closed'); } }); d.render(true);