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

Help with a TokenMod macro that lets me...

Select any number of tokens (for AOE situations), click a macro button and allow me to input the value to subtract (for damage) or add (for healing) from said tokens. I'm sorry if there is already a macro that performs this (I used google-fu and didn't really see anything). :( Thank you in advance!
1745981899
timmaugh
Forum Champion
API Scripter
TokenMod already (by default) affects selected tokens, so that part is already taken care of. Before getting to the specifics of the command line, however, we'd need to know which bar you use to link to the "health" attribute (you haven't told us what system you're playing, so I'm having to speak generally). TokenMod can only affect tokens; it has a small tendril of character alteration only through bars linked to character attributes... so if you don't have your "health" attribute linked to a bar, TokenMod won't be able to help you. For that, you'd need something like ChatSetAttr. Although, there is another script called SmartAoE which can create areas in shapes drawn on the map, detect which tokens are in that shape, and then apply damage. I know the author, David M., is nearly done with patching that script for Jumpgate, but if you're interested in the possibilities I'd encourage you to look up that script.
Thank you so much. :) I asked because I saw a !Tokenmod command that Aaron had made that was effective but required me to open up the macro tab in order to edit the macro's damage value. Being able to just click the macro, get a prompt to input a numerical value to apply would be a lifesaver! I'll check out SmartAOE.