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 .
×
Create a free account

[SCRIPT] tokenmod, deathtracker, auto attack damage?

I realize this is likely asking for the moon, but is there a script that works with Token Mod and Death Tracker that automatically rolls attacks vs target AC, evaluates success, applies damage on a hit, and automatically deducts results from Bar3, but only reduces  to 0 so deathtracker can trigger? Cause that would be awesome.
1603647394

Edited 1603647421
The Aaron
Roll20 Production Team
API Scripter
That's a thing that could certainly be written, but would require quite a bit of orchestration and cooperation between scripts. 
I know Dylan H has this script, which works great with OGL, but somehow the result does not trigger DeathTracker: <a href="https://app.roll20.net/forum/post/8469386/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/8469386/slug%7D</a> If it could be possible to replace the die roll prompts with sheet data reference, it should make a one-button attack resolve script. If only I knew how to write API, I would give it a shot.&nbsp;
Alright, Aaron.&nbsp; I also found this oldie from Sky:&nbsp; <a href="https://app.roll20.net/forum/post/4810051/mostly-cause-i-was-bored-dot-dot-dot-auto-damage-script-for-single-target-attacks-5e-ogl" rel="nofollow">https://app.roll20.net/forum/post/4810051/mostly-cause-i-was-bored-dot-dot-dot-auto-damage-script-for-single-target-attacks-5e-ogl</a> Unfortunately, it is a little broken, and keeps killing my sandbox and throwing this error:&nbsp; TypeError: Cannot read property '0' of null TypeError: Cannot read property '0' of null at apiscript.js:28382:73 Since I know you have nothing better to do, could you walk me through how to address this? Or is it even worth pursuing?