Skip to main content

Plover text macros to roll dice, flip a coin, and take chances.

Project description

Roll the Dice

Plover text macros to roll dice, flip a coin, and take chances.

Installation

Install from the Plover plugins manager.

Usage

Meta / Macro Name Description
{:roll:range:0:100} Get a random integer in the provided range.
{:roll:choice:option1:option2:etc} Randomly select a choice from the options provided.
{:roll:d6} Roll a six-sided die. You can replace "6" with any positive whole number. Equivalent to {:roll:range:1:6}.
{:roll:d10} Roll a 10-sided die. Equivalent to {:roll:range:0:9}.
{:roll:d20} Roll a 20-sided die. Equivalent to {:roll:range:1:20}.
{:roll:coin} Flip a coin. Equivalent to {:roll:choice:heads:tails}.
{:roll:8ball} Ask the Magic 8-Ball a question.

Examples

You can mix these metas into your text.

{
  "RO*L": "I roll a d20... the result is {:roll:d20}",
  "KO*EUPB": "Heads or tails? {:roll:coin}!",
  "SAO*UR": "{:roll:choice:yep:sure:okay:fine by me}"
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plover_roll_the_dice-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

plover_roll_the_dice-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file plover_roll_the_dice-0.0.1.tar.gz.

File metadata

  • Download URL: plover_roll_the_dice-0.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.9

File hashes

Hashes for plover_roll_the_dice-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4611d167e914088b01c0c189b2a149de32a266d949e3d126867719c30a583cb1
MD5 bd3906cde6432677590ce45023667fa6
BLAKE2b-256 e2b60e014c57d2d116fc9d56bcb41ea76609b6c8d9cda5a8f7c41c839e0a0b19

See more details on using hashes here.

File details

Details for the file plover_roll_the_dice-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: plover_roll_the_dice-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.9

File hashes

Hashes for plover_roll_the_dice-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dce3bb1f945c53a1eeff388c759d6f02f65b1b406e9d80885e1181fac0e92b2
MD5 d6efae73955f0dc3a346069d7b1e8e9c
BLAKE2b-256 d7506545d0c1ed598f80a462bdb583e7879005d7ff975ba2a5a4ab6c6d5bd707

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page