Thanks for the help by the way! I noticed that for whatever reason !d9 will spit out a blank ( ). Any idea why? I'll be running a lot of different numbers and see what results I get.

I have a feeling it's only the single digits - which isn't that hard to work around. (Just make 9 different !d1-9s) But I'm curious is there a way for it to read single digits as well? I assume that (1,-2) has something to do with why it can only receive multiple digit inputs... or something. shocked

Back. So far it only works for two digit numbers. I'll try and come up with a work around.


Code:
on *:text:!d*:#:{
  var %h = $right($1,2-)
  if %h < 10 {
    var %h = $right($1,1-)
    msg $chan $nick rolled a ( $r(1,%h) ).
  }
  else {
  msg $chan $nick rolled a ( $r(1,%h) ). }
}

Is what I have so far... unsure of how I can get it to read the single digit ones. Still works with the two digit ones though! So that's pretty hype.

Last edited by Feyl0rd; 11/02/15 04:55 AM.