@@ @emit Dice v2.0%rThoth for GroundLine '08%r--------- @@ @create Cube of Rolling=10 @Desc Cube of Rolling=This is [name(owner(me))]'s pet Cube of Rolling. To use, simply '+roll xdx+x'. (eg. roll 2d6+3) &DO_ROLL Cube of Rolling=[setq(0,ucstr(%0))][setq(1,before(r(0),D))][setq(2,before(after(r(0),D),+))][setq(3,after(r(0),+))][add(r(3),die(r(1),r(2)))] &CMD-ROLL Cube of Rolling=$+roll *:@pemit/contents %l=%N rolls %0 for [s(v(DO_ROLL))]. &CMD-WIZ-ROLL Cube of Rolling=$+wizroll *:page %N=You secretly roll %0 for [s(v(DO_ROLL))]. @set Cube of Rolling=COMMANDS @emit Cube of Rolling compiled and ready to go. Can be added to Master Room for global dice. For soft +help systems: &HELP_DICE <dbref of help object>=[ansi(c,SYNTAX:)] [ansi(g,+roll <# of dice>d<# of sides>+<modifier>)] or [ansi(g,+wizroll 1d20+5)]%r%r[ansi(c,DESCRIPTION:)]The global dice can be rolled at any time using either [ansi(g,+roll)], for a public roll, or [ansi(g,+wizroll)], for a private roll. You must specify the number of dice, number of sides on the dice, and, optionally, any modifiers in the following format: [ansi(g,<number of dice>d<number of sides>+<modifier>.%r%r[ansi(c,EXAMPLES:)] [ansi(g,+roll 2d6+3)] or [ansi(g,+wizroll 1d20+5)].