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.