psyclone241 / rollme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rollme

Python Script for Tossing the Dice

Requirements

  • Python 2.7 or greater
  • Python Library - Inflect (pip install inflect) or use make install

Install

  • make install

Usage Locally with Makefile

  • make roll4
  • make roll6
  • make roll8
  • make roll10
  • make roll12
  • make roll20
  • make rollcustom
  • make rollgroup GROUP=3-4 or make rollgroup GROUP=4,6,8
  • make rollcustomgroup GROUP=3-custom X=1 Y=99 or make rollcustomgroup GROUP=4,6,custom X=1 Y=99

Usage as PIP installed Library

  • Use (Sample Script)[sample.py]

Custom Dice Types

  • Make a copy of (Example Config)[config.example.json]
  • Load with the -c argument, use -z to override the default dice types

About


Languages

Language:Python 89.6%Language:Makefile 10.4%