From 7451544b90b1721658a3c617b0983f5eafa920f6 Mon Sep 17 00:00:00 2001 From: boli32 Date: Wed, 15 Jan 2025 09:02:38 +0000 Subject: [PATCH 1/5] Made corrections to the readme, to... well it make more readable --- CalenderData/script.json | 2 +- QuestTracker/script.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CalenderData/script.json b/CalenderData/script.json index 50d08929df..a178c49bfb 100644 --- a/CalenderData/script.json +++ b/CalenderData/script.json @@ -3,7 +3,7 @@ "script": "CalenderData.js", "version": "1.0", "previousversions": [], - "description": "This is a script which doesnt do anything by itself, but defines the following state variables, which are used by other programs, specifically QuestTracker. state.CalenderData.CALENDARS & state.CalenderData.WEATHER.", + "description": "This is a script which doesnt do anything by itself, but defines the following state variables, which are used by other programs, specifically **QuestTracker**. \r\r Yes, I am fully aware I have spelt 'Calendar' wrong; but it's too late to change this.\r\r## More Information?\r [See the README](https://github.com/Roll20/roll20-api-scripts/blob/master/QuestTracker/README.md) \r ## Contributing \r Contributions are welcome! Please submit pull requests or report issues on the GitHub repository: [GitHub Repository](https://github.com/Roll20/roll20-api-scripts/issues)", "authors": "Boli", "roll20userid": "3714078", "useroptions": [], diff --git a/QuestTracker/script.json b/QuestTracker/script.json index 25bb593685..1270d8acf4 100644 --- a/QuestTracker/script.json +++ b/QuestTracker/script.json @@ -3,7 +3,7 @@ "script": "QuestTracker.js", "version": "1.0", "previousversions": [], - "description": "# Quest Tracker Quest Tracker is a comprehensive tool for managing quests, rumors, and events in a tabletop RPG setting. It integrates seamlessly with Roll20 to provide detailed tracking and visualization of game elements, making it ideal for GMs and players who want to streamline their campaigns. ### Features - **Quest Management:** - Create, edit, and remove quests. - Track quest statuses (e.g., \"Started\", \"Completed\", \"Failed\"). - Group quests into logical categories. - **Rumor Handling:** - Add and manage rumors by location or quest. - Generate rumors dynamically. - Associate rumors with quest progression. - **Event Scheduling:** - Schedule events with repeatable options. - Adjust events based on in-game calendars. - **Weather and Climate Integration:** - Dynamic weather generation based on in-game conditions. - Detailed descriptions of current weather conditions. - **Calender Integration:** - Track Leap years - Different Calander types, e.g. Harpto, Gregorian etc. - **Visual Quest Tree:** - Display quests and relationships as a tree diagram. - Automatically handle mutually exclusive relationships. ### Getting Started - Access all features through an intuitive graphical user interface. simply type **!qt** into chat. - Navigate through menus to manage quests, rumors, and events seamlessly. ## More Information? [See the README](https://github.com/Roll20/roll20-api-scripts/blob/master/QuestTracker/README.md) ## Contributing Contributions are welcome! Please submit pull requests or report issues on the GitHub repository: [GitHub Repository](https://github.com/boli32/QuestTracker) ## Credits - **Author:** Steven Wrighton (Boli) - **Contact:** [Roll20 Profile](https://app.roll20.net/users/3714078/boli) - **License:** MIT", + "description": "# Quest Tracker\r Quest Tracker is a comprehensive tool for managing quests, rumors, and events in a tabletop RPG setting. It integrates seamlessly with Roll20 to provide detailed tracking and visualization of game elements, making it ideal for GMs and players who want to streamline their campaigns.\r\r ## Features\r\r ### Quest Management \r * Create, edit, and remove quests.\r * Track quest statuses (e.g., \"Started\", \"Completed\", \"Failed\").\r * Group quests into logical categories.\r\r ### Rumor Handling \r * Add and manage rumors by location or quest.\r * Generate rumors dynamically.\r * Associate rumors with quest progression.\r\r ### Event Scheduling:**\r * Schedule events with repeatable options.\r * Adjust events based on in-game calendars.\r\r ### Weather and Climate Integration:**\r * Dynamic weather generation based on in-game conditions.\r * Detailed descriptions of current weather conditions.\r\r ### Calender Integration:**\r * Track Leap years\r * Different Calander types, e.g. Harpto, Gregorian etc.\r\r ### Visual Quest Tree:**\r * Display quests and relationships as a tree diagram.\r * Automatically handle mutually exclusive relationships.\r\r ## Getting Started - Access all features through an intuitive graphical user interface. simply type `!qt` into chat. Navigate through menus to manage quests, rumors, and events seamlessly. \r\r ## More Information?\r [See the README](https://github.com/Roll20/roll20-api-scripts/blob/master/QuestTracker/README.md) \r ## Contributing \r Contributions are welcome! Please submit pull requests or report issues on the GitHub repository: [GitHub Repository](https://github.com/Roll20/roll20-api-scripts/issues)\r", "authors": "Boli", "roll20userid": "3714078", "useroptions": [], From 89b28d22d8bb03768788b840623bd284a4b21ad4 Mon Sep 17 00:00:00 2001 From: boli32 Date: Wed, 15 Jan 2025 09:24:40 +0000 Subject: [PATCH 2/5] Fix for Wildshape --- WildShape/1.4.3/WildShape.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WildShape/1.4.3/WildShape.js b/WildShape/1.4.3/WildShape.js index d2a6008f8a..cff13d5d3a 100644 --- a/WildShape/1.4.3/WildShape.js +++ b/WildShape/1.4.3/WildShape.js @@ -2366,7 +2366,7 @@ var WildShape = WildShape || (function() { log(WS_API.NAME + ' v' + WS_API.VERSION + " Ready! WildUtils v" + UTILS.VERSION); // Chat message only appears on debug mode. - UTILS.debugChat("API v" + WS_API.VERSION + " Ready! command: " + WS_API.CMD.ROOT + UTILS.debugChat("API v" + WS_API.VERSION + " Ready! command: " + WS_API.CMD.ROOT); } return { From 1e7cfcb4b966553c48fa903cee7b436425c99002 Mon Sep 17 00:00:00 2001 From: boli32 Date: Thu, 16 Jan 2025 12:10:35 +0000 Subject: [PATCH 3/5] Fix for adding Relationships --- QuestTracker/1.0/QuestTracker.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QuestTracker/1.0/QuestTracker.js b/QuestTracker/1.0/QuestTracker.js index eb50dfdc0d..0bbf425c22 100644 --- a/QuestTracker/1.0/QuestTracker.js +++ b/QuestTracker/1.0/QuestTracker.js @@ -3196,7 +3196,7 @@ var QuestTracker = QuestTracker || (function () { ${H.getQuestName(condition)} - c + c - @@ -3209,7 +3209,7 @@ var QuestTracker = QuestTracker || (function () { Add Relationship - <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=group|groupnum=${currentGroupNum}|quest=?{Choose Quest|${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ + <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=group|groupnum=${currentGroupNum}|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ ` : ''} @@ -3219,7 +3219,7 @@ var QuestTracker = QuestTracker || (function () { Add Relationship - <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=?{Choose Quest|${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ + <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ ` : ''} @@ -3235,7 +3235,7 @@ var QuestTracker = QuestTracker || (function () { Add Relationship - <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=?{Choose Quest|${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ + <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ `; } From 693b5d8eddd1624310dab67db867e681f9cf132f Mon Sep 17 00:00:00 2001 From: boli32 Date: Thu, 16 Jan 2025 12:30:46 +0000 Subject: [PATCH 4/5] removed erroring } which was present in some relationship iterations. --- QuestTracker/1.0/QuestTracker.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/QuestTracker/1.0/QuestTracker.js b/QuestTracker/1.0/QuestTracker.js index 0bbf425c22..b300ce7af5 100644 --- a/QuestTracker/1.0/QuestTracker.js +++ b/QuestTracker/1.0/QuestTracker.js @@ -3196,7 +3196,7 @@ var QuestTracker = QuestTracker || (function () { ${H.getQuestName(condition)} - c + c - @@ -3209,7 +3209,7 @@ var QuestTracker = QuestTracker || (function () { Add Relationship - <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=group|groupnum=${currentGroupNum}|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ + <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=group|groupnum=${currentGroupNum}|quest=${H.buildDropdownString(questId)}" style="${renderButtonStyle} ${styles.smallButton}">+ ` : ''} @@ -3219,7 +3219,7 @@ var QuestTracker = QuestTracker || (function () { Add Relationship - <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ + <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}" style="${renderButtonStyle} ${styles.smallButton}">+ ` : ''} @@ -3235,7 +3235,7 @@ var QuestTracker = QuestTracker || (function () { Add Relationship - <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ + <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}" style="${renderButtonStyle} ${styles.smallButton}">+ `; } @@ -3270,7 +3270,7 @@ var QuestTracker = QuestTracker || (function () { } }, getQuestName: (questId) => { - return QUEST_TRACKER_globalQuestData[questId]?.name || 'Unnamed Quest'; + return QUEST_TRACKER_globalQuestData[questId]?.name.replace(/[{}|&?]/g, '') || 'Unnamed Quest'; }, relationshipMenu: (questId) => { const quest = QUEST_TRACKER_globalQuestData[questId]; @@ -4480,6 +4480,7 @@ var QuestTracker = QuestTracker || (function () { switch (action) { case 'add': if (errorCheck(65, 'exists', quest,'quest')) return; + log(quest) if (errorCheck(66, 'exists', QUEST_TRACKER_globalQuestData[quest],`QUEST_TRACKER_globalQuestData[${quest}]`)) return; switch (type) { case 'mutuallyexclusive': From e8403ccd3edfc22b6b2eadffae3d5de0a21b8700 Mon Sep 17 00:00:00 2001 From: boli32 Date: Thu, 16 Jan 2025 12:32:00 +0000 Subject: [PATCH 5/5] removed debugging log() --- QuestTracker/1.0/QuestTracker.js | 1 - 1 file changed, 1 deletion(-) diff --git a/QuestTracker/1.0/QuestTracker.js b/QuestTracker/1.0/QuestTracker.js index b300ce7af5..45a95efaa7 100644 --- a/QuestTracker/1.0/QuestTracker.js +++ b/QuestTracker/1.0/QuestTracker.js @@ -4480,7 +4480,6 @@ var QuestTracker = QuestTracker || (function () { switch (action) { case 'add': if (errorCheck(65, 'exists', quest,'quest')) return; - log(quest) if (errorCheck(66, 'exists', QUEST_TRACKER_globalQuestData[quest],`QUEST_TRACKER_globalQuestData[${quest}]`)) return; switch (type) { case 'mutuallyexclusive':