Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Community
General Tabletop Discussion
*TTRPGs General
Designing a Random Table Generator
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Celebrim" data-source="post: 5907485" data-attributes="member: 4937"><p>What you guys are trying to create is essentially an ad hoc reporting tool.</p><p></p><p>You've got tables/views and a means of creating them, you've got means of creating 'has a' and 'is a' relationships between the tables, and you seem to be moving toward some sort of simple scripting language for formating the data (in to for example paragraphs and sentences).</p><p></p><p>First, don't enter tables row entries in terms of the number needed to be rolled in order to get that result. Rather, enter table row entires in terms of their weighted likelihood. The numbers needed to select a result are computed from the weights. How they are stored is a performance issue that hopefully your developer is good enough to think through, but from an interface level, its much easier to manipulate weights than number ranges.</p><p></p><p>Second, organize your interface in such a way that it tends to loosely enforce naming conventions. That makes sure that the database of table assets is searchable. In other words, don't have an interface that encourages the name BOBSEVILMONSTERS be entered into a single textbox in the interface. Rather, encourage naming conventions by having the table creating interface have multiple textboxes for entering things like 'creator', 'category', 'subcategory1', 'subcategory2' etc. That way, you'll tend to have the community adopt a common naming convention (or at least, a somewhat more organized one). </p><p></p><p>Also, I haven't seen it discussed yet, but it would be a good idea to be able to force selection from a table. Say you've decided that all hobgoblins carry broadswords rather than random weapons you'll want to be able to do something like <my_weapons>[1] or <my_weapons>{'broadsword'}. </p><p></p><p>A row in the table is a parent (the identity of the table), the row name, it's weight, and then a generator description in your scripting language (which can reference other tables which in turn have rows with their own generator description). Obviously, you'll need a sanity checker at the time the row is saved to make sure that you have a strict tree and not a grid (that can produce infinite loops). </p><p></p><p>My biggest worry as a developer at this stage is the potential resources this thing will consume. Ad hoc reporting is extremely resource intensive. I'd be thinking about making this thing have a thick client with only intermittant connection to a hub repository. I wouldn't want to do this with a simple web client/server interface unless the customer (EnWorld in this case) was willing to accept the potential server hit. That also deals with the issue of John changing his table definition in a way that is breaking - ei, John decides to reference a table which unbeknown to him causes someone elses table to be recursive or John decides to delete a table other people depend on. The thick client is relying on local copies, and the user doesn't have to accept John's update unless he wants to. Of course, that is a different architecture that Morrus seems to be wanting to do, in that it would involve a downloadable client and some sort of API, rather than just extending the bulletin board system.</p></blockquote><p></p>
[QUOTE="Celebrim, post: 5907485, member: 4937"] What you guys are trying to create is essentially an ad hoc reporting tool. You've got tables/views and a means of creating them, you've got means of creating 'has a' and 'is a' relationships between the tables, and you seem to be moving toward some sort of simple scripting language for formating the data (in to for example paragraphs and sentences). First, don't enter tables row entries in terms of the number needed to be rolled in order to get that result. Rather, enter table row entires in terms of their weighted likelihood. The numbers needed to select a result are computed from the weights. How they are stored is a performance issue that hopefully your developer is good enough to think through, but from an interface level, its much easier to manipulate weights than number ranges. Second, organize your interface in such a way that it tends to loosely enforce naming conventions. That makes sure that the database of table assets is searchable. In other words, don't have an interface that encourages the name BOBSEVILMONSTERS be entered into a single textbox in the interface. Rather, encourage naming conventions by having the table creating interface have multiple textboxes for entering things like 'creator', 'category', 'subcategory1', 'subcategory2' etc. That way, you'll tend to have the community adopt a common naming convention (or at least, a somewhat more organized one). Also, I haven't seen it discussed yet, but it would be a good idea to be able to force selection from a table. Say you've decided that all hobgoblins carry broadswords rather than random weapons you'll want to be able to do something like <my_weapons>[1] or <my_weapons>{'broadsword'}. A row in the table is a parent (the identity of the table), the row name, it's weight, and then a generator description in your scripting language (which can reference other tables which in turn have rows with their own generator description). Obviously, you'll need a sanity checker at the time the row is saved to make sure that you have a strict tree and not a grid (that can produce infinite loops). My biggest worry as a developer at this stage is the potential resources this thing will consume. Ad hoc reporting is extremely resource intensive. I'd be thinking about making this thing have a thick client with only intermittant connection to a hub repository. I wouldn't want to do this with a simple web client/server interface unless the customer (EnWorld in this case) was willing to accept the potential server hit. That also deals with the issue of John changing his table definition in a way that is breaking - ei, John decides to reference a table which unbeknown to him causes someone elses table to be recursive or John decides to delete a table other people depend on. The thick client is relying on local copies, and the user doesn't have to accept John's update unless he wants to. Of course, that is a different architecture that Morrus seems to be wanting to do, in that it would involve a downloadable client and some sort of API, rather than just extending the bulletin board system. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*TTRPGs General
Designing a Random Table Generator
Top