Commit graph

5 commits

Author SHA1 Message Date
Howard Abrams
520f74cc66 Re-roll the same dice expression.
Yes, I got that idea from d20, and at some point, we need to figure out
how to play better together.
2021-03-23 13:56:03 -07:00
Howard Abrams
656c168a52 Add dice tables
A dice table is a direct translation of a gaming table from a book,
where the table has a stated dice expression, and each entry has a
numeric range. Most tables can now be taken as is from published
sources.

Also, if a message from a randomly rolled table contains a dice
expression, like Found 2d8 scrolls, the expression is automatically
substituted.

Finally if a message contains something like:
  You found a [wolf/fox/badger].
The displayed message will only include on of those entries.
2021-02-11 22:08:06 -08:00
Howard Abrams
7dab533415 Working with both Dice and Frequency tables
Some of these tables are getting complicated, so I have created three
different tables, and this should be sufficient.

Describing it, however, seems to be a lot for source code, and I thought
I would describe it using a literate programming style. We'll see.
2021-02-08 15:26:16 -08:00
Howard Abrams
558d7eb984 Code functional with a good README and Interface
Wrote some reusable instructions as well as polished a minor mode and a
hydra for easily using the code. Time to try it out in production.
2021-02-01 17:52:40 -08:00
Howard Abrams
9411e512ce After a night or two of late hacking...
I have a semblance of code giving me functions to help me run my D&D
games. The README needs a lot more love, but the code is generally tidy.

Time to add some tables...
2021-01-29 23:18:36 -08:00