on $*:text:/^!(\d+)d(\d+)(\+(\d+))?$/g:#: {
if (($regml(1) isnum 1-200) && ($regml(2) isnum 2-1000)) { msg $chan $nick $+ , You rolled $calc($rand($regml(1),$calc($regml(1) * $regml(2))) + $regml(3)) in total. }
else { .notice $nick Format !<rolls>d<dice sides>+<additional value> The number of die that are rolled must be within 1-200 & The number of sides on the die must be within 2-1000 . }
}