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
*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
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*TTRPGs General
O.G.R.E: Online Generic Randomizer Engine
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="Morrus" data-source="post: 6197420" data-attributes="member: 1"><p>Incidentally, there's new functionality currently being worked on, as requested by @<em><strong><u><a href="http://www.enworld.org/forum/member.php?u=2525" target="_blank">Mistwell</a></u></strong></em> :</p><p></p><p><strong>Using variables in table rolls.</strong> Now, this turned out to be more difficult than expected, since we hadn't designed the original setup with that in mind - and nobody thought of it until Mistwell mentioned it! So we've had to create a workaround. Instead of using a variable directly in the table roll field (e.g. 3d6 + $level), which we're not able to do without some <em>massive</em> restructuring, we're adding a new way of calling a table.</p><p></p><p>This second way of calling a table (format yet to be decided) will call the table as normal, but <em>will not</em> roll on it. Instead, it will use a predetermined variable (which you have already defined or gathered elsewhere) and simply insert it. So you'll make your table roll separately, then call the table and tell it to use that number.</p><p></p><p>If that number results in an invalid result (higher or lower than the table range), you get an INVALID RESULT outpout in its place in your generator.</p><p></p><p>So. You could do this:</p><p></p><p>Input $level as a user variable</p><p>{$roll: {$level+{3d6}}}</p><p>Call table {Morrus:WildernessEncounters} and use the value of $roll instead of rolling on it </p><p></p><p>For that third line, we've yet to implement the formatting. We might use square brackets.</p><p></p><p>It's slightly less elegant than desired, but the amount of restructuring we'd need to do it the obvious way is quite significant.</p></blockquote><p></p>
[QUOTE="Morrus, post: 6197420, member: 1"] Incidentally, there's new functionality currently being worked on, as requested by @[I][B][U][URL="http://www.enworld.org/forum/member.php?u=2525"]Mistwell[/URL][/U][/B][/I] : [B]Using variables in table rolls.[/B] Now, this turned out to be more difficult than expected, since we hadn't designed the original setup with that in mind - and nobody thought of it until Mistwell mentioned it! So we've had to create a workaround. Instead of using a variable directly in the table roll field (e.g. 3d6 + $level), which we're not able to do without some [I]massive[/I] restructuring, we're adding a new way of calling a table. This second way of calling a table (format yet to be decided) will call the table as normal, but [I]will not[/I] roll on it. Instead, it will use a predetermined variable (which you have already defined or gathered elsewhere) and simply insert it. So you'll make your table roll separately, then call the table and tell it to use that number. If that number results in an invalid result (higher or lower than the table range), you get an INVALID RESULT outpout in its place in your generator. So. You could do this: Input $level as a user variable {$roll: {$level+{3d6}}} Call table {Morrus:WildernessEncounters} and use the value of $roll instead of rolling on it For that third line, we've yet to implement the formatting. We might use square brackets. It's slightly less elegant than desired, but the amount of restructuring we'd need to do it the obvious way is quite significant. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*TTRPGs General
O.G.R.E: Online Generic Randomizer Engine
Top