Re: Parsing a Dice Roll String
- Posted by "Kat" <gertie at visionsix.com> Aug 06, 2004
- 466 views
Is it like this?: -GameServ- DESCRIPTION: -GameServ- The ROLL command simulates the throwing of a set of -GameServ- dice, fitting the given criteria. -GameServ- -GameServ- a is the number of separate outputs to give (optional) -GameServ- b is the number of dice to roll (but not output) (optional) -GameServ- c is the number of sides each dice has -GameServ- d is the modifier for each roll (optional) -GameServ- -GameServ- EXAMPLES: -GameServ- -GameServ- To roll 3 die, each with 6 sides, and return 2 results -GameServ- /GameServ roll 2#3d6 -GameServ- -GameServ- To roll 1 die, with 10 sides, and add 3 to each result -GameServ- /GameServ roll d10+3 -GameServ- -GameServ- To roll 2 die, with 3 sides, and take 1 from each result -GameServ- and send the results to #sorcery: -GameServ- /GameServ roll #sorcery #2d3-1 -GameServ- -GameServ- Note: dice rolls in channel are limited to ChanServ level -GameServ- MAOP(4) operators. Unless the GS_ROLL option is enabled, -GameServ- see /ChanServ help set gs_roll for more information. -GameServ- Kat