#include #include inherit LIB_COMMAND; int cmd(string str){ mixed *tmp, *tmp2 = ({}); if(!str || !(tmp = roll(str))){ write(this_object()->GetHelp()); return 1; } foreach(mixed foo in tmp){ tmp2 += ({ itoa(foo) }); } write("The individual rolls are: "+implode(tmp2[1..]," ")); write("The sum total roll is: "+tmp[0]); return 1; } string GetHelp(){ return "Syntax: wizroll \n\n" "Simulates a roll of dice. For example, 'wizroll 2d6' simulates a " "roll of two six-sided dice. Dice are not limited to realistic " "topologies. One may roll a 99d1025."; }