Skip to content

Commit

Permalink
Update Macros compendium
Browse files Browse the repository at this point in the history
  • Loading branch information
Forien committed May 17, 2024
1 parent 5515471 commit bbedbf2
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 1 deletion.
Binary file modified dist/packs/macros/000003.log
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/packs/macros/LOG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024/04/30-19:48:02.797 a100 Delete type=3 #1
2024/05/17-09:49:21.692 edc Delete type=3 #1
27 changes: 27 additions & 0 deletions src/packs/macros/Award_XP_to_Party_3HNUGUmqo6lVfdOS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Award XP to Party",
"type": "script",
"scope": "global",
"author": "rTgnwDbJCJYDenyf",
"img": "icons/magic/holy/barrier-shield-winged-blue.webp",
"command": "// set below to IDs of folders that contain actors for characters and companions.\n// only actors directly in that folder will be counted. Sub-folders are ignored.\nconst characterFolderId = \"R7s18IlEapZx8tF2\";\nconst companionFolderId = \"7aygzIdVgF005qSn\"; // optional, can leave empty\n\n// should Chat Message be generated? If so, define options:\nconst showMessage = true;\nconst messageFlavor = \"XP award!\";\nconst messageShowTotalXP = false;\n\n\nconst macros = game.modules.get(\"forien-armoury\")?.api.macros;\nawait macros.awardXP(this, {characterFolderId, companionFolderId, showMessage, messageFlavor, messageShowTotalXP});",
"folder": "rJKAafA2UXxZbP3p",
"ownership": {
"default": 0,
"rTgnwDbJCJYDenyf": 3
},
"flags": {
"core": {}
},
"_stats": {
"systemId": "wfrp4e",
"systemVersion": "7.1.5",
"coreVersion": "11.315",
"createdTime": 1715931769421,
"modifiedTime": 1715931991452,
"lastModifiedBy": "rTgnwDbJCJYDenyf"
},
"_id": "3HNUGUmqo6lVfdOS",
"sort": 0,
"_key": "!macros!3HNUGUmqo6lVfdOS"
}
27 changes: 27 additions & 0 deletions src/packs/macros/Cantrip_Macro_Template_hhLO0omAZLsg3oYj.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Cantrip Macro Template",
"type": "script",
"scope": "global",
"author": "rTgnwDbJCJYDenyf",
"img": "icons/magic/light/explosion-star-glow-blue.webp",
"command": "// Duplicate this Macro and edit its name and variables below with proper data\n// Name of Macro becomes name of Cant\nconst requiredSL = 1; // amount of SL that is spend to use this Cant\nconst lore = \"heavens\"; // lore this Cant is part of\nconst description = \"do the thing\"; // description of what Cant does\n\nconst macros = game.modules.get(\"forien-armoury\")?.api.macros;\nconst success = await macros.cantrip(this, {requiredSL, description, lore});\n\nif (success) {\n // if you want additional effects to run only if Cant was successfully used, put the code here\n}",
"folder": "K7bIr7HUorfHR7Xh",
"ownership": {
"default": 0,
"rTgnwDbJCJYDenyf": 3
},
"flags": {
"core": {}
},
"_stats": {
"systemId": "wfrp4e",
"systemVersion": "7.1.5",
"coreVersion": "11.315",
"createdTime": 1715644586645,
"modifiedTime": 1715928381795,
"lastModifiedBy": "rTgnwDbJCJYDenyf"
},
"_id": "hhLO0omAZLsg3oYj",
"sort": 0,
"_key": "!macros!hhLO0omAZLsg3oYj"
}
27 changes: 27 additions & 0 deletions src/packs/macros/Check_PC_Status_TF6lfOLw1wsldjz7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Check PC Status",
"type": "script",
"scope": "global",
"author": "rTgnwDbJCJYDenyf",
"img": "icons/magic/holy/meditation-chi-focus-blue.webp",
"command": "// populate array below with IDs of FOLDERS that hold your characters\nconst actorsFolderIds = [\"R7s18IlEapZx8tF2\"];\n\n\nconst macros = game.modules.get(\"forien-armoury\")?.api.macros;\nawait macros.checkStatuses(this, {actorsFolderIds});",
"folder": "rJKAafA2UXxZbP3p",
"ownership": {
"default": 0,
"rTgnwDbJCJYDenyf": 3
},
"flags": {
"core": {}
},
"_stats": {
"systemId": "wfrp4e",
"systemVersion": "7.1.5",
"coreVersion": "11.315",
"createdTime": 1715930931724,
"modifiedTime": 1715931029794,
"lastModifiedBy": "rTgnwDbJCJYDenyf"
},
"_id": "TF6lfOLw1wsldjz7",
"sort": 0,
"_key": "!macros!TF6lfOLw1wsldjz7"
}
27 changes: 27 additions & 0 deletions src/packs/macros/Make_Extended_Lockpick_Test_7xDw29sVem5hIdkm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Make Extended Lockpick Test",
"type": "script",
"scope": "global",
"author": "rTgnwDbJCJYDenyf",
"img": "icons/skills/trades/security-lockpicking-chest-blue.webp",
"command": "// set default values for Extended Test below\nconst name = \"Extended Pick Lock Test\";\nconst nameShowSL = false;\nconst nameShowDifficulty = true;\nconst img = \"icons/skills/trades/security-lockpicking-chest-blue.webp\";\nconst skill = game.i18n.localize(\"NAME.PickLock\");\nconst onCompletion = \"remove\"; // can be one of: \"none\", \"remove\", \"reset\"\nconst failureDecreasesSL = true;\nconst hideTest = false;\nconst hideProgress = true;\n\n\nconst macros = game.modules.get(\"forien-armoury\")?.api.macros;\nawait macros.lockpickTest(this, {name, nameShowSL, nameShowDifficulty, img, skill, onCompletion, failureDecreasesSL, hideTest, hideProgress});",
"folder": "K7bIr7HUorfHR7Xh",
"ownership": {
"default": 0,
"rTgnwDbJCJYDenyf": 3
},
"flags": {
"core": {}
},
"_stats": {
"systemId": "wfrp4e",
"systemVersion": "7.1.5",
"coreVersion": "11.315",
"createdTime": 1715929806552,
"modifiedTime": 1715930163758,
"lastModifiedBy": "rTgnwDbJCJYDenyf"
},
"_id": "7xDw29sVem5hIdkm",
"sort": 0,
"_key": "!macros!7xDw29sVem5hIdkm"
}

0 comments on commit bbedbf2

Please sign in to comment.