User functions are defined with the
defineFunction(), once you have defined the function you can call it is you would
call any of the existing functions. You can then use the
argCount() function to determine how many arguments were passed
when it was called.
arg()to retrieve them.
all of the arguments that are passed to it.
[h: numArgs = argCount()] [h: total = 0] [h,count(numArgs): total = total + arg(roll.count)] [r: total]