Skip to content

Instantly share code, notes, and snippets.

@Grygon
Created March 24, 2021 23:14
Show Gist options
  • Save Grygon/7ae9bbe28812b003799b1c964ade0573 to your computer and use it in GitHub Desktop.
Save Grygon/7ae9bbe28812b003799b1c964ade0573 to your computer and use it in GitHub Desktop.
new Dialog({
title: 'Bonus Damage',
content: '<h1>Bonus damage?</h1>',
buttons: {
submit: {
icon: '<i class="fas fa-check"></i>',
label: "Yes",
callback: async () => {
game.lancer.prepareItemMacro(<ACTOR ID>, <ITEM ID>, {damBonus: {type: "Bonus", val: "1d6"}});
},
},
no: {
icon: '<i class="fas fa-times"></i>',
label: "No",
callback: async () => {
game.lancer.prepareItemMacro(<ACTOR ID>, <ITEM ID>);
},
},
},
default: "submit",
close: () => {},
}).render(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment