recombine stress, stress_0e, calm back together
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
prepModifyActor('system.other.calm.max',null,'-1d10',true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
//determine who to run the macro for
|
||||
if (game.settings.get('mosh','macroTarget') === 'character') {
|
||||
//run the function for the player's 'Selected Character'
|
||||
game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
} else if (game.settings.get('mosh','macroTarget') === 'token') {
|
||||
//run the function for all selected tokens
|
||||
canvas.tokens.controlled.forEach(function(token){
|
||||
token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
prepModifyActor('system.other.stress.value',2,null,true);
|
||||
prepModifyActor('system.other.stress.max',null,'-1d10',true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
@@ -1,15 +0,0 @@
|
||||
prepModifyActor('system.other.calm.value',null,'-1d5',true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
//determine who to run the macro for
|
||||
if (game.settings.get('mosh','macroTarget') === 'character') {
|
||||
//run the function for the player's 'Selected Character'
|
||||
game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
} else if (game.settings.get('mosh','macroTarget') === 'token') {
|
||||
//run the function for all selected tokens
|
||||
canvas.tokens.controlled.forEach(function(token){
|
||||
token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
prepModifyActor('system.other.calm.max',-2,null,true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
//determine who to run the macro for
|
||||
if (game.settings.get('mosh','macroTarget') === 'character') {
|
||||
//run the function for the player's 'Selected Character'
|
||||
game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
} else if (game.settings.get('mosh','macroTarget') === 'token') {
|
||||
//run the function for all selected tokens
|
||||
canvas.tokens.controlled.forEach(function(token){
|
||||
token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
prepModifyActor('system.other.calm.max',-2,null,true);
|
||||
prepModifyActor('system.other.stress.max',-2,null,true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
@@ -1,15 +0,0 @@
|
||||
prepModifyActor('system.other.calm.value',-1,null,true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
//determine who to run the macro for
|
||||
if (game.settings.get('mosh','macroTarget') === 'character') {
|
||||
//run the function for the player's 'Selected Character'
|
||||
game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
} else if (game.settings.get('mosh','macroTarget') === 'token') {
|
||||
//run the function for all selected tokens
|
||||
canvas.tokens.controlled.forEach(function(token){
|
||||
token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
prepModifyActor('system.other.calm.value',null,'-1d10',true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
//determine who to run the macro for
|
||||
if (game.settings.get('mosh','macroTarget') === 'character') {
|
||||
//run the function for the player's 'Selected Character'
|
||||
game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
} else if (game.settings.get('mosh','macroTarget') === 'token') {
|
||||
//run the function for all selected tokens
|
||||
canvas.tokens.controlled.forEach(function(token){
|
||||
token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
prepModifyActor('system.other.calm.max',null,'-1d10',true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
//determine who to run the macro for
|
||||
if (game.settings.get('mosh','macroTarget') === 'character') {
|
||||
//run the function for the player's 'Selected Character'
|
||||
game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
} else if (game.settings.get('mosh','macroTarget') === 'token') {
|
||||
//run the function for all selected tokens
|
||||
canvas.tokens.controlled.forEach(function(token){
|
||||
token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
prepModifyActor('system.other.calm.value',null,'-1d10',true);
|
||||
prepModifyActor('system.other.stress.max',null,'-1d10',true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
@@ -1,15 +0,0 @@
|
||||
prepModifyActor('system.other.calm.value',null,'-1d5',true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
//determine who to run the macro for
|
||||
if (game.settings.get('mosh','macroTarget') === 'character') {
|
||||
//run the function for the player's 'Selected Character'
|
||||
game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
} else if (game.settings.get('mosh','macroTarget') === 'token') {
|
||||
//run the function for all selected tokens
|
||||
canvas.tokens.controlled.forEach(function(token){
|
||||
token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
prepModifyActor('system.other.calm.value',-1,null,true);
|
||||
prepModifyActor('system.other.stress.max',-2,null,true);
|
||||
|
||||
//tell the actor to run the function
|
||||
async function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {
|
||||
@@ -186,7 +186,7 @@ export class MothershipActor extends Actor {
|
||||
}
|
||||
},
|
||||
//stress flavor text (0e)
|
||||
stress_0e: {
|
||||
stress: {
|
||||
increase: {
|
||||
android: `Power surges through your chest and you start to overheat.`,
|
||||
human: `You feel tightness in your chest and start to sweat.`
|
||||
@@ -988,7 +988,7 @@ export class MothershipActor extends Actor {
|
||||
enrichedRollResult.dice.forEach(function(roll){
|
||||
//loop through each result
|
||||
roll.results.forEach(function(die) {
|
||||
//change any 10s to 0s
|
||||
//change any 100s to 0s
|
||||
if (die.result === 100) {die.result = 0;}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -88,8 +88,6 @@ Hooks.once('init', async function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
Hooks.once("ready", async function () {
|
||||
// Wait to register hotbar drop hook on ready so that modules could register earlier if they want to
|
||||
Hooks.on("hotbarDrop", (bar, data, slot) => createMothershipMacro(data, slot));
|
||||
|
||||
@@ -35,14 +35,14 @@
|
||||
{"_id":"BnQZTR7V7va8WRGO","name":"+1d5 Stress","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',null,'1d5',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"WEICDPMGI3waJ6PX","name":"+2 Stress","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',2,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"ZcqUtSMCGvERjQlG","name":"+3 Stress","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',3,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"dNX3ZDk42CcpTo1l","name":"-1 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.value',-1,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"dNX3ZDk42CcpTo1l","name":"-1 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',-1,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"4G0yEepSUvif6b6r","name":"-1d10 Body Save","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.stats.body.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"5jMEd9JjJPIJBKHr","name":"-1d10 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"5jMEd9JjJPIJBKHr","name":"-1d10 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"ZHLgJKrIG82SNbt8","name":"-1d10 Health","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.health.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"P1XjeNN1XswJ2nSC","name":"-1d10 Intellect","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.stats.intellect.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"FGraO3xTnChUfWGY","name":"-1d10 Maximum Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.max',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"M91INKwIL3rOZBcx","name":"-1d5 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.value',null,'-1d5',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"fRja0aFO5muR0q3H","name":"-2 Maximum Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.max',-2,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"FGraO3xTnChUfWGY","name":"-1d10 Maximum Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.max',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"M91INKwIL3rOZBcx","name":"-1d5 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',null,'-1d5',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"fRja0aFO5muR0q3H","name":"-2 Maximum Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.max',-2,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"qENogEcf1awpT98o","name":"-5 Intellect","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.stats.intellect.value',-5,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"VZPWorbauAExrYLZ","name":"-5 Speed","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.stats.speed.value',-5,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"k663ybRMCY3u0OXF","name":"-5 Strength","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.stats.strength.value',-5,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
|
||||
@@ -52,22 +52,22 @@
|
||||
{"_id":"Tx19z2BhTY6onldp","name":"+6 Bleeding","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyItem('pxtF1NfletmoFFGV',6);\n\n//tell the actor to run the function\nasync function prepModifyItem(itemName,addAmount) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyItem(itemName,addAmount);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyItem(itemName,addAmount);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"ZJaVFBB0Kslv1k4f","name":"+7 Bleeding","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyItem('pxtF1NfletmoFFGV',7);\n\n//tell the actor to run the function\nasync function prepModifyItem(itemName,addAmount) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyItem(itemName,addAmount);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyItem(itemName,addAmount);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"V1PPeCwryXNQAkUe","name":"-1 All Stats/Saves","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepRadiationDamage();\n\n//tell the actor to run the function\nasync function prepRadiationDamage() {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.takeRadiationDamage();\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.takeRadiationDamage();\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"FeLyHueck8h7fjYk","name":"-1 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.value',-1,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"FeLyHueck8h7fjYk","name":"-1 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',-1,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"vwpxRBbMwjfDCQVG","name":"-1 Health","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.health.value',-1,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"qD8Mvegkf3zVarFr","name":"-1 Maximum Wound","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.hits.max',-1,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"qbq694JMbXeZrHjj","name":"-1 Stress","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',-1,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"C9iTlPOpROuuYi2F","name":"-10 Health","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.health.value',-10,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"nT2AsZwrYhJyxizF","name":"-1d10 Body Save","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.stats.body.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"CLkqqMR1Cd3zguRN","name":"-1d10 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"CLkqqMR1Cd3zguRN","name":"-1d10 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"w3ttEaXP7yp25M5Q","name":"-1d10 Health","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.health.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"oYSjanH7BmmweIpp","name":"-1d10 Intellect","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.stats.intellect.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"J61Srent4vEthGAn","name":"-1d10 Maximum Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.max',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"J61Srent4vEthGAn","name":"-1d10 Maximum Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.max',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"V3L1iRkWwyTzCZK9","name":"-1d10 Strength","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.stats.strength.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"jHyqXb2yDFTNWxpy","name":"-1d10 Stress","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',null,'-1d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"0bpklH1cLqMWBC6P","name":"-1d5 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.value',null,'-1d5',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"0bpklH1cLqMWBC6P","name":"-1d5 Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',null,'-1d5',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"yYujq1tBZPqGrQlh","name":"-1d5 Maximum Health","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.health.max',null,'-1d5',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"AvKZE5IFubIaAIUy","name":"-1d5 Stress","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.value',null,'-1d5',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"eoGfi5JdPASUUJU4","name":"-2 Maximum Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.calm.max',-2,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"eoGfi5JdPASUUJU4","name":"-2 Maximum Calm","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.other.stress.max',-2,null,true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"ISd2nEMYvWCPQpl0","name":"-2d10 Body Save","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.stats.body.value',null,'-2d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"pS6A6OklvM6S3bvO","name":"-2d10 Health","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.health.value',null,'-2d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
{"_id":"nECUu4pcwsNTE8C5","name":"-3d10 Health","type":"script","scope":"global","img":"icons/svg/d10-grey.svg","command":"prepModifyActor('system.health.value',null,'-3d10',true);\n\n//tell the actor to run the function\nasync function prepModifyActor(fieldAddress,modValue,modRollString,outputChatMsg) {\n //determine who to run the macro for\n if (game.settings.get('mosh','macroTarget') === 'character') {\n //run the function for the player's 'Selected Character'\n game.user.character.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n } else if (game.settings.get('mosh','macroTarget') === 'token') {\n //run the function for all selected tokens\n canvas.tokens.controlled.forEach(function(token){\n token.actor.modifyActor(fieldAddress,modValue,modRollString,outputChatMsg);\n });\n }\n}","folder":null,"flags":{},"_stats":{"systemId":"mosh","systemVersion":"0.4.0","coreVersion":"11.308","createdTime":1685936572185,"modifiedTime":1693515520278,"lastModifiedBy":"6EeM38DJkcBWNAmw"}}
|
||||
|
||||
@@ -133,18 +133,6 @@
|
||||
"max": 20,
|
||||
"label" : "Stress"
|
||||
},
|
||||
"stress_0e": {
|
||||
"value": 2,
|
||||
"min": 2,
|
||||
"max": 999,
|
||||
"label" : "Stress"
|
||||
},
|
||||
"calm": {
|
||||
"value": 85,
|
||||
"min": 0,
|
||||
"max": 85,
|
||||
"label" : "Calm"
|
||||
},
|
||||
"stressdesc": {
|
||||
"value": ""
|
||||
}
|
||||
|
||||
@@ -112,49 +112,33 @@
|
||||
{{#if system.settings.useCalm}}
|
||||
<!-- Calm -->
|
||||
<div class="resource healthspread minmaxtopstat">
|
||||
<label for="system.other.calm.value" class="resource-label minmaxtext rollable calm-roll">Calm</label>
|
||||
<label for="system.other.stress.value" class="resource-label minmaxtext rollable calm-roll">Calm</label>
|
||||
|
||||
<div class="minmaxwrapper">
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.calm.value" value="{{system.other.calm.value}}"
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.stress.value" value="{{system.other.stress.value}}"
|
||||
data-dtype="Number" />
|
||||
<div class="slant"></div>
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.calm.max"
|
||||
value="{{system.other.calm.max}}" data-dtype="Number" />
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.stress.max"
|
||||
value="{{system.other.stress.max}}" data-dtype="Number" />
|
||||
</div>
|
||||
|
||||
<div class="healthmaxtext">Current</div>
|
||||
<div class="healthmaxtext">Maximum</div>
|
||||
</div>
|
||||
{{else}}
|
||||
{{#if system.settings.firstEdition}}
|
||||
<!-- Stress -->
|
||||
<div class="resource healthspread minmaxtopstat">
|
||||
<label for="system.other.stress.value" class="resource-label minmaxtext rollable stress-roll">Stress</label>
|
||||
<div class="minmaxwrapper">
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.stress.value" value="{{system.other.stress.value}}"
|
||||
data-dtype="Number" />
|
||||
<div class="slant"></div>
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.stress.min"
|
||||
value="{{system.other.stress.min}}" data-dtype="Number" />
|
||||
</div>
|
||||
<div class="healthmaxtext">Current</div>
|
||||
<div class="healthmaxtext">Minimum</div>
|
||||
<!-- Stress -->
|
||||
<div class="resource healthspread minmaxtopstat">
|
||||
<label for="system.other.stress.value" class="resource-label minmaxtext rollable stress-roll">Stress</label>
|
||||
<div class="minmaxwrapper">
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.stress.value" value="{{system.other.stress.value}}"
|
||||
data-dtype="Number" />
|
||||
<div class="slant"></div>
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.stress.min"
|
||||
value="{{system.other.stress.min}}" data-dtype="Number" />
|
||||
</div>
|
||||
{{else}}
|
||||
<!-- Stress -->
|
||||
<div class="resource healthspread minmaxtopstat">
|
||||
<label for="system.other.stress_0e.value" class="resource-label minmaxtext rollable stress-roll">Stress</label>
|
||||
<div class="minmaxwrapper">
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.stress_0e.value" value="{{system.other.stress_0e.value}}"
|
||||
data-dtype="Number" />
|
||||
<div class="slant"></div>
|
||||
<input class="maxhealth-input darkGreyText" type="text" name="system.other.stress_0e.min"
|
||||
value="{{system.other.stress_0e.min}}" data-dtype="Number" />
|
||||
</div>
|
||||
<div class="healthmaxtext">Current</div>
|
||||
<div class="healthmaxtext">Minimum</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="healthmaxtext">Current</div>
|
||||
<div class="healthmaxtext">Minimum</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if system.settings.firstEdition}}
|
||||
|
||||
Reference in New Issue
Block a user