oracle

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Oracle

 █▀▀▀█ █▀▀█ █▀▀█ █▀▀ █   █▀▀
 █   █ █▄▄▀ █▄▄█ █   █   █▀▀
 █▄▄▄█ ▀ ▀▀ ▀  ▀ ▀▀▀ ▀▀▀ ▀▀▀

Oracle is a tool for picking random items from a table.

demo

Installation

go install github.com/script-wizards/sourcery/cmd/oracle

Usage

You can run oracle with no arguments and it will load up a Yes/No oracle.

You can create custom tables defined in YAML files. See examples. Pass the file path as an argument.

oracle random-events.yaml
Dice Notation

Put dice notation in curly braces, like There are {1d4} kobolds. The following formats are supported:

  • Standard
    • xdy[[k|d][h|l]z][+/-c]
    • Rolls and sums x y-sided dice, keeping or dropping the lowest or highest z dice and then adding or subtracting c.
    • Example: 4d6kh3+4
  • Fudge
    • xdf[+/-c]
    • Rolls and sums x fudge dice (-1 and 1), and then adding or subtracting c.
    • Example: 4df+4
  • Versus
    • xdy[e|r]vt
    • Rolls x y-sided dice, counting the number that roll t or higher.
  • Comparison
    • {xdy[<|>]t}
    • Rolls x y-sided dice, then compares the result to t. Useful for X-in-Y.
    • Example: 1d6<3 for 2-in-6

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址