-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{"name":"AA DoT","type":"script","flags":{"furnace":{"runAsGM":false},"core":{"sourceId":"Macro.nsfe0IvUwY7JP4ya"}},"scope":"global","command":"if(args[0] === \"on\") {\nlet damageRoll = new Roll(`${args[1]}`).roll().toMessage({flavor: `${args[2]}`})\n}","author":"E4BVikjIkVl2lL2j","img":"icons/svg/dice-target.svg","_id":"TWJ7K9Rw384oXFxV","ownership":{"default":0,"E4BVikjIkVl2lL2j":3},"folder":null,"sort":0,"_stats":{"systemId":"dnd5e","systemVersion":"2.0.1","coreVersion":"10.283","createdTime":1662274930162,"modifiedTime":1662274930162,"lastModifiedBy":"GrX6tFOozYFBnDHq"}} | ||
{"_id":"UwyXiTHK3Q518uLm","name":"AA ApplyEffectsToTemplate","type":"script","author":"E4BVikjIkVl2lL2j","img":"icons/svg/dice-target.svg","scope":"global","command":"//On use macro to apply an item's active effects to the placed template instead of applying through the normal midi QoL workflow \n// requires midi qol, advanced macros and Active Auras \nAAhelpers.applyTemplate(<midi arguments here>)","folder":null,"sort":0,"flags":{"furnace":{"runAsGM":false},"combat-utility-belt":{"macroTrigger":""},"core":{"sourceId":"Macro.fHwT4N13IcbW4D3I"},"advanced-macros":{"runAsGM":false}},"ownership":{"default":0,"E4BVikjIkVl2lL2j":3},"_stats":{"systemId":"dnd5e","systemVersion":"2.0.1","coreVersion":"10.283","createdTime":1662274930163,"modifiedTime":1662274930163,"lastModifiedBy":"GrX6tFOozYFBnDHq"}} | ||
{"name":"AA Apply effect to drawing","type":"script","author":"jkdToQqzFl0mFXls","img":"icons/svg/dice-target.svg","scope":"global","command":"// Standard Hotbar macro to apply an active effect from a given actor (default Zone Effects) to a selected drawing\n// Change the actor name as required \n\n\nlet effectActor = game.actors.getName(\"<name here>\")\nlet effects = effectActor.effects.contents\nlet drawing = canvas.drawings.controlled[0]\nlet content\nfor ( let effect of effects) {\ncontent += `<option value=${effect.id}>${effect.label}</option>`;\n}\nnew Dialog({\n title: 'Example',\n content: `\n <form class=\"flexcol\">\n <div class=\"form-group\">\n <select id=\"effect\">\n ${content}\n </select>\n </div>\n </form>\n `,\n buttons: {\n apply: {\n label: \"Apply\",\n callback: async (html) => {\n let effectId = html.find('#effect').val();\n let effect = effects.find(i => i.id === effectId)\n effect.origin = `Actor.${effectActor.id}`\n await drawing.document.setFlag(\"ActiveAuras\", \"IsAura\", [effect.data])\n AAhelpers.UserCollateAuras(canvas.scene.id, true, false, \"drawingAdd\")\n }\n }\n }\n}).render(true)","folder":null,"sort":0,"flags":{"furnace":{"runAsGM":false},"combat-utility-belt":{"macroTrigger":""},"core":{"sourceId":"Macro.RukVihRspPDZRSKM"},"advanced-macros":{"runAsGM":false}},"_id":"r8hqRcIOLk3ymtUW","ownership":{"default":0,"E4BVikjIkVl2lL2j":3,"jkdToQqzFl0mFXls":3},"_stats":{"systemId":"dnd5e","systemVersion":"2.0.1","coreVersion":"10.283","createdTime":1662274930165,"modifiedTime":1662275271741,"lastModifiedBy":"GrX6tFOozYFBnDHq"}} | ||
{"_id":"UwyXiTHK3Q518uLm","name":"AA Apply Effect to Template","type":"script","author":"E4BVikjIkVl2lL2j","img":"icons/svg/dice-target.svg","scope":"global","command":"//On use macro to apply an item's active effects to the placed template instead of applying through the normal midi QoL workflow \n// requires midi qol, advanced macros and Active Auras \nAAhelpers.applyTemplate(<midi arguments here>)","folder":null,"sort":0,"flags":{"furnace":{"runAsGM":false},"combat-utility-belt":{"macroTrigger":""},"core":{"sourceId":"Macro.fHwT4N13IcbW4D3I"},"advanced-macros":{"runAsGM":false}},"ownership":{"default":0,"E4BVikjIkVl2lL2j":3},"_stats":{"systemId":"dnd5e","systemVersion":"2.0.1","coreVersion":"10.283","createdTime":1662274930163,"modifiedTime":1662274930163,"lastModifiedBy":"GrX6tFOozYFBnDHq"}} | ||
{"name":"AA Apply Effect to Drawing","type":"script","author":"jkdToQqzFl0mFXls","img":"icons/svg/dice-target.svg","scope":"global","command":"// Standard Hotbar macro to apply an active effect from a given actor (default Zone Effects) to a selected drawing\n// Change the actor name as required \n\n\nlet effectActor = game.actors.getName(\"<name here>\")\nlet effects = effectActor.effects.contents\nlet drawing = canvas.drawings.controlled[0]\nlet content\nfor ( let effect of effects) {\ncontent += `<option value=${effect.id}>${effect.label}</option>`;\n}\nnew Dialog({\n title: 'Example',\n content: `\n <form class=\"flexcol\">\n <div class=\"form-group\">\n <select id=\"effect\">\n ${content}\n </select>\n </div>\n </form>\n `,\n buttons: {\n apply: {\n label: \"Apply\",\n callback: async (html) => {\n let effectId = html.find('#effect').val();\n let effect = effects.find(i => i.id === effectId)\n effect.origin = `Actor.${effectActor.id}`\n await drawing.document.setFlag(\"ActiveAuras\", \"IsAura\", [effect.data])\n AAhelpers.UserCollateAuras(canvas.scene.id, true, false, \"drawingAdd\")\n }\n }\n }\n}).render(true)","folder":null,"sort":0,"flags":{"furnace":{"runAsGM":false},"combat-utility-belt":{"macroTrigger":""},"core":{"sourceId":"Macro.RukVihRspPDZRSKM"},"advanced-macros":{"runAsGM":false}},"_id":"r8hqRcIOLk3ymtUW","ownership":{"default":0,"E4BVikjIkVl2lL2j":3,"jkdToQqzFl0mFXls":3},"_stats":{"systemId":"dnd5e","systemVersion":"2.0.1","coreVersion":"10.283","createdTime":1662274930165,"modifiedTime":1662275271741,"lastModifiedBy":"GrX6tFOozYFBnDHq"}} |