Dice

Summary: Dice roller for PmWiki
Version: 2011-06-29
Prerequisites:
Status: stable
Maintainer: eseval
Categories: Markup
Users: (view? / edit)
Discussion: Dice-Talk?

Questions answered by this recipe

  1. 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

  1. Download the following file: dice.phpΔ and save in your cookbook directory.
  2. 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

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

  • 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.