diff --git a/packs/macros_hotbar.db b/packs/macros_hotbar.db index 3b832b4..c4348a8 100644 --- a/packs/macros_hotbar.db +++ b/packs/macros_hotbar.db @@ -1,3 +1,3 @@ {"_id":"NsRHfRuuNGPfkYVf","name":"Death Save","type":"script","scope":"global","img":"systems/mosh/images/icons/ui/rolltables/death_save.png","command":"//run the death save\nasync function prepTableRoll(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //roll the table for the player's 'Selected Character'\n game.user.character.rollTable(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //roll the table for all selected tokens\n canvas.tokens.controlled.foreach(function(token){\n token.rollTable(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison);\n });\n }\n}\n\n//pop up the death save dialog box\nnew Dialog({\n title: `Death Save`,\n content: `\n \n
\n
\n
\n

Death Save

Your character is incapacitated when you receive a fatal wound, or once your Current Wounds equal your Maximum Wounds. As soon as someone spends a turn checking your vitals, make a Death Save to reveal your fate. If your death seems imminent, make your last moments count: save someone’s life, solve an important mystery, or give the others time to escape.
\n
\n
\n

Select your roll type:

\n `,\n buttons: {\n button1: {\n label: `Advantage`,\n callback: () => prepTableRoll(`Death Save`,`1d10 [+]`,`low`,true,false,null,null),\n icon: ``\n },\n button2: {\n label: `Normal`,\n callback: () => prepTableRoll(`Death Save`,`1d10`,`low`,true,false,null,null),\n icon: ``\n },\n button3: {\n label: `Disadvantage`,\n callback: () => prepTableRoll(`Death Save`,`1d10 [-]`,`low`,true,false,null,null),\n icon: ``\n }\n }\n},{width: 600,height: 265}).render(true);","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}} {"_id":"IgWvaabVqzKDzLL4","name":"Panic Check","type":"script","scope":"global","img":"systems/mosh/images/icons/ui/rolltables/panic_check.png","command":"//run the panic check\nasync function prepTableRoll(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //roll the table for the player's 'Selected Character'\n game.user.character.rollTable(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //roll the table for all selected tokens\n canvas.tokens.controlled.foreach(function(token){\n token.rollTable(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison);\n });\n }\n}\n\n//pop up the panic check dialog box\nnew Dialog({\n title: `Panic Check`,\n content: `\n \n
\n
\n
\n

Panic Check

Stress, Damage, and emotional wear and tear eventually bring characters to their breaking point. When that happens, there’s a chance they Panic. You determine this by making a Panic Check. Some results of the Panic Table are so severe that they leave a lasting impression on you. These are called Conditions, and they affect you until you are able to treat them.\n
\n
\n
\n

Select your roll type:

\n `,\n buttons: {\n button1: {\n label: `Advantage`,\n callback: () => prepTableRoll(`Panic Check`,`1d20 [+]`,`high`,false,false,'system.other.stress','>'),\n icon: ``\n },\n button2: {\n label: `Normal`,\n callback: () => prepTableRoll(`Panic Check`,`1d20`,`high`,false,false,'system.other.stress','>'),\n icon: ``\n },\n button3: {\n label: `Disadvantage`,\n callback: () => prepTableRoll(`Panic Check`,`1d20 [-]`,`high`,false,false,'system.other.stress','>'),\n icon: ``\n }\n }\n},{width: 600,height: 265}).render(true);","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}} -{"_id":"ZzKgfEmRdvDfyBMS","name":"Wound Check","type":"script","scope":"global","img":"systems/mosh/images/icons/ui/macros/wound_check.png","command":"//run the wound check\nasync function prepTableRoll(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //roll the table for the player's 'Selected Character'\n game.user.character.rollTable(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //roll the table for all selected tokens\n canvas.tokens.controlled.foreach(function(token){\n token.rollTable(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison);\n });\n }\n}\n\n//pop up the wound check dialog box\nnew Dialog({\n title: `Wound Check`,\n content: `\n \n\n
\n
\n
\n

Wound Check

Make a Wound Check according to the type of Damage received. Flesh Wounds are small inconveniences. Minor/Major Injuries cause lasting issues which require medical treatment. Lethal Injuries can kill you if not dealt with immediately. Fatal Injuries can kill outright. Bleeding wounds, if not treated can quickly overwhelm you.
\n
\n
\n \n \n \n \n \n

Select your roll type:

\n `,\n buttons: {\n button1: {\n label: `Advantage`,\n callback: (html) => prepTableRoll(html.find(\"input[name='wound_table']:checked\").val(),`1d10 [+]`,`low`,true,false,null,null),\n icon: ``\n },\n button2: {\n label: `Normal`,\n callback: (html) => prepTableRoll(html.find(\"input[name='wound_table']:checked\").val(),`1d10`,`low`,true,false,null,null),\n icon: ``\n },\n button3: {\n label: `Disadvantage`,\n callback: (html) => prepTableRoll(html.find(\"input[name='wound_table']:checked\").val(),`1d10 [-]`,`low`,true,false,null,null),\n icon: ``\n }\n }\n},{width: 600,height: 265}).render(true);","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}} \ No newline at end of file +{"_id":"ZzKgfEmRdvDfyBMS","name":"Wound Check","type":"script","scope":"global","img":"systems/mosh/images/icons/ui/macros/wound_check.png","command":"//run the wound check\nasync function prepTableRoll(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //roll the table for the player's 'Selected Character'\n game.user.character.rollTable(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //roll the table for all selected tokens\n canvas.tokens.controlled.foreach(function(token){\n token.rollTable(tableName,rollString,aimFor,zeroBased,checkCrit,rollAgainst,comparison);\n });\n }\n}\n\n//pop up the wound check dialog box\nnew Dialog({\n title: `Wound Check`,\n content: `\n \n\n
\n
\n
\n

Wound Check

Make a Wound Check according to the type of Damage received. Flesh Wounds are small inconveniences. Minor/Major Injuries cause lasting issues which require medical treatment. Lethal Injuries can kill you if not dealt with immediately. Fatal Injuries can kill outright. Bleeding wounds, if not treated can quickly overwhelm you.
\n
\n
\n \n \n \n \n \n

Select your roll type:

\n `,\n buttons: {\n button1: {\n label: `Advantage`,\n callback: (html) => prepTableRoll(html.find(\"input[name='wound_table']:checked\").val(),`1d10 [+]`,`low`,true,false,null,null),\n icon: ``\n },\n button2: {\n label: `Normal`,\n callback: (html) => prepTableRoll(html.find(\"input[name='wound_table']:checked\").val(),`1d10`,`low`,true,false,null,null),\n icon: ``\n },\n button3: {\n label: `Disadvantage`,\n callback: (html) => prepTableRoll(html.find(\"input[name='wound_table']:checked\").val(),`1d10 [-]`,`low`,true,false,null,null),\n icon: ``\n }\n }\n},{width: 600,height: 650}).render(true);","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}