Skip to content
raistlin edited this page Sep 13, 2010 · 3 revisions

Introduction
====

Extension for PunBB forums to allow dice rolls expressions for users.

  • Supported expressions
    • Dice expressions
      • XdY → Rolls X dices of Y faces.
      • XdY+Z → Rolls X dices of Y faces, adds Z to the result.
      • XdY-Z → Rolls X dices of Y faces, substract Z to the result.
    • Check expressions ( E1 and E2 can be dice expressions)
      • E1 > E2 → Checks if E1 is greater than E2
      • E1 < E2 → Checks if E1 is lesser than E2
      • E1 = E2 → Checks if E1 is equal to E2
      • E1 >= E2 → Checks if E1 is greater than or equal to E2
      • E1 <= E2 → Checks if E1 is lesser than or equal to E2
  • Supported languages:
    • English
    • Spanish

Install
===

Go to your PunBB directory:

cd extensions git clone git://github.com/gfoyle/pun_dice.git

Log in as admin in PunBB, go to Extensions, install Extension.

Usage
=

    [dice]3d5[/dice] -> (3d5) : 2 + 4 + 1 = 7
    [dice]3d6+3[/dice] -> Rolled (3d5) : 1 + 3 + 4 + 3 = 11
    [dice]3d6+3>10[/dice] -> Rolled (3d5) : 1 + 3 + 4 + 3 > 10 : SUCCESS
    [dice]3d6+3<10[/dice] -> Rolled (3d5) : 1 + 3 + 4 + 3 < 10 : FAIL

Thanks to
=====

  • Cebollinos from http://www.rolgratis.com/gyg/foros
  • Meroka from http://www.rolgratis.com/gyg/foros
  • PunBB Development team
  • All users of this extension
Clone this wiki locally