Look up die roll on table

1500242988

Edited 1500243241
So I am looking for an easy way hopefully with a macro to roll a die (its an exploding die, but whatever) and then have chat spit out what that die roll equals on a specific "die roll" table.  For instance, die rolls, then chat says "Roll: 17 From Table: +6". I have a PowerCards macro below that does this very thing, but I am looking for a way to throw the 3d dice, then have the player input his total to look up the bonus on the table.  This doesn't HAVE to be on a PowerCard. !power {{ --txcolor|#FFFFFF --bgcolor|#e58900 --titlefontshadow|none --name|Bonus Roll --Roll:| [[ [$R] 1d20!10!!20cs10cs>20 ]] --?? $R == 1 ?? Bonus:| -10 --?? $R == 2 ?? Bonus:| -8 --?? $R == 3 ?? Bonus:| -6 --?? $R == 4 ?? Bonus:| -6 --?? $R == 5 ?? Bonus:| -4 --?? $R == 6 ?? Bonus:| -4 --?? $R == 7 ?? Bonus:| -2 --?? $R == 8 ?? Bonus:| -2 --?? $R == 9 ?? Bonus:| -1 --?? $R == 10 ?? Bonus:| -1 --?? $R == 11 ?? Bonus:| 0 --?? $R == 12 ?? Bonus:| 0 --?? $R == 13 ?? Bonus:| 1 --?? $R == 14 ?? Bonus:| 1 --?? $R == 15 ?? Bonus:| 2 --?? $R == 16 ?? Bonus:| 3 --?? $R == 17 ?? Bonus:| 4 --?? $R == 18 ?? Bonus:| 5 --?? $R == 19 ?? Bonus:| 6 --?? $R == 20 ?? Bonus:| 7 --?? 21 <= $R AND $R <= 25 ?? Bonus:| 8 --?? 26 <= $R AND $R <= 30 ?? Bonus:| 9 --?? 31 <= $R AND $R <= 35 ?? Bonus:| 10 --?? 36 <= $R AND $R <= 40 ?? Bonus:| 11 --?? 41 <= $R AND $R <= 45 ?? Bonus:| 12 --?? 46 <= $R AND $R <= 50 ?? Bonus:| 13 --?? 51 <= $R AND $R <= 55 ?? Bonus:| 14 --?? 56 <= $R AND $R <= 60 ?? Bonus:| 15 --?? 61 <= $R AND $R <= 65 ?? Bonus:| 16 --?? 66 <= $R AND $R <= 70 ?? Bonus:| 17 --?? 71 <= $R AND $R <= 75 ?? Bonus:| 18 --?? 76 <= $R AND $R <= 80 ?? Bonus:| 19 }}
1500247098

Edited 1500247511
I guess I can create a table for every possible die roll (Table-1 through Table-100) and then use [[ 1t[Table-[[ (1d20!10!!20cs10cs>20) ]]]] ]]? If this is indeed the easiest way, I have a question.  In each of my tables the result is something like "+4" (not in quotes).  When the roll calls the table, though, it only puts the number (4 in this case) in chat - without the plus sign.  How can I include it?
1500255054

Edited 1500255127
Silvyre
Roll20 Mod Team
Give this a shot with 3D dice: Bonus: [[ -10 + {2,2,3,3,5,5,7,7,9,11,13,15,16,17,18,19,20,21,26,31,36,41,46,51,56,61,66,71,76}<[[1d20!10!!20]] ]]
1500306888
Thanks, Silvyre.  Sure wish I would have seen this before I MADE 100 TABLES. Can you explain to me the difference between the two rolls?  The 1d20!10!!20cs10cs>20 as opposed to 1d20!10!!20.
1500316774
Also, this game (Torg Eternity) has a weird d6 exploder that only counts as 5 when you roll a 6 then reroll.  Do I need something other than "1d6!p"?
1500345115

Edited 1500345185
Silvyre
Roll20 Mod Team
TiaMaster said: Can you explain to me the difference between the two rolls?  The 1d20!10!!20cs10cs>20 as opposed to 1d20!10!!20. The cs10cs>20 adds roll highlighting to rolls of 10 (which explode ) and 20 (which compound ). TiaMaster said: Also, this game (Torg Eternity) has a weird d6 exploder that only counts as 5 when you roll a 6 then reroll.  Do I need something other than "1d6!p"? Not familiar with the system, but  Penetrating Dice will subtract 1 from the total roll for every die that explodes. So, it sounds like you should be good with 1d6!p