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

Automate damage calculation and application

I'm starting a new campaign with some friends who are new to D&D, and I'd like to make their lives as easy as possible. Is there a mod that allows me to automate combat as much as possible? Thanks in advance, bye everyone!
Just confirming: are you playing D&D 5th Edition? Are you using the 5E 2014 ruleset, or the 5.5E 2024 ruleset?  Which character sheet is selected for the game? There are over 10 for D&D 5th Edition alone. If you're not sure, please post a screenshot. What do you want to do specifically with combat to automate it?  Are you already using any Mod scripts?  Your answers to these questions will greatly narrow down the responses that you get. Regardless of which game you are playing and which character sheet you are using, TokenMod is a script that is helpful for just about any game you want to play on Roll20. If you're using the Turn Tracker, then GroupInitiative is likely a script that will be helpful, but it depends on which character sheet you are using.  ScriptCards and Metascripts can do almost anything you can think of, but they have a huge learning curve to get their syntax down. But you can also easily get help on the forums using either one. Otherwise there are hundreds of scripts and scriptlets, many of them in the Mod Script Library, and many others that are just posted here in the forums. 
Hi, I'm playing D&D 5e 2014. I'm no expert on mods, so I'm trying to figure out which ones might be useful. I installed TokenMod this evening. I would have liked to find something "plug and play," something not too difficult to configure, that would allow me to make both character and NPC tokens take damage
1773185532

Edited 1773185699
Gauss
Forum Champion
Hi Goblin,  Still need to know which character sheet you are using. There are well over a dozen D&D 5e 2014 related character sheets.  Also, which bar is HP, which bar is Temp HP (if any) in your game?
This is my character sheets
1773186578
Gauss
Forum Champion
Thanks, that is the D&D 5e 2014 by Roll20 character sheet.  Still need to know which bars are which on your tokens. 
Hi! Thanks for the replies, sorry I'm not very knowledgeable about Rolls-20, I hope this is the information you asked for. The 28 are the hp, the 18 are the ac.
1773187715

Edited 1773187791
Gauss
Forum Champion
That is what I needed. What are your players using for temporary HP? The red bubble? Also, are you moving all your NPC's hitpoints from the green (center) bubble to the blue (righthand) bubble? (Normal setup is center = hp, right = AC)
they don't actually use it, but I guess I could have them use the red bubble
1773188159
Gauss
Forum Champion
Please answer the NPC question. :)
1773188381
Gauss
Forum Champion
For the person taking the damage (player or GM), the first option would be to use a damage macro: !token-mod {{ --set bar3_value|[[{[[0@{selected|bar3}-?{Damage amount?}]],0}kh1]] --set bar2_value|[[{[[0@{selected|bar2}-{[[?{Damage amount?}-0@{selected|bar3}]],0}kh1]],0}kh1]] }} /w GM {{{ @{selected|token_name} is applying [[?{Damage amount?}]] damage to change: Temp HP from [[0@{selected|bar3}]] to [[{[[0@{selected|bar3}-?{Damage amount?}]],0}kh1]]  HP from [[0@{selected|bar2}]] to [[{[[0@{selected|bar2}-{[[?{Damage amount?}-0@{selected|bar3}]],0}kh1]],0}kh1]]}}} This is not automated. Also bar 3 (red bubble) needs to be linked to temporary HP and have a number (such as 0) in it.  For an automated solution it will take more work. But I will still need the NPC question answered. 
I can change the bubbles and values ​​as you suggested
1773188730

Edited 1773188774
Gauss
Forum Champion
Looking it over, the automated option may not be feasible using TokenMod. It might require a full API Script option.&nbsp; The reason being the damage in the 2014 sheet is in multiple places, so they would have to be summed. Additionally in the case of a critical they damage output changes.&nbsp; There is another "button" option provided by Nick Olivo here:&nbsp; <a href="https://www.youtube.com/watch?v=PAbL1Ft2i78" rel="nofollow">https://www.youtube.com/watch?v=PAbL1Ft2i78</a> It automates the damage entry a bit more than my simpler button option. But it still requires pushing the button to deal the damage.
I'll try it. It looks great from the video! Thanks for your patience and help. I'll keep you posted!
1773225412

Edited 1773226161
Hi Goblin - we use Scriptcards API for pretty much everything (5e, same sheet) - if you go down that route you can setup a macro in game for the author's 5e Character Action Menu, which basically reproduces the character sheet in the chat window and, as long as it is configured to do damage (not everyone wants it automated), will auto apply damage after checking resistances and immunities etc. The Scriptcards Discord is also massively helpful if you get stuck.&nbsp; I have Scripts for all sorts of weird and wonderful tricks in game, but at its basic level, install Scriptcards then copy the 5e Action Menu from the author's github, slap it in your game and away you all go
Gauss thanks, this works! There's a small problem, it only works with the card I showed. If I use a different card, namely "D&amp;D 5e (New!) - 2024 / 2014," it always shows me an error message: "Fatal Error - autoButtons exiting... autoButtons: requires TokenMod and MathOps," except that I have both installed. Is there a way to fix this, or do I have to resign myself to using the other card? I wanted to go with this one because it looks more graphically appealing, but if I have to give up so many features, I'd prefer to use the classic one... Thanks in advance! Simon G. Thanks to you too, I'll try and let you know :)
1773275770
Gauss
Forum Champion
When you say "card" do you mean "Character Sheet"?&nbsp; If so the D&amp;D 5e 2024 by Roll20 (aka 2024/2014) character sheet may not be compatible with some scripts.&nbsp;