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

Macro to roll multiple smaller macros at once

Ok so I was wondering if there is a way to take a macro i roll multiple times (specifically for ability scores) and condense it so it's not as long. For example I want shorten: [[2d6+6]][[2d6+6]][[2d6+6]][[2d6+6]][[2d6+6]][[2d6+6]] so I type something much smaller and it does the same thing. I'm aware of copy paste but that's not the point :P
1551146308
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Not sure what the problem is. Are you typing that each time instead of putting it into a macro? For example, if you put that into a macro on the collections tab called "Stats", you could just type "#Stats" in the chat window.
Nah i'm lookign for a way to be able to condense it. So instead of typing out/copying paste I can just type a small macro and have it roll up a set of 6 of those rolls
1551148455
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Will the method I suggested work for you?
Fred has some macros.  Here is a macro, called ImpAtt, that rolls an attack roll, pulling some values from a character sheet. ImpAtt [[1d20 + [[floor(@{level}/2)]] [lvl] + [[floor((@{wisdom}-10)/2)]] [WIS] + 1 [feat] + 1 [acc] + 0 [enh] ]] Here is a macro, called ImpMultiAtt, that rolls from 1 to 9 attack rolls, for our happy Fred. ImpMultiAtt ?{Number of attacks?|1,%{Fred|ImpAtt} |2, %{Fred|ImpAtt} %{Fred|ImpAtt} |3, %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} |4, %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} |5, %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} |6, %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} |7, %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} |8, %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} |9, %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} %{Fred|ImpAtt} } And here is Fred's macro, that casts the Grasping Tide spell, for a 4th edition DnD druid. Grasping-Tide &{template:dnd4epower} {{atwill=1 }} {{emote=Instant whirlpool engulf you.  }} {{name=Grasping Tide }} {{level=Druid Attack 1 }} {{type=At-Will ◆ }} {{keywords=Implement, Primal }} {{action=Standard ◆ }} {{range=Area burst 1 within 10 }} {{target=Each Creature in burst }} {{attack=%{Fred|ImpMultiAtt} vs. **Fort** }} {{damage=[[1d6cs0cf0 +%{Fred|ImpDam} ]] damage. }} {{hiteffect=Until the end of my next turn, if the target leaves the burst's area of effect, I may use an opportunity action to make a secondary attack against it. [Grasping Tide Secondary](~Fred|Grasping-Tide-Secondary) }} {{**Critical:**=[[0d0cs0cf0 [Crit] +6 [max] +%{Fred|ImpDam} ]] damage. }} These are examples I have used in a game, where a character may have multiple powers that pull multiple attacks, but rather than copy/pasting massive long strings of attacks, I have one such macro, that then is inserted into other macros.  The key thing for you is that the Grasping Tide calls the ImpMultiAtt macro, which in turn calls the single roll ImpAtt macro.  Hopefully this will give you ideas on what you are trying to do.
@keithcurtis will that work across multiple games? Or would it just be in that specific game?
1551297307
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Although the macro would only work in the game it exists in, I cannot count the number of times I recommend writing as many of your macros as possible as abilities in a Macro Character Sheet . The syntax is simpler, and they become portable through the Transmogrifier (Pro), or Character Vault (Plus, and to a lesser degree, free). If you are asking if there is a dice expression that will do what you want to do (shorter expression), no.