11 lines
35 KiB
Plaintext
11 lines
35 KiB
Plaintext
{"_id":"6wsDxyoKPHxpoHtF","name":"Cover","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/attributes/armor.png","command":"prepCover();\n\n//tell the actor to run the function\nasync function prepCover() {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //is there a selected character? warn if no\n if (!game.user.character) {\n //warn player\n game.mosh.noCharSelected();\n } else {\n //run the function for the player's 'Selected Character'\n game.user.character.chooseCover();\n }\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //is there a selected character? warn if no\n if (!canvas.tokens.controlled.length) {\n //warn player\n game.mosh.noCharSelected();\n } else {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.chooseCover();\n });\n }\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||
{"_id":"NsRHfRuuNGPfkYVf","name":"Death Save","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/rolltables/death_save.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n //pop up the death save dialog box\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Death Save\"\n },\n classes: [\"macro-popup-dialog\"],\n position: { width: 600 },\n content: `\n <div class=\"macro_window\">\n <div class=\"grid grid-2col\" style=\"grid-template-columns: 150px auto\">\n <div class=\"macro_img\">\n <img src=\"systems/sla-mothership/images/icons/ui/rolltables/death_save.png\" />\n </div>\n <div class=\"macro_desc\">\n <h4>Death Save</h4>\n 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 <strong>Death Save</strong> 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 </div> \n </div>\n </div>\n <div class=\"macro_prompt\">\n Select your roll type:\n </div>\n `,\n buttons: [\n {\n label: \"Advantage\",\n action: \"action_advantage\",\n callback: () => game.mosh.initRollTable(game.settings.get(\"mosh\",\"table1eDeath\"), \"1d10 [+]\", \"low\", true, false, null, null),\n icon: `fas fa-angle-double-up`\n },\n {\n label: \"Normal\",\n action: \"action_normal\",\n callback: () => game.mosh.initRollTable(game.settings.get(\"mosh\",\"table1eDeath\"), \"1d10\", \"low\", true, false, null, null),\n icon: `fas fa-minus`\n },\n {\n label: \"Disadvantage\",\n action: \"action_disadvantage\",\n callback: () => game.mosh.initRollTable(game.settings.get(\"mosh\",\"table1eDeath\"), \"1d10 [-]\", \"low\", true, false, null, null),\n icon: `fas fa-angle-double-down`\n }\n ]\n }).render({ force: true });\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||
{"_id":"GSFEBhrKC9yuD88V","name":"Gain Calm","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/macros/relieve_stress.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Gain Calm\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n <div class =\"macro_window\" style=\"margin-bottom : 7px;\">\n <div class=\"grid grid-2col\" style=\"grid-template-columns: 150px auto\">\n <div class=\"macro_img\"><img src=\"systems/sla-mothership/images/icons/ui/macros/relieve_stress.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\">\n <h4>Gain Calm</h4>\n Occasionally, certain moments, places, or events can automatically <strong>calm you down.</strong> Escaping perilous situations, like finding a serene location, or experiencing a touching moment with a loved one can have meaningful impacts on your mood and outlook on life. If your Calm is getting close to 0, you should consider making a <strong>Rest Save</strong> - as the effects of a failed <strong>Panic Check</strong> can be devastating.\n </div> \n </div>\n </div>\n <div class=\"macro_prompt\">\n Select your modification:\n </div>\n `,\n buttons: [\n {\n label: `Gain 5 Calm`,\n action: 'button_1',\n callback: () => game.mosh.initModifyActor('system.other.stress.value',5,null,true),\n icon: `fas fa-angle-up`\n },\n {\n label: `Gain 10 Calm`,\n action: 'button_2',\n callback: () => game.mosh.initModifyActor('system.other.stress.value',10,null,true),\n icon: `fas fa-angle-double-up`\n },\n {\n label: `Gain 1d20 Calm`,\n action: 'button_3',\n callback: () => game.mosh.initModifyActor('system.other.stress.value',null,`1d20`,true),\n icon: `fas fa-arrow-circle-up`\n }\n ]\n }).render({force: true});\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||
{"_id":"X0L0NnWt53b0rHYG","name":"Gain Stress","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/macros/gain_stress.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Gain Stress\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n <div class =\"macro_window\" style=\"margin-bottom : 7px;\">\n <div class=\"grid grid-2col\" style=\"grid-template-columns: 150px auto\">\n <div class=\"macro_img\"><img src=\"systems/sla-mothership/images/icons/ui/macros/gain_stress.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\">\n <h4>Gain Stress</h4>\n <strong>You gain 1 Stress every time you fail a Stat Check or Save.</strong> Occasionally, certain locations or entities can automatically give you Stress from interacting with or witnessing them. Your <strong>Minimum Stress</strong> starts at 2, and the <strong>Maximum Stress you can have is 20.</strong> Any Stress you take over 20 instead reduces the most relevant Stat or Save by that amount.\n </div> \n </div>\n </div>\n <div class=\"macro_prompt\">\n Select your modification:\n </div>\n `,\n buttons: [\n {\n label: `Gain 1 Stress`,\n action: 'button_1',\n callback: () => game.mosh.initModifyActor('system.other.stress.value',1,null,true),\n icon: `fas fa-angle-up`\n },\n {\n label: `Gain 2 Stress`,\n action: 'button_2',\n callback: () => game.mosh.initModifyActor('system.other.stress.value',2,null,true),\n icon: `fas fa-angle-double-up`\n },\n {\n label: `Gain 1d5 Stress`,\n action: 'button_3',\n callback: () => game.mosh.initModifyActor('system.other.stress.value',null,`1d5`,true),\n icon: `fas fa-arrow-circle-up`\n }\n ]\n }).render({force: true});\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||
{"_id":"trU0DtBJvJCPddsQ","name":"Lose Calm","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/macros/gain_stress.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Lose Calm\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n <div class ='macro_window' style='margin-bottom : 7px;'>\n <div class='grid grid-2col' style='grid-template-columns: 150px auto'>\n <div class='macro_img'><img src='systems/sla-mothership/images/icons/ui/macros/gain_stress.png' style='border:none'/></div>\n <div class='macro_desc'>\n <h4>Lose Calm</h4>\n Occasionally, certain locations or entities can automatically give you Stress from interacting with or witnessing them. You live in a terrifying, uncaring universe, so your <strong>Maximum Calm</strong> caps out at 85 and cannot go lower than zero.\n </div> \n </div>\n </div>\n <div class=\"macro_prompt\">\n Select your modification:\n </div>\n `,\n buttons: [\n {\n label: `Lose 5 Calm`,\n action: `lose_5`,\n callback: () => game.mosh.initModifyActor('system.other.stress.value',-5,null,true),\n icon: `fas fa-angle-down`\n },\n {\n label: `Lose 10 Calm`,\n action: `lose_10`,\n callback: () => game.mosh.initModifyActor('system.other.stress.value',-10,null,true),\n icon: `fas fa-angle-double-down`\n },\n {\n label: `Lose 1d20 Calm`,\n action: `lose_1d20`,\n callback: () => game.mosh.initModifyActor('system.other.stress.value',null,`-1d20`,true),\n icon: `fas fa-arrow-circle-down`\n }\n ]\n }).render({force: true});\n}","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/sla-mothership/images/icons/ui/rolltables/panic_check.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n //pop up the panic check dialog box\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Panic Check\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n <div class =\"macro_window\" style=\"margin-bottom : 7px;\">\n <div class=\"grid grid-2col\" style=\"grid-template-columns: 150px auto\">\n <div class=\"macro_img\"><img src=\"systems/sla-mothership/images/icons/ui/rolltables/panic_check.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\">\n <h4>Panic Check</h4>\n 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 <strong>Panic Check</strong>. Some results of the Panic Table are so severe that they leave a lasting impression on you. These are called <strong>Conditions</strong>, and they affect you until you are able to treat them.\n </div>\n </div>\n </div>\n <div class=\"macro_prompt\">\n Select your roll type:\n </div>\n `,\n buttons: [\n {\n label: `Advantage`,\n action: 'button_advantage',\n callback: () => game.mosh.initRollTable(`panicCheck`,`[+]`,null,false,false,null,null),\n icon: `fas fa-angle-double-up`\n },\n {\n label: `Normal`,\n action: 'button_normal',\n callback: () => game.mosh.initRollTable(`panicCheck`,``,null,false,false,null,null),\n icon: `fas fa-minus`\n },\n {\n label: `Disadvantage`,\n action: 'button_disadvantage',\n callback: () => game.mosh.initRollTable(`panicCheck`,`[-]`,null,false,false,null,null),\n icon: `fas fa-angle-double-down`\n }\n ]\n }).render({force: true});\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||
{"_id":"GaadOTppoqNFWZhV","name":"Relieve Stress","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/macros/relieve_stress.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Relieve Stress\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n <div class =\"macro_window\" style=\"margin-bottom : 7px;\">\n <div class=\"grid grid-2col\" style=\"grid-template-columns: 150px auto\">\n <div class=\"macro_img\"><img src=\"systems/sla-mothership/images/icons/ui/macros/relieve_stress.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\">\n <h4>Relieve Stress</h4>\n Occasionally, certain moments, places, or events can automatically <strong>relieve your stress.</strong> Escaping perilous situations, finding a serene location, or experiencing a touching moment with a loved one can have meaningful impacts on your mood and outlook on life. If your stress is getting close to 20, you should consider making a <strong>Rest Save</strong> - as the effects of a failed <strong>Panic Check</strong> can be devastating.\n </div> \n </div>\n </div>\n <div class=\"macro_prompt\">\n Select your modification:\n </div>\n `,\n buttons: [\n {\n label: `Relieve 1 Stress`,\n action: 'button_1',\n callback: () => game.mosh.initModifyActor('system.other.stress.value',-1,null,true),\n icon: `fas fa-angle-down`\n },\n {\n label: `Relieve 2 Stress`,\n action: 'button_2',\n callback: () => game.mosh.initModifyActor('system.other.stress.value',-2,null,true),\n icon: `fas fa-angle-double-down`\n },\n {\n label: `Relieve 1d5 Stress`,\n action: 'button_3',\n callback: () => game.mosh.initModifyActor('system.other.stress.value',null,`-1d5`,true),\n icon: `fas fa-arrow-circle-down`\n }\n ]\n }).render({force: true});\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||
{"_id":"iyonscW5QiQdQbyJ","name":"Rest Save","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/macros/rest_save.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Rest Save\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n <div class =\"macro_window\" style=\"margin-bottom : 7px;\">\n <div class=\"grid grid-2col\" style=\"grid-template-columns: 150px auto\">\n <div class=\"macro_img\"><img src=\"systems/sla-mothership/images/icons/ui/macros/rest_save.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\">\n <h4>Rest Save</h4>\n You can relieve Stress by resting in a relatively safe place. If you succeed, reduce your Stress; <strong>if you fail, you gain 1 Stress instead.</strong> Players can gain Advantage on their Rest Save by participating in consensual sex, recreational drug use, a night of heavy drinking, prayer, or any other suitable leisure activity. Unsafe locations may incur Disadvantage.\n </div>\n </div>\n </div>\n `,\n buttons: [\n {\n label: `Next`,\n action: 'button_next',\n callback: () => game.mosh.initRollCheck(null,'low','restSave',null,null,null),\n icon: `fas fa-chevron-circle-right`\n }\n ]\n }).render({force: true});\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||
{"_id":"kb3tvYdTSWnzQRfw","name":"Save","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/macros/save.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Save\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n <div class =\"macro_window\">\n <div class=\"grid grid-2col\" style=\"grid-template-columns: 150px auto\">\n <div class=\"macro_img\"><img src=\"systems/sla-mothership/images/icons/ui/macros/save.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\">\n <h4>Save</h4>\n You have three Saves which represent your ability to withstand different kinds of trauma. In order to avoid certain dangers, you sometimes need to roll a Save. <strong>If you roll less than your Save you succeed. Otherwise you fail, and gain 1 Stress.</strong> A roll of 90-99 is always a failure. A Critical Failure means something bad happens, and furthermore you must make a Panic Check.\n </div> \n </div>\n </div>\n <label for=\"san\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"san\" name=\"save\" value=\"sanity\" checked=\"checked\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/attributes/sanity.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Sanity:</strong> Rationalize logical inconsistencies in the universe, make sense out of chaos, detect illusions and mimicry, cope with <strong>Stress</strong>.\n </span>\n </div> \n </div>\n </div>\n </label>\n <label for=\"fer\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"fer\" name=\"save\" value=\"fear\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/attributes/fear.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Fear:</strong> Maintain a level head while struggling with fear, loneliness, depression, and other emotional surges.\n </span>\n </div> \n </div>\n </div>\n </label>\n <label for=\"bod\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"bod\" name=\"save\" value=\"body\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/attributes/body.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Body:</strong> Employ quick reflexes and resist hunger, disease, or organisms that might try and invade your insides.\n </span>\n </div>\n </div>\n </div>\n </label>\n `,\n buttons: [\n {\n label: `Next`,\n action: 'button_1',\n callback: (event, button, dialog) => game.mosh.initRollCheck(null,'low',button.form.querySelector(\"input[name='save']:checked\").value,null,null,null),\n icon: `fas fa-chevron-circle-right`\n }\n ]\n }).render({force: true});\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||
{"_id":"2u4a5gEogtLd3XQz","name":"Stat Check","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/macros/stat_check.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Stat Check\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n <div class =\"macro_window\">\n <div class=\"grid grid-2col\" style=\"grid-template-columns: 150px auto\">\n <div class=\"macro_img\"><img src=\"systems/sla-mothership/images/icons/ui/macros/stat_check.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\">\n <h4>Stat Check</h4>\n You have four Stats which represent your ability to act under extreme pressure. Whenever you want to do something and the price for failure is high, roll a stat check. <strong>If you roll less than your Stat you succeed. Otherwise, you fail and gain 1 Stress.</strong> A roll of 90-99 is always a failure. A Critical Failure means something bad happens, and furthermore you must make a Panic Check.\n </div> \n </div>\n </div>\n <label for=\"str\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"str\" name=\"stat\" value=\"strength\" checked=\"checked\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/attributes/strength.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Strength:</strong> Holding airlocks closed, carrying fallen comrades, climbing, pushing, jumping.\n </span>\n </div> \n </div>\n </div>\n </label>\n <label for=\"spd\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"spd\" name=\"stat\" value=\"speed\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/attributes/speed.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Speed:</strong> Getting out of the cargo bay before the blast doors close, acting before someone <em>(or something)</em> else, running away.\n </span>\n </div> \n </div>\n </div>\n </label>\n <label for=\"int\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"int\" name=\"stat\" value=\"intellect\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/attributes/intellect.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Intellect:</strong> Recalling your training and experience under duress, thinking through difficult problems, inventing or fixing things.\n </span>\n </div>\n </div>\n </div>\n </label>\n <label for=\"com\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"com\" name=\"stat\" value=\"combat\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/attributes/combat.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Combat:</strong> Fighting for your life.\n </span>\n </div> \n </div>\n </div>\n </label>\n `,\n buttons: [\n {\n label: `Next`,\n action: 'button_1',\n callback: (event, button, dialog) => game.mosh.initRollCheck(null,'low',button.form.querySelector(\"input[name='stat']:checked\").value,null,null,null),\n icon: `fas fa-chevron-circle-right`\n }\n ]\n }).render({force: true});\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||
{"_id":"ZzKgfEmRdvDfyBMS","name":"Wound Roll","type":"script","scope":"global","img":"systems/sla-mothership/images/icons/ui/macros/wound_roll.png","command":"//init vars\nlet macroTarget = game.settings.get('mosh','macroTarget');\n//warn user if character is not selected\nif ((macroTarget === 'character' && !game.user.character) || (macroTarget === 'token' && !canvas.tokens.controlled.length)) {\n //warn player\n game.mosh.noCharSelected();\n//else pop up the dialog\n} else {\n //pop up the wound roll dialog box\n new foundry.applications.api.DialogV2({\n window: {\n title: \"Wound Roll\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n <div class =\"macro_window\">\n <div class=\"grid grid-2col\" style=\"grid-template-columns: 150px auto\">\n <div class=\"macro_img\"><img src=\"systems/sla-mothership/images/icons/ui/macros/wound_roll.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\">\n <h4>Wound Roll</h4>\n Make a <strong>Wound Roll</strong> according to the type of Damage received.<br><strong>Flesh Wounds</strong> are small inconveniences.<br><strong>Minor/Major Injuries</strong> cause lasting issues that require treatment.<br><strong>Lethal Injuries</strong> can kill you if not dealt with immediately.<br><strong>Fatal Injuries</strong> can kill outright.<br><strong>Bleeding</strong> wounds, if not treated can quickly overwhelm you.\n </div> \n </div>\n </div>\n <label for=\"bf\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"bf\" name=\"wound_table\" value=\"31YibfjueXuZdNLb\" checked=\"checked\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/rolltables/wounds_blunt_force.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Blunt Force:</strong> Getting punched, hit with a crowbar or a thrown object, falling, etc.\n </span>\n </div>\n </div>\n </div>\n </label>\n <label for=\"b\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"b\" name=\"wound_table\" value=\"ata3fRz3uoPfNCLh\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/rolltables/wounds_bleeding.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Bleeding:</strong> Getting stabbed or cut.\n </span>\n </div>\n </div>\n </div>\n </label>\n <label for=\"g\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"g\" name=\"wound_table\" value=\"XjDU2xFOWEasaZK0\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/rolltables/wounds_gunshot.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Gunshot:</strong> Getting shot by a firearm.\n </span>\n </div>\n </div>\n </div>\n </label>\n <label for=\"fe\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"fe\" name=\"wound_table\" value=\"lqiaWwh5cGcJhvnu\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/rolltables/wounds_fire_&_explosives.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Fire & Explosives:</strong> Grenades, flamethrowers, doused in fuel and lit on fire, etc.\n </span>\n </div>\n </div>\n </div>\n </label>\n <label for=\"gm\">\n <div class =\"macro_window\" style=\"vertical-align: middle; padding-left: 3px;\">\n <div class=\"grid grid-3col\" style=\"align-items: center; grid-template-columns: 20px 60px auto\">\n <input type=\"radio\" id=\"gm\" name=\"wound_table\" value=\"uVfC1CqYdojaJ7yR\">\n <div class=\"macro_img\" style=\"padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;\"><img src=\"systems/sla-mothership/images/icons/ui/rolltables/wounds_gore_&_massive.png\" style=\"border:none\"/></div>\n <div class=\"macro_desc\" style=\"display: table;\">\n <span style=\"display: table-cell; vertical-align: middle;\">\n <strong>Gore & Massive:</strong> Giant or gruesome attacks.\n </span>\n </div>\n </div>\n </div>\n </label>\n <div class=\"macro_prompt\">\n Select your roll type:\n </div>\n `,\n buttons: [\n {\n label: `Advantage`,\n action: 'action_advantage',\n callback: (event, button, dialog) => game.mosh.initRollTable(button.form.querySelector(\"input[name='wound_table']:checked\").value,`1d10 [+]`,`low`,true,false,null,null),\n icon: `fas fa-angle-double-up`\n },\n {\n label: `Normal`,\n action: 'action_normal',\n callback: (event, button, dialog) => game.mosh.initRollTable(button.form.querySelector(\"input[name='wound_table']:checked\").value,`1d10`,`low`,true,false,null,null),\n icon: `fas fa-minus`\n },\n {\n label: `Disadvantage`,\n action: 'action_disadvantage',\n callback: (event, button, dialog) => game.mosh.initRollTable(button.form.querySelector(\"input[name='wound_table']:checked\").value,`1d10 [-]`,`low`,true,false,null,null),\n icon: `fas fa-angle-double-down`\n }\n ]\n }).render({force: true});\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}} |