Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Downtime Manager

Downtime Manager API script for AD&D 1e that turns downtime into a structured, button-driven workflow for players and the DM. It reads character-sheet data for class, level, XP, movement, hit points, coin, and related attributes; manages Greyhawk calendar time; deducts costs from character coins; tracks active downtime projects; resolves queued work when days advance; and separates player-facing status from GM-only details where needed. I have followed the rules as closely as possible from the source books. I needed to make some minor adjustments to make this work. Please check it out and give me some feedback about any bugs.  Feature list Character-sheet integration Reads class, level, XP, XP-next, race, movement, HP, Constitution, hit point bonus, gp, sp, and cp. Supports multiclass class slots. Deducts and adds coin directly from sheet attributes. Applies XP awards to the correct class slots. Greyhawk calendar Tracks Greyhawk date, month, year, absolute day count, and moon phase. Allows the DM to set the date and advance days. Resolves timers, journeys, training, research, potion work, scroll work, holy water projects, and queued skill training when time advances. Level advancement Checks XP thresholds from built-in class XP tables. Supports trainer search, travel to trainer, training, and return travel. Handles training costs, monthly maintenance, travel distance, travel time, and possible travel encounters. Supports self-training when allowed by the level/training rules. Includes special handling for bard advancement. Trainer system Generates and tracks trainers. Stores trainer offers with expiration. Tracks known trainers. Supports accepted skill trainers with direct Use Trainer workflow. Enforces the current skill-trainer minimum of 50 gp/month , while preserving higher trainer rates. Nonweapon proficiency / skill system- house rules from 2e skills list Adds skills by category. Tracks learned skills and in-progress skill training. Supports trainer-required and self-study skills. Tracks effective progress days. Charges prorated trainer costs. Provides a Description button for every skill. Each skill description includes player-facing training details: available class group, check, training requirement, self-study rule, training time, trainer cost, and complete skill description. Rest and recovery Shows current HP, max HP, Constitution, and healing adjustment. Applies rest-based HP recovery. Includes healing rules for first week, later weeks, and four-week full recovery. Rumor checks Lets players spend downtime days gathering rumors. Rolls weekly rumor chances using reaction bonus. Queues results for GM handling. Includes GM-side rumor reports and deletion tools. Carousing Offers multiple carousing spending levels. Deducts the chosen cost up front. Resolves carousing after the required time. Awards XP to the sheet. Handles extra outcomes such as fines, wealth loss, coin gain, contacts, enemies, hooks, and complications. Holy water Supports holy water production workflow. Tracks basin and font construction. Tracks vial purchases/removal. Tracks holy water batch creation and completion. Uses calendar advancement to complete pending holy water projects. Potion work Checks eligibility for magic-user potion work. Supports laboratory creation with cost, upkeep, remoteness, and distance modifiers. Tracks whether an alchemist is hired. Includes potion ingredient list and custom potion creation. Deducts potion costs and resolves brewing completion when time advances. Scroll scribing Checks scroll eligibility for clerics, druids, magic-users, and illusionists of sufficient level. Tracks papyrus, parchment, vellum, ink components, ink charges, and special quills. Calculates scroll capacity. Handles paper type, ritual confirmation, spell level, preparation time, and failure chance. Completes scroll projects through calendar advancement. Spell research Supports cleric/druid and magic-user/illusionist research paths. Handles spell name, spell level, research location, lab/shrine availability, library availability, research spending, travel distance, and planned research time. Calculates success chance from ability score, caster level, spell level, location modifier, and extra spending. Keeps the player result as “Pending” while giving the DM the secret outcome. Supports additional paid research time if no success occurs. Magic item fabrication Adds a Fabricate Magic Items section. Includes separate rule sections for Overview, Magic-User, Cleric/Druid, and Illusionist fabrication. Covers enchant-an-item style fabrication, clerical/druidic divine empowerment, illusionist item creation, permanent dweomers, charged items, and required recovery after item creation. Timers Supports personal timers. Supports world timers. Fires timers automatically when calendar time advances. Can whisper personal timer results or post world events publicly. DM tools DM menu. Set date. Advance days. Resolve and delete carousing reports. Resolve, cancel, or delete retainer due actions. Delete rumor reports. Check disease and travel encounters. Receive GM-only reports for rumor results, carousing outcomes, spell research results, travel encounters, and project completions. Roll20 UI helpers Button-driven menus. Player Menu and Back buttons. Player-facing pages and GM whispers. Styled black-box Roll20 chat output. Escaped HTML/button commands to reduce Roll20 chat formatting breakage.
<a href="https://github.com/earmarkaudiology-png/Downtime/blob/main/!downtime" rel="nofollow">https://github.com/earmarkaudiology-png/Downtime/blob/main/!downtime</a> You will need to use the retainer API with this.&nbsp; <a href="https://github.com/earmarkaudiology-png/Retainers-1e-/blob/main/Ver%202" rel="nofollow">https://github.com/earmarkaudiology-png/Retainers-1e-/blob/main/Ver%202</a>
Example of Skills&nbsp;&nbsp; NONWEAPON PROFICIENCY SKILL TRAINING HANDOUT AD&amp;D 1e Downtime Manager AGRICULTURE Available To: General Check: Intelligence 0 Training Requirement: Trainer required Self-Study: No Training Time: 180 days (6 months) effective progress Trainer Cost: 50 gp/month standard minimum rate; charged prorated by onsite training days. Description: The character has a knowledge of the basics of farming. This includes planting, harvesting, storing crops, tending animals, butchering, and other typical farming chores. ANCIENT HISTORY Available To: Cleric, Magic User/Illusionist Check: Intelligence -1 Training Requirement: Self-study allowed; trainer optional Self-Study: Yes (no coin cost; effective progress is half the downtime spent) Training Time: 240 days (8 months) effective progress Trainer Cost: 50 gp/month standard minimum rate; charged prorated by onsite training days. Description: The character has learned the legends, lore, and history of some ancient time and place. The knowledge must be specific, just as a historian would specialize today in the English Middle Ages, the Italian Renaissance, or the Roman Republic before Caesar. (The DM either can have ancient periods in mind for his game or can allow the players to name and designate them.) Thus, a player character could know details about the Age of Thorac Dragonking or the Time of the Sea-Raiders or whatever else was available. The knowledge acquired gives the character familiarity with the principal legends, historical events, characters, locations, battles, breakthroughs (scientific, cultural, and magical), unsolved mysteries, crafts, and oddities of the time. The character must roll a proficiency check to identify places or things he encounters from that age. For example, Rath knows quite a bit about the Coming of the Trolls, a particularly dark period of dwarven history. Moving through some deep caverns, he and his companions stumble across an ancient portal, sealed for untold ages. Studying the handiwork, he realizes (rolls a successful proficiency check) that it bears several seals similar to those he has seen on "banned" portals from the time of Angnar, doorways to the legendary realm of Trolhel.