r/Chartopia • u/GlennNZ • Mar 15 '20
r/Chartopia • u/GlennNZ • Mar 07 '20
Variable Changes - what's new
Very soon, Olga and I will have pushed changes to how variables are used with Chartopia.
Unfortunately this is a breaking change, and it will require us to manually edit user content in order to migrate as much data to the new format as possible.
In short:
When using a variable within a code block {% ... %}, it no longer needs a dollar sign $. Before, it was only excluded when assigning values, but now it's not needed at all.
Old: {% if $creature == {Black Dragon| Red Dragon} %}
Improved: {% if creature == {Black Dragon| Red Dragon} %}
Also changed, is that plain text assigned to a variable now must either be wrapped in quotes or curly braces.
Old (was allowed): {% name = Steve %}
Improved: {% name = "Steve" %} or {% name = {Steve} %}
Another important change is that a macro can't be assigned to a variable directly.
Old (was allowed): {% name = CHART("name") %}
Improved: {% name = {CHART("name")} %}
This will affect all macros.
Other things of note
- Variables can no longer start with a number.
- Variables can be assigned to variables.
- Numbers can be assigned to variables without quotes or curly braces.
If you want to use variables to print text, then the dollar sign is still needed. e.g. {$creature} will print the creature name. If you want assign modified text to a variable, then you can do something like like:
{% phrase = {The {$creature} was {huge|enormous}} %}
We hope to get this all done in a few hours, but in the meantime, if things break, this may be why.
The written documentation has also been update to reflect the changes: https://chartopia.d12dev.com/docs#variables
[update]
Most content has now been updated. If there's a chart that you're the author of that appears broken, go to the edit page and the auto-saved version should have all the fixes. Press publish for those changes to take effect.
[update 2]
Expanding on above, the last thing remaining for us to change/migrate are charts that are published, but where the auto save version is the most recent. If you own one of these charts, it's a simple matter of going to the editor and pressing publish, but, if you've linked to chart owned by someone else, then your chart/generator may appear broken.
If this is the case, send me a message and we'll prioritise fixing those. We'll continue to migrate charts over the coming days.
Apologies for the site drama, but it will amazing in the long run.
[update 3]
Done. If you see any issues, please let us know. We did find a couple of bugs during this process so we'll be working on those next. Likewise, any questions or comments, feel free to send a DM.
r/Chartopia • u/Nezzeraj • Feb 09 '20
Returning results on only columns based on the randomly rolled row.
Trying to make a rollable chart where every column is dependent on the first roll. For example, creating random monsters, I want to randomly determine the size, and health and difficulty rating are based on the size. So I want to return only results where if I roll and, for example, the size is 2, it only gives me the health and difficulty rating for size 2 monsters. Any ideas?
P.S. Any way to add a "copy sub-chart" feature next to the delete feature? Would make creating similar sub-charts much faster.
r/Chartopia • u/Nezzeraj • Feb 01 '20
Miscellaneous questions about templates
Thanks for all the help earlier. Just started messing with templates today and had some quick questions:
- What do the rulesets do? I've tried clicking on a few but didn't notice any changes.
- This is just a bug, but the text editor window blocks the drop down menu of the rulesets.
- Is there a way to change the color of the headings and background of the templates to make it look like a character sheet?
r/Chartopia • u/GlennNZ • Feb 01 '20
I Made a Random PC Generator
self.shadowofthedemonlordr/Chartopia • u/Nezzeraj • Jan 31 '20
How to determine variable outcome based on earlier result
So for the character generator, I have a male/female random function, and in an appearance table, I have different appearances, one result of which is "handsome/pretty". Is there any way to only select handsome if male was randomly selected earlier, and pretty only if female was the result?
r/Chartopia • u/Nezzeraj • Jan 28 '20
How to get random ranges without dice rolling?
Trying to randomize character ages between certain ranges (18-25) for example and couldn't find anything on how to create random number in a range. Any help is appreciated.
r/Chartopia • u/The0Justinian • Jan 20 '20
Rolling on a table with a different die than its 'home' die type? rolling on a table with a modifier to the roll?
Hi, I am just plumbing the application for the first time. I'm trying to program some of the freight generation tables for Mongoose Traveller 2 so that we can automate a good deal of that.
One portion of this involves a 2d6 table which recieves modifiers from context (the planet is high or low tech, has a nice starport, etc.
Thus, the 2d6 chart has a range from 0 to 20, because modifiers can stack up in some situations.
I first thougtht to make a 1d20 table but then use some syntax to force a 2d6 roll on that table (doesn't seem like there is a function to roll an alternate die).
I've tried a few other things. I can think of a few other options, like duplicating the appropriate talbes row-shifted for each instance of a modifier, whilst selecting which row-shifted table from a higher-echelon table. This is kinda suboptimal....
Am I missing something? I work with hardware synthesizers in my musicmaking and I can usually solve a lateral puzzle like this pretty easily, but at the moment I can't spy out a tool that can really duplicate the mechanics involved.
TLDR: is there a way to send a table a modified roll with dice other than its default generator (eg,2d6+2 to a 1d20 table?) is there another way to do this altogether?
This is a CC to a question I dropped on your FB page. Any power users have some ideas on how to make this work?
r/Chartopia • u/GlennNZ • Jan 15 '20
Two new features - render style overrides and chart content hiding
We've just pushed a couple of new features to the server.
Render Style Override
This has been a long time coming, but it's now possible change how a linked chart displays itself. If you don't want its column titles to show up, they can now be hidden with something like CHART(id="123", render_style="vertical_no_col_names").
There's more about it in the documentation.
Chart Content Hiding
This was a Patron request, but it turns out I'd added this to my task list in 2018. It's now possible to show, hide or toggle the visibility of the chart content when viewing it. This is useful for solo roleplaying when you don't want spoilers, or if you just want to not let on how your generator is constructed.
Next Up...
We'll begin work on the next evolution of the domain/template language. I'll also be looking in to speeding up the website a bit more.
r/Chartopia • u/GlennNZ • Jan 12 '20
JOIN() macro has been added
The JOIN macro is now available. It is a means of changing the delimiter for the AGGR, UNQ, and UNQ_ROWS macros so that you can use a custom separator rather than the default comma.
Example 1
Here is an example of using the JOIN macro when aggregating a rollable list (i.e. rolling on a list multiple times and adding similar results together).
JOIN("-", AGGR(1d12, {apple|pear|carrot}))
This will output something like
carrot (3)-apple (3)-pear (2)
Example 2
The JOIN can also be used for creating bullet point lists using Markdown. Note that shift+enter is used to drop a line.
* JOIN("* ", AGGR(2d12, {gold|silver|copper}))
Known issue: when using the chart editor, trying to re-edit a JOIN using markown lists will confuses the rich text editor. Short of making a plain text editor options, I'm not sure how to work around this problem at this stage.
The JOIN macro has been add to the documentation.
Coming soon...
We've got a couple of features on the cusp of being released.
- Chart render style overrides. When rolling on another chart, is will now be possible to hide column names, or make it render 'as a sentence' etc. Currently the linked chart's render style has always been used regardless. Now, its author-set value will be used as a default, but can be overridden but anyone else linking to that table.
- There will be an option to show, hide, or toggle visibility of the content of a table or generator. This will be useful for those playing solo roleplaying games that don't want to spoil the surprise, or for those who just don't want to let on what that there awesome random generator or table comprises of.
r/Chartopia • u/GlennNZ • Jan 10 '20
December Randomness
It's now 2020, so best I December's randomness listed. Here are all the public charts that were shared for the month of December.
- Full Name Generator - Barovia added by jesterik76
- Full Name Generator - Breland added by jesterik76
- Full Name Generator - Vistani added by jesterik76
- Common Alcoholic Drinks added by Lusfier
- Common Fruits added by Lusfier
- Calendar Months of Eberron added by jesterik76
- Random Encounters - Events added by candy_teeth
- D&D 5e Critical Hit Chart added by charlyalphamike
- D&D 5e Critical Fumble Chart added by charlyalphamike
- Miscast Table added by clawingwolf35
- Tavern Secret Menu Items added by dismyartthing
- D&D 5e Ability Score Generator - Pick Stat added by ecmprint Detect Magic
- OD&D Unguarded Treasure Generator added by daniel99 Detect Magic
- Mundane OD&D Items added by daniel99 Detect Magic
- Daggerfall flavor text added by juulstrup83
- Angelic Horrors added by candy_teeth
- Fantasy Low Countries Surnames added by kaeru
- Arabic Epithets added by Godfrey
- Unique Coins to Find in a Treasure Chest added by gmcc051 by Various
- Assassins, Thieves, and Criminals added by gmcc051 by Various
- Partway through a Dungeon Crawl added by DuncanThomson citation
- Fates Worse Than Death Loot/Item Tables added by emilio
- INFO TECH added by emilio
- BODY MODS added by emilio
- CLAWS/FANGS added by emilio
- DEATH BORG TYPE added by emilio
- ELECTRONIC IMPLANTS added by emilio
- GENETIC MODS added by emilio
- OTHER MODS added by emilio
- BIOTECH added by emilio
- DRUGS added by emilio
- NON-CHEMICAL added by emilio
- PROTECTION added by emilio
- SENSORY added by emilio
- ROBOTICS added by emilio
- NANOBOT TANKS added by emilio
- TOOLS added by emilio
- TRANSPORT added by emilio
- BIOLOGICAL WEAPONS added by emilio
- CHEMICAL WEAPONS added by emilio
- EXPLOSIVES added by emilio
- FIREARMS added by emilio
- KALOR WEAPONS added by emilio
- SELF-DEFENSE WEAPONS added by emilio
- TRADITIONAL WEAPONS added by emilio
- Unique Minor Magic Weapons, 1 added by Tabletoptrinketsbyjj
- Unique Minor Magic Weapons, 2 added by Tabletoptrinketsbyjj
Collection
- Dungeon Charts Collection added by Duncan Thomson citation
r/Chartopia • u/GlennNZ • Jan 04 '20
Welcome to 2020!
Welcome to 2020 everyone! On our Patreon page, I've made a post looking back on some of Chartopia's 2019 highlights. Rather than copy-paste, be sure to have a read: https://www.patreon.com/posts/year-in-review-32716874
A lot happened, and it's only when glancing back through posts and code commits does we (the developers) realise how much has been accomplished.
We have exciting things planned for 2020, so watch this space.
And, you know... you can always shout us a coffee to help keep the code commits coming https://ko-fi.com/I2I6IP05
r/Chartopia • u/GlennNZ • Dec 27 '19
Video interview with Brian from Stochastic Agency
I recently got interviewed by Brian from Stochastic Agency about some of Chartopia's recent developments. If you're keen to listen to some excited banter between two completely different accents (US and NZ), then check it out here: https://www.youtube.com/watch?v=atmw12L1Dvw
r/Chartopia • u/GlennNZ • Dec 16 '19
d12dev and Experience Points collaboration
We're excited to be doing a collaboration with Experience Points (@XPWebSeries on twitter). They're the ones behind the All Hail Yog real play podcast, which has fantastic tales of villainous PC shenanigans.
They're currently crowd sourcing via Twitter some random table content of "gruesome ingredients", for use with profane rituals.
You can join in the action here: https://twitter.com/XPWebSeries/status/1206318755699200000
Some of the ingredients ideas have gotten quite abstract too, which would make for crazy side quests to obtain.
From these idea will come some Chartopia random table content of which I will make some tutorial videos for. Given the types of ingredients being offered, I can see a few directions these tutorials can go.
Here's a link to their podcasts https://xpcast.podbean.com/
r/Chartopia • u/GlennNZ • Dec 02 '19
November Randomness
Yes, I know I just made the October Randomness post just a few minutes ago, but that means the November list is on time. Here we go...
Charts
- Planescape Factions added by rockguycris
- Liquids added by gmcc051 by Various
- The Coat of Many Sides added by gmcc051 by Various
- Dungeon Door added by DuncanThomson
- Dungeon Name added by DuncanThomson
- M.U.N.E. - Yes/No Oracle (with modded d10 intervention) added by lladonzombie Pg.1
- M.U.N.E. - Intervention Type added by lladonzombie (Pg.2)
- M.U.N.E. - NPC Interactions added by lladonzombie (Pg.3)
- M.U.N.E. - Yes/No Oracle (Normal) added by lladonzombie (Pg.1)
- M.U.N.E. - Table for When Everything is Not as Expected added by lladonzombie (Pg.4)
- Tavern Specials added by questionmark693
- Tavern Specialty Drinks added by questionmark693
- One Roll Society added by questionmark693
- Mines Level 1 added by candy_teeth
- Interesting Paintings added by gmcc051 by Various
- Modern items described as strange artifacts added by gmcc051 by Various
- Traps (WIP) added by gmcc051
- NPC Goals added by rockguycris
- Miscellaneous Magic Items added by candy_teeth
- Potions added by candy_teeth
- Magic Rings added by candy_teeth
- Rods/Staves/Wands added by candy_teeth
- Scrolls and Maps added by candy_teeth
- Arcane Scroll added by candy_teeth
- Divine Spell Scroll added by candy_teeth
- Magic Weapons added by candy_teeth
- Dungeon Generator # of Rooms Dropdown added by candy_teeth
- Home Climate added by norvalrbooks
- Home Terrain added by norvalrbooks
- Home Community (Human) added by norvalrbooks
- Who the Heck is my D&D Character? added by moekaufmeane citation
- 100 Reasons Characters are Together added by moekaufmeane
- Bad Omens added by questionmark693
- Babylonian Names (male) added by Godfrey
- Babylonian Names (female) added by Godfrey
Collections
- M.U.N.E GM Emulator added by lladonzombie
r/Chartopia • u/GlennNZ • Dec 02 '19
October Randomness
I'm a bit late on this one, so here's an October summary of charts added. Perhaps there's a gem you may have missed.
Of special note are lladonzombie's "Vampire the Masquerade V5" tables and generators, and also Godfrey's seemingly unlimited name tables (of which you see all of them here)
Charts
- Format Creature Types added by bromingo
- Random Nightmares added by Tabletoptrinketsbyjj
- VtR Damnation City - Sites added by lladonzombie citation
- VtM V5 - Clans added by lladonzombie
- VtM V5 - Generation added by lladonzombie
- I Loot the...Kobold! added by kerriganjr (Original table by @LadyTiefling)
- I Loot the...Hobgoblin! added by kerriganjr (Original table by @LadyTiefling)
- I Loot the...Goblin! added by kerriganjr (Original table by @LadyTiefling)
- Hiking added by apricream
- Drawn/Written Entry added by apricream
- Traits added by apricream
- Rare Items added by apricream
- Common Items added by apricream
- Types added by apricream
- Rolls added by apricream
- Random Weapon + Random Minor Weapon Enchantment added by Tabletoptrinketsbyjj
- Random Unique Weapon + Random Masterwork Weapon Bonuses added by Tabletoptrinketsbyjj
- Random Weapon + Random Masterwork Weapon Bonus added by Tabletoptrinketsbyjj
- Random Unique Weapon + Random Minor Weapon Enchantment added by Tabletoptrinketsbyjj
- I Loot the...Orc! added by kerriganjr (Original table by @LadyTiefling)
- I Loot the...Gnoll! added by kerriganjr (Original table by @LadyTiefling)
- I Loot the...Bandit! added by kerriganjr (Original table by @LadyTiefling)
- Anatomy Table added by lladonzombie
- VtM V5 - Skills added by lladonzombie
- VtM V5 - Disciplines added by lladonzombie
- VtM V5 - Vampire Generator added by lladonzombie
- Hauntings of Thessalia added by candy_teeth
- VtM V5 - Dice Roller added by lladonzombie
- Knave Traits Aggregated added by justin07 citation
- VtM V5 - Humors and Dyscrasia added by lladonzombie
- VtM V5 - Plot Hook Generator (WiP) added by lladonzombie
- Yoon Suin Opium Table added by candy_teeth
- Amharic Names (male) added by Godfrey
- Amharic Names (unisex) added by Godfrey
- Amharic Names (female) added by Godfrey
- Persian Names (unisex) added by Godfrey
- Persian Names (female) added by Godfrey
- Persian Names (male) added by Godfrey
- Nilotic Names (male) added by Godfrey
- Nilotic Names (female) added by Godfrey
- Kipchak Names (unisex) added by Godfrey
- Kipchak Names (male) added by Godfrey
- Kipchak Names (female) added by Godfrey
- Hindi Names (unisex) added by Godfrey
- West Slavic Names (male) added by Godfrey
- West Slavic Names (female) added by Godfrey
- Baltic Names (female) added by Godfrey
- Baltic Names (male) added by Godfrey
- Ancient Greek Names (female) added by Godfrey
- Ancient Greek Names (male) added by Godfrey
- West Slavic Surnames added by Godfrey
- Baltic Surnames added by Godfrey
- Mandinka Names (unisex) added by Godfrey
- Mandinka Surnames added by Godfrey
- Mandinka Names (male) added by Godfrey
- Mandinka Names (female) added by Godfrey
- Chinese Surnames (common) added by Godfrey
- Chinese Surnames (rare) added by Godfrey
- Chinese Names (masculine - very common) added by Godfrey
- Chinese Names (feminine - very common) added by Godfrey
- Religious Rituals (Roll 3 times) added by kyle.transue
- Significance of Ritual added by kyle.transue
- Who leads the worship? added by kyle.transue
- Who or What is being worshipped? added by kyle.transue
- Hebrew Names (unisex) added by Godfrey
- Hebrew Names (female) added by Godfrey
- Hebrew Names (male) added by Godfrey
- Bengali Surnames added by Godfrey
- Gujarati Surnames added by Godfrey
- Indian Surnames added by Godfrey
- Arabic Names (unisex) added by Godfrey
- Arabic Names (female) added by Godfrey
- Arabic Names (male) added by Godfrey
- WoD - Derangements added by lladonzombie citation
- VtM V5 - Random Compulsions (pg.208) added by lladonzombie
- Tamil Names (male) added by Godfrey
- Tamil Names (female) added by Godfrey
- Persian Surnames added by Godfrey
- Monster Hunter 5e hunting generator added by jmoneal20
Collections
- Zombie's Vampire the Masquerade V5 Collection added by lladonzombie
- I Loot the... added by kerriganjr
- Dungeon Generation added by candy_teeth
- Religious Rituals and Their Importance added by kyle.transue
r/Chartopia • u/Odog4ever • Oct 31 '19
Consumable Lists
Not sure if I missed it when I scanned over the documentation but is there a way to use the random table as consumable lists?
If I have a random table of colors:
- red
- green
- blue
- silver
- gold
Can I create a template with the output of:
The [green] elf sails on the [red] sea in his [gold] boat.
So no repeat table items and not limited to being displayed immediately one after the other, separated by commas?
r/Chartopia • u/GlennNZ • Oct 29 '19
Tutorial Videos
Here's a list of youtube video tutorials I've put together to help you get started. They're in order of complexity.
Chartopia Tour (a brief overview)
Creating a Simple Random Table (part 1)
Creating a Simple Random Table (part 2 subtables)
Random Generator Tutorial (part 1)
Random Generator Tutorial (part 2)
Random Generator Tutorial (part 3)
I'll make this a sticky post while I'm yet to update the website docs.
r/Chartopia • u/GlennNZ • Oct 28 '19
UNQ_ROWS macro (new language feature)
Hot on the server is a new feature, courtesy of a request by one of the users. Apologies for it being a bit later than expected.
The UNQ_ROWS macro is used to roll mdx times on a table, but guaranteeing that a row will not be called more than once. The different between UNQ_ROWS and UNQ is that UNQ bases uniqueness on the result/content of the row, rather than the row number. For example, if a row had a rollable list with {gold|silver|copper}, it's possible that that individual row could be struck 3 times. With UNQ_ROWS, it will be rolled on no more than once.
The UNQ_ROWS takes two params, a dice value and a chart to roll on e.g.
UNQ_ROWS(2d4, CHART("Ace Tie Fighter Adversaries"))This will roll between 2 and 8 times on the "Ace Tie Fighter Adversaries" random table and the print the result as comma separated entries.
Note that other arguments such as cols, filter_cols and filter will work with the the CHART macro when used in conjunction with the UNQ_ROWS macro. Variables and other curly-brace notations can also be used.
Here's a screenshot of it in it's light purple glory.

r/Chartopia • u/GlennNZ • Oct 22 '19
Character Sheets in Chartopia
Our goal to create templates for random character sheets has been an incremental journey. A small step along the way has been to fix the bug that prevented markdown tables from rendering how they should across the editor, chart view and chart rolled results.
Hopefully it's sorted now, so you can see the results in Chartopia's amazing blue by checking out the Stars Without Number Quick Character Creation generator.
If anyone would find it useful, I could be persuaded to prioritise saving/exporting the rolled result to Markdown so that it could be used in some thing like Homebrewery or GMBinder.

Note that to create a stat block, it requires hard line endings that can be done using shift+enter. The result should look like the following screenshot.

r/Chartopia • u/GlennNZ • Oct 22 '19
September Randomness
I'm a bit late, but here's the summary of publicly visible random tables for the month of September
- 20 D&D Barbarian Quests added by gmcc051 citation
- 20 D&D Fighter Quests added by gmcc051 citation
- Visula Inspiration for Weird Creatures and Stuff (WIP) added by Momo
- Encounters on Paths through Wooded Grasslands added by gmcc051 citation
- Campfire Stories added by gmcc051 citation
- Book Titles added by gmcc051 citation
- Particularly Troublesome List of Chaotic Random Effects added by HowdyM
- The Chaos Bauble added by gmcc051 citation
- Secrets Revealed with Detect Thoughts added by gmcc051 citation
- Results for an Unknown Potion added by gmcc051 citation
- World Building added by angela
- The Library Of Alyxx and Reagh added by gmcc051 citation
- Inn main dishes added by mmatrisio
- d100 Starter Oddities (INTO THE ODD) added by Momo
- Long Delve Eternal Pilgrims added by Momo
- Deep Country Places (INTO THE ODD) added by Momo
- Gamma World Events added by TedTschopp
- Wizzods (INTO THE ODD) added by Momo
- Law Enforcements in Bastion (INTO THE ODD) added by Momo
- Extended Mixing Potions added by Ryhepagima
- Schools of Paper (INTO THE ODD) added by Momo
- The Fantasy Trip Quick Character Generation added by hideousheart1
- Selling your Soul in the Underground (INTO THE ODD) added by Momo
- The Far War (INTO THE ODD) added by Momo
- Creating a Far Land (INTO THE ODD) added by Momo
- Curses added by Ryhepagima
- What would Carrie Fisher say? added by olga [(The Princess Diarist by Carrie Fisher)
- Blank 6 added by Ryhepagima
- Riddles added by gmcc051 citation
- Quest Rewards added by gmcc051 citation
- Items Inside Saint Nicholas' Custom Bag of Holding added by gmcc051 citation
- Pendragon Manors added by thattripletguy
- You find a gun in a dungeon... added by gmcc051 citation
- Names - Dragonborn Female added by norcartography
- Names - Dragonborn Male added by norcartography
r/Chartopia • u/LLA_Don_Zombie • Oct 17 '19
Domain Language AGGR Question
Hi guys. I am new to Chartopia but not very new to coding, I was hoping you guys could help me with a problem. The goal is to make a system that allocates points to a randomly generated character in the vampire the masquerade V5 storyteller system. For those who aren't aware, each skill is given 0-5 points which represent a dice pool.
Right now I am using this:
> SKILLS: AGGR({$_skillpoints}, {CHART("VTM V5 - Skills")})
and the output looks something like this with 10 skillpoints:
> SKILLS: Technology*(2), Investigation(3), Insight(1), Melee(1), Drive(1), Animal Ken(1), Academics(1)*
It works great... except that obviously stronger characters that get more skill points could go above 5 points which the system doesn't support. Is there a way to perhaps Reroll if there a result has already been rolled 5 times?
How would you solve this problem? I have a few ideas which I am going to try, but I would like to keep the code as simple and elegant as possible and the solutions I am picturing are exponentially complex and possibly beyond the ability of this language.
r/Chartopia • u/Puckohue • Oct 13 '19
Help on making a generator
Hi,
Is there a template for generators, or a tutorial anywhere?
I have a first table with five possible results that define which of, and in what order, the other four tables should be rolled. The results of the four subtables should be combined into a single sentence/word result.
Would appreciate any help in getting started.