Code Monkey home page Code Monkey logo

dnd-spelldeck's Introduction

D&D Spelldeck

While Dungeons and Dragons is great fun, it can be a chore to wade through the Player's Handbook to find out what one of your spells does. This tool attempts to make this easier by allowing you to create a deck of spells; a pile of cards with all your spells and the most important information about them so you can speed up the game.

Preview

A card looks something like this. As you can see, some (many) cards need to have their text truncated because there is simply too much to put on a small card.

An example of a spell card

Usage

The first step is to create the appropriate LaTeX spell list. To do so, use the generate.py program. The output of this program should be stored in a file called spells.tex. By default, this selects all spells in the game so if you want to be economical you can filter them by class, level or school. Some examples of this:

# This simply outputs all possible spells.
$ python3 generate.py > spells.tex

# This outputs all spells for bards and fighters
$ python3 generate.py -c bard -c fighter > spells.tex

# This outputs all spells of levels 0, 2, 5, 6 and 7
$ python3 generate.py -l 0 -l 2 -l 5-7 > spells.tex

# This outputs all warlock spells of levels 0 through 3
$ python3 generate.py -c warlock -l 0-3 > spells.tex

After this is finished, use your favourite LaTeX compiler to first compile cards.tex which will produce a 8.89x6.35cm page for every spell (same size as a Magic: The Gathering card so your sleeves will work!). Then, compile printable.tex which will arrange them neatly on a sheet of paper so you can print them and then cut them to size. I like to use the following command:

$ latexmk -xelatex cards.tex printable.tex

Paper sizes

If you are so uncivilised that you don't use the A4 paper format, you should change this in the printable.tex file. You may also need to change the number of cards on each page.

Fonts

These cards look best, in my opinion, if printed in the font Wizards of the Coast uses for the Player's Handbook, which is Mrs Eaves. If you compile with the XeLaTeX compiler, it will attempt to use this font. It is a proprietary font, however, and if you do not own it, use a non-XeLaTeX compiler instead which will compile with the default LaTeX font. Feel free to play around with this!

Copyright and credit

The spells included in this repository as well as the background for the cards are property of Wizards of the Coast. This stuff should be licensed under the Open Gaming License and the LICENSE file included does not cover them, only the Python and LaTeX code.

Instrumental in creating this product were reddit user Afluffygrue in this thread for providing the spell data and the people at UnearthedArcana for making all sorts of graphical resources available.

If I fucked up here (I don't speak legalese) please contact me before sending a team of angry lawyers and/or highly trained assassin-monkeys.

dnd-spelldeck's People

Contributors

stephenswat avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.