Cookbook /
Dice
Summary: Dice roller for PmWiki
Version: 2011-06-29
Prerequisites:
Status: stable
Maintainer: eseval
Categories: Markup
Discussion: Dice-Talk
Questions answered by this recipe
- How to implement a dice roller in PmWiki?
Description
This recipes adds a Dice Roller to the PmWiki markup for a Role Playing Game.
Installation
- Download the following file: dice.phpΔ and save in your cookbook directory.
- Add the following line into your local/config.php script:
require_once ("cookbook/dice.php");
Usage
Use this recipe is pretty easy.
Sintaxis:
(:dice roll_id number_of_dicesddice_faces:)
Examples
(:dice DM 3d20:) (:dice Elf_Player 2d100:)
Result:
Roll {3d20 = 16,14,9 } 39 Roll {2d100 = 91,10 } 101
Known issues
Release Notes
- June 29th 2011
- Initial release
See Also
Contributors
Comments
See discussion at Dice-Talk
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.