Scorching Ray is one of the most complicated spells to roll in DND 5e. I put some time into creating a series of Macros to optimize this spell within Roll20, that I am sharing here, as I wasn't happy with any of the ones I found. These are character sheet independent, so things like attack roll bonuses will need to be adapted to your character or character sheet. The end result is a single macro button that I can click that first asks in the chat window what level I wish to cast Scorching Ray at: When the level of the spell is chosen, the macro asks whether the attack rolls will be standard, with advantage, with disadvantage, or whether I just want to roll twice for each attack roll and see both values (e.g. for a case where the first roll is with advantage, but the others are not): Then the results of the spell rolls are displayed in this easy to digest format: The above example is the basic level 2 spell. If I choose level 5, here is what it looks like, in this case having chosen to roll all attack rolls with "advantage": Since I chose that all attack rolls were with advantage, this is reflected in the attack roll details that can be seen on hover, but otherwise the presentation is kept simple to speed things up, and avoids showing both numbers. In this example my character has a +11 to hit bonus, and the attack rolls were of 2 and of 10, giving a total of 21: To make all this work, in summary you'll create 9 different macros that work together: 1 main macro to choose the level of the spell, and then one for each spell level (for levels 2-9). On your macro bar, you'll only need to put the main macro, as it will invoke the other macros as chosen.  Here are the 9 macros that make this all work.  Scorching Ray  (main macro, that asks what level you want to cast the spell at, and then loads the corresponding macro): /w Aeronar Scorching Ray. Level: [2](!
#SR2 ) [3](!
#SR3 ) [4](!
#SR4 ) [5](!
#SR5 ) [6](!
#SR6 ) [7](!
#SR7 ) [8](!
#SR8 ) [9](!
#SR9 ) This sends a "whisper" to my character (whose name is "Aeronar" - replace with your character name). The names "SR2", "SR3", etc. are the names of the macros that are being called. If you change the names of those macros, you'll need to update them here as well.  SR2  (level 2 version) My character has a +11 to hit. You'll need to update this, and the other "level" macros to reflect your character's attack roll bonus, or the character sheet you use. Just copy it into Word and run a search and replace on "+11" before creating the macros. &{template:default} {{name= Scorching Ray (level 2)}} {{Ray 1= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{= for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 2= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{ = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 3= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{  = for [[2d6]] damage (+[[2d6]] if crit)}} SR3 (level 3 version) &{template:default}{{name= Scorching Ray (level 3)}}{{Ray 1= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{= for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 2= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{ = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 3= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{  = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 4= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{   = for [[2d6]] damage (+[[2d6]] if crit)}}  SR4  (level 4 version) &{template:default} {{name= Scorching Ray (level 4)}} {{Ray 1= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{= for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 2= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{ = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 3= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{  = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 4= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{   = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 5= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{    = for [[2d6]] damage (+[[2d6]] if crit)}} SR5 (level 5 version) &{template:default} {{name= Scorching Ray (level 5)}} {{Ray 1= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{= for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 2= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{ = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 3= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{  = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 4= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{   = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 5= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{    = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 6= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{     = for [[2d6]] damage (+[[2d6]] if crit)}} SR6  (level 6 version) &{template:default} {{name= Scorching Ray (level 6)}} {{Ray 1= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{= for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 2= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{ = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 3= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{  = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 4= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{   = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 5= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{    = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 6= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{     = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 7= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{      = for [[2d6]] damage (+[[2d6]] if crit)}} SR7  (level 7 version) &{template:default} {{name= Scorching Ray (level 7)}} {{Ray 1= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{= for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 2= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{ = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 3= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{  = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 4= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{   = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 5= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{    = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 6= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{     = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 7= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{      = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 8= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{       = for [[2d6]] damage (+[[2d6]] if crit)}} SR8  (level 8 version) &{template:default} {{name= Scorching Ray (level 8)}} {{Ray 1= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{= for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 2= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{ = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 3= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{  = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 4= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{   = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 5= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{    = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 6= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{     = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 7= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{      = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 8= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{       = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 9= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{        = for [[2d6]] damage (+[[2d6]] if crit)}} SR9 (level 9 version) &{template:default} {{name= Scorching Ray (level 9)}} {{Ray 1= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{= for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 2= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{ = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 3= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{  = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 4= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{   = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 5= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{    = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 6= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{     = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 7= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{      = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 8= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{       = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 9= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{        = for [[2d6]] damage (+[[2d6]] if crit)}}{{Ray 10= ?{Attack Type|Standard, [[1d20+11]]|Advantage, [[2d20kh1+11]]|Disadvantage, [[2d20kl1+11]]|Show Both Rolls, [[1d20+11]] / [[1d20+11]]} to hit}} {{         = for [[2d6]] damage (+[[2d6]] if crit)}} I hope this is helpful.