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.
This commit is contained in:
parent
106ed2e6dd
commit
656c168a52
8 changed files with 155 additions and 59 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#+email: howard.abrams@gmail.com
|
||||
#+FILETAGS: :org-mode:emacs:rpgdm:
|
||||
#+STARTUP: inlineimages yes
|
||||
#+PROPERTY: header-args:emacs-lisp :tangle ../rpgdm-tables-dice.el :comments yes
|
||||
#+PROPERTY: header-args:emacs-lisp :tangle ../rpgdm-tables-dice.el :comments no
|
||||
#+PROPERTY: header-args :eval no-export
|
||||
#+PROPERTY: header-args :results silent
|
||||
#+PROPERTY: header-args :exports both
|
||||
|
|
@ -21,6 +21,10 @@
|
|||
;;
|
||||
;;
|
||||
;;; Commentary:
|
||||
;;
|
||||
;; This file contains the source code, but the concept behind what I'm
|
||||
;; calling random dice tables is a bit complex, so I recommend looking
|
||||
;; at the original file in `docs/rpgdm-tables-dice.org'.
|
||||
|
||||
#+END_SRC
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#+email: howard.abrams@gmail.com
|
||||
#+FILETAGS: :org-mode:emacs:rpgdm:
|
||||
#+STARTUP: inlineimages yes
|
||||
#+PROPERTY: header-args:emacs-lisp :tangle ../rpgdm-tables-freq.el :comments yes
|
||||
#+PROPERTY: header-args:emacs-lisp :tangle ../rpgdm-tables-freq.el :comments no
|
||||
#+PROPERTY: header-args :eval no-export
|
||||
#+PROPERTY: header-args :results silent
|
||||
#+PROPERTY: header-args :exports both
|
||||
|
|
@ -20,13 +20,15 @@
|
|||
;; This file is not part of GNU Emacs.
|
||||
;;
|
||||
;;; Commentary:
|
||||
;;
|
||||
;; This file contains the source code, but the concept behind what I'm
|
||||
;; calling random frequency tables is a bit complex, so I recommend looking
|
||||
;; at the original file in `docs/rpgdm-tables-freq.org'.
|
||||
|
||||
#+END_SRC
|
||||
|
||||
* Introduction
|
||||
While the majority of my tables are simple lists to choose a random element, some lists should return /some elements/ more often than /other elements/. While that sounds great in a sentence, I need to actually code what I mean. I call them /frequency tables/ and they look something like my Faction Encounter table:
|
||||
|
||||
|
||||
| Church of Talos :: Worshipers of the god of storms and destruction. | scarcely |
|
||||
| City Watch :: Members of the Waterdeep constabulary. | often |
|
||||
| Cult of the Dragon :: Cultists who venerate evil dragons. | seldom |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue