function Roll (stringDiceRollFormula){ var numberDiceRollResult; <<< CHALLENGE : WHAT GOES HERE? >>> return numberDiceRollResult; }; One of the great things about Roll20 that I have discovered is the dice rolling engine. Unfortunately, this is not available with a single, simple JS function. Why not? Seriously, why is this not so? The simplest of codes that I have found either pass around entire message objects instead of a number result, or are not able to pass the final number result due to (I'm guessing) nested function definitions embedded within parameters of other functions forcing me to do my programming within that nested, embedded function thus forcing me to copy entire blocks of code for something that should be an extremely-simple, one-line function call. So, what I'm looking for is a way to program this once in a function that I could easily call again and again in my scripts, take the results and do whatever I want with them at any point. Wouldn't it be nice to just code the following in our Java scripts? var Str = Roll("4d6k3"); var Dex = Roll("4d6k3"); var Con = Roll("4d6k3"); var Int = Roll("4d6k3"); var Wis = Roll("4d6k3"); var Cha = Roll("4d6k3");