This is the documentation for RPG Cards Generator. Click here to see the generator in action.
Export objects are json files containing a few fields:
version
(string): Defining the version of the export object"1"
cards
(array): The list of cardsExample:
{
"version": "1",
"cards": [...]
}
Cards objects have the following fields:
count
(number): Amount of the card to be printedcolor
(string): Color of the cardtitle
(string): Title of the cardicon_back
(string): Name of the icon used on the back of the cardlayout
(object): Information about the layout of the card such as text sizetext_back
(string): Text showed on the back of the card such as the spell levelcontents
(array): Array of contents of the cardExample:
{
"count": 1,
"color": "#4a6898",
"title": "Hex",
"icon_back": "magic-swirl",
"contents": [
...
],
"layout": {
"text_font_size": ""
},
"text_back": ""
}
Content objects have the following fields:
id
(string): A unique id used by the drag and drop mechanicstype
(string): The type of the content, used by the renderercontent
(string): The actual content where parameters are divided by a pipe |
.Name | Description | Parameters |
---|---|---|
text |
Simple paragraph |
|
subtitle |
Sligtly larger italics text |
|
rule |
A horizontal line taking up full width | |
property |
A property with a bold name and normal description - if spanning more than one line, description is indented. |
|
description |
Same as `property` but with no indentation and name is italicized. |
|
section |
Section header |
|
boxes |
Empty boxes |
|
fill |
Empty area taking up available space |
|
bullet |
Bulleted text |
|
picture |
A picture from an url |
|
dndstats |
A Dungeons & Dragons stat block |
|
dndspellblock |
A Dungeons & Dragons spell card block |
|
Examples:
...
{
"type": "dndspellblock",
"content": "1 action | Self (15-foot radius) | V | Instantaneous",
"id": "17252d82-2ff1-44f0-9a3b-8e82406a1d90"
},
{
"type": "rule",
"content": "",
"id": "23e3310c-6e4f-4d9e-9849-93a9936fba71"
},
{
"type": "text",
"content": "You create a lash of lightning energy that strikes at one creature of your choice that you can see within 15 feet of you. The target must succeed on a Strength saving throw or be pulled up to 10 feet in a straight line toward you and then take 1d8 lightning damage if it is within 5 feet of you.",
"id": "04ea19f0-2655-44d4-9de5-595c9b554b75"
},
...
Icons available in RPG Card Generator are provided by Game-icons.net - please check them out!