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 .
×

[Script] TaskAutomation

A new mod to help automate your game without JavaScript: describe a task as data and let it run on time, on an event or at the press of a button, even across API restarts. This mod's creation was inspired by post like: <a href="https://app.roll20.net/forum/post/12842933/auto-change-multi-sided-token-side-on-a-timer/" rel="nofollow">https://app.roll20.net/forum/post/12842933/auto-change-multi-sided-token-side-on-a-timer/</a> You can download it directly from GitHub: <a href="https://github.com/steverobertsuk/roll20-api-scripts/releases/download/TaskAutomation-v1.0.0/TaskAutomation_v1.0.0.zip" rel="nofollow">https://github.com/steverobertsuk/roll20-api-scripts/releases/download/TaskAutomation-v1.0.0/TaskAutomation_v1.0.0.zip</a> Detailed info on updates can be found on my website: <a href="https://midniteshadow.online/projects/roll20-mods/taskautomation/" rel="nofollow">https://midniteshadow.online/projects/roll20-mods/taskautomation/</a> The new mod should hopefully reach the One-Click Installer in early November. 1.0.0 - 2026-10-29 Initial release. Automate your game without JavaScript: describe a task as data and let it run on time, on an event or at the press of a button, even across API restarts. Added Tasks described as validated JSON, with drafts, numbered published revisions, import/export (including in parts), cloning, archiving and permanent deletion with a confirmation. Runs keep the revision they started with. Steps: waits for a duration or until a time, waits for events with a timeout, conditions, counted, while , until and GM-approved forever loops, calls to other tasks (awaited or detached), parallel branches joined by all , anySuccess or race with explicit merge rules, variables, signals and stop . Actions: chat (say, emote, describe, whisper, GM commands), token properties, multi-sided token sides, status markers (with counters), attributes (set, adjust, read; optional sheet workers), pings, visual effects, jukebox play/stop/volume, starting, pausing and cancelling other runs, commands to other Mods and trusted Mod adapters. Triggers: buttons and commands, one-off times, fixed-rate and fixed-delay intervals, daily and weekly times at a fixed UTC offset, token, attribute, turn order, turn tracker, player page and player presence events, task lifecycle events, signals and opt-in chat, with cooldown, debounce, burst caps and per-object coalescing. One timer for all work, with bounded draining; an idle game has no timer. Restart recovery: runs carry on from their saved step, interrupted actions are confirmed or sent for review instead of being repeated, observation gaps are recorded, and one summary is whispered. Missed-work handling with skip , runOnce , catchUpBounded , review and expire , counted without replaying every missed time, and incidents with previews and single-use confirmations. Concurrency policies ( allow , skipIfRunning , queue , replace ), a circuit breaker, ancestry limits and an emergency stop. A GM-only dashboard handout with pause, resume, cancel, decision and recovery buttons; an optional player view; a GM-only Help handout. GM-only by default; tasks can be shared with listed players, who can only use them on tokens they control. TaskAutomation.registerAdapter , registerAction , registerTrigger , emit , signal and start for other Mods, with a reference adapter. Seven worked examples plus the montage as templates and JSON files, a JSON Schema, and guides for authoring, operations and adapters.
How-To Video You can watch the How-To video here: <a href="https://youtu.be/r7tlp_5gpHc" rel="nofollow">https://youtu.be/r7tlp_5gpHc</a> In this video: • What it does: someone types Charge! in chat, and the goblin lookout flashes with fire, gets a red marker and is pinged, all on its own • Getting started: the !taskautomation menu and its status, and the Dashboard handout in the Journal • Templates: ready-made worked examples, such as marking a token dead and telling the GM when it drops to zero hit points • Your own task: how a task is written as JSON, importing it, Show, and exporting it to chat or a GM-only handout • Dry runs, starting a run on the selected token, and the list of runs • Triggers: a phrase in chat, signals from macros or other tasks, and schedules on a timer • Safety: Stop all, and reports of every run and every change a task made Chapters: 0:00 Intro 0:19 TaskAutomation 0:27 What Does It Do? 0:53 Getting Started 1:46 Templates 2:21 Your Own Task 4:00 Triggers 4:46 Safety 5:05 More
The Roll20 wiki now has a page for TaskAutomation 1.0.0: <a href="https://wiki.roll20.net/Script:TaskAutomation" rel="nofollow">https://wiki.roll20.net/Script:TaskAutomation</a> It covers tasks, triggers, schedules, worked examples, every command, and links to the full authoring guides.