There's been a decent amount of clamor for more involved math/dice expressions around here. In response, I offer Extended Expressions , a script which adds an extended expression syntax and support for many more mathematical and logical operators. The script introduces two new commands: * !exroll, which acts like /roll (with support for extended expressions). * !extend, which replaces any expressions enclosed in backticks (`) with inline rolls using the extended expression syntax. Some examples: !exroll 1d6**2 quadraticritical damage (or "it's crit to be squared") !extend `((1d6[roll] % 2) ? "odd" : "even")` (`${roll}`) !extend Kobold attacks (`(1d20[attackroll] + 3)[attacktotal]`), `((${attacktotal}>=15) || (${attackroll}=20) ? (${attackroll}=20 ? "critically hitting for [[2d6+2]]" : "hitting for [[1d6+1]]") : "missing" + (${attackroll}=1 ? " pathetically" : ""))`