Introduction
Restructuring the Codex
We are currently moving articles around and changing the general structure of the Codex. Please come back later if you get lost!Tutorial: Random Generators (Prelude)
WORK IN PROGRESS
The goal of this tutorial is to give users a document to follow along and eventually create a simple character generator. Each article will detail one step and build on previous lessons. In most cases, it makes sense to read and follow them in order.
Glossary
Some important terms used in this tutorial:- Random Generator: This is the name for the feature as a whole. In some contexts, this is shortened to generators, but should not be confused with the generator.
- Generator: A resource which takes a list of something and returns a random item from that list each time you roll it. One of the three basic building blocks for Random Generators.
- Router: Takes the output from a generator and translates that result to something else depending on what the output of the generator is. The second basic building block for Random Generators.
- Template: Combines generators, routers and other templates to create a result. This result is either displayed or can be copied as BBCode. Each template has a public page that can be shared with other people. This is the third building block of Random Generators.
- Resource: A term used in this tutorial to refer to all three building blocks at the same time.
- Generator Variables: The output of generator, router and templates is stored in a generator variable. This value can be reused in other parts of the template and are the input for routers.
- Public Page: This refers to the page where the random generator can be used. This page can be shared with others as well.
- JSON Payload: The content of generators and routers. In this tutorial, the JSON Payload will always be provided for each step. To create your own use a copy of this google sheet template. The sheet is created and maintained by Vertixico. In general, try to avoid editing JSON by hand as it is error-prone!
Test my generator and it works great, but when I drop the bbcode and drop it in an article, the code shows up, but nothing to cause the generation. Is there formatting or something to make it work? It would be nice to know.
Generator BBCode is not intended to be used in articles. Create an article template to generate articles. And use the link or iframe to navigate to the public page or embed the public page in an article. We are collecting use cases for a feature request down the line: https://github.com/Kordishal/generator-issues/issues/28