{"_id":"2xRvRAixuocjCm40","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 new foundry.applications.api.DialogV2({\n window: {\n title: \"Death Save\"\n },\n classes: [\"macro-popup-dialog\"],\n position: {width: 600},\n content: `\n
\n
\n
\n
\n

Death Save

\n Whenever you reach 0 Health, make a Body Save: Failure means you die. Success means you fall unconscious, make a Death Save to find out when you regain consciousness. Crew members with a medscanner, relevant skills like First Aid or Biology, or scientists and androids who pass an Intellect Check can determine your condition.\n
\n
\n
\n
\n Select your roll type:\n
\n `,\n buttons: [\n {\n label: `Advantage`,\n action: `action_advantage`,\n callback: () => game.mosh.initRollTable(game.settings.get('mosh','table0eDeath'),`1d10 [+]`,`high`,false,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','table0eDeath'),`1d10`,`high`,false,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','table0eDeath'),`1d10 [-]`,`high`,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":"9Bq5LYoToO1sjCn3","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
\n
\n
\n
\n

Gain Calm

\n Occasionally, certain moments, places, or events can automatically calm you down. 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 Calm is getting close to 0, you should consider making a Rest Save - as the effects of a failed Panic Check can be devastating.\n
\n
\n
\n
\n Select your modification:\n
\n `,\n buttons: [\n {\n label: `Gain 5 Calm`,\n action: `gain_5`,\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: `gain_10`,\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: `gain_1d20`,\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":"ilBclUmPwcd7aNQK","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
\n
\n
\n
\n

Gain Stress

\n You gain 1 Stress every time you fail a Stat Check or Save. Occasionally, certain locations or entities can automatically give you Stress from interacting with or witnessing them. Your Minimum Stress starts at 2, and the Maximum Stress you can have is 20. Any Stress you take over 20 instead reduces the most relevant Stat or Save by that amount.\n
\n
\n
\n
\n Select your modification:\n
\n `,\n buttons: [\n {\n label: `Gain 1 Stress`,\n action: `gain_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: `gain_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: `gain_1d5`,\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":"D8ytoUTWfpq8A2td","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
\n
\n
\n
\n

Lose Calm

\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 Maximum Calm caps out at 85 and cannot go lower than zero.\n
\n
\n
\n
\n Select your modification:\n
\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":"eyGvbBi1BhWSgfUP","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
\n
\n
\n
\n

Panic Check

\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 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
\n Select your roll type:\n
\n `,\n buttons: [\n {\n label: `Advantage`,\n action: `action_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: `action_normal`,\n callback: () => game.mosh.initRollTable(`panicCheck`,``,null,false,false,null,null),\n icon: `fas fa-minus`\n },\n {\n label: `Disadvantage`,\n action: `action_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":"NjLulaitEhqE55vO","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
\n
\n
\n
\n

Relieve Stress

\n Occasionally, certain moments, places, or events can automatically relieve your stress. 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 Rest Save - as the effects of a failed Panic Check can be devastating.\n
\n
\n
\n
\n Select your modification:\n
\n `,\n buttons: [\n {\n label: `Relieve 1 Stress`,\n action: `relieve_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: `relieve_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: `relieve_1d5`,\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":"Um4q1dYwmu4QJ1nZ","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
\n
\n
\n
\n

Rest Save

\n You can relieve Stress by resting in a relatively safe place. If you succeed, reduce your Stress; if you fail, you gain 1 Stress instead. 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
\n
\n
\n `,\n buttons: [\n {\n label: `Next`,\n action: `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":"P26f3SuZTpjMeaoG","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
\n
\n
\n
\n

Save

\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. If you roll less than your Save you succeed. Otherwise you fail, and gain 1 Stress. 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
\n
\n
\n \n \n \n \n `,\n buttons: [\n {\n label: `Next`,\n action: `next`,\n callback: (html) => game.mosh.initRollCheck(null,'low',html.find(\"input[name='save']:checked\").val(),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":"Nj6wZcIYxunu7RI3","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
\n
\n
\n
\n

Stat Check

\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. If you roll less than your Stat you succeed. Otherwise, you fail and gain 1 Stress. 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
\n
\n
\n \n \n \n \n `,\n buttons: [\n {\n label: `Next`,\n action: `next`,\n callback: (html) => game.mosh.initRollCheck(null,'low',html.find(\"input[name='stat']:checked\").val(),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"}}