thats the wrong format.
the format is !<num>d<num>[+num]
the last +num
i improved my old one so you can use '-', too
Code:
on $*:text:/^!(\d+)d(\d+)((\+|-)(\d+))?$/g:#: {
  var %1 = $regml(1), %2 = $regml(2), %3 = $regml(3)
  if (%2 !isnum 2-1000) || (%1 !isnum 1-200) .notice $nick The syntax for rolling die is !&lt;1-200&gt;d&lt;2-200&gt;(+/- num)
  else {
    while (%1) {
      dec %1
      var %4 = $calc(%4 + $rand(1,%2))
    }
    msg $chan $nick $+ , You rolled $calc(%4 %3) in total.
  }
}

Last edited by IR_n00b; 26/06/05 12:38 PM.