Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon 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 Next
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!
Twitch
YouTube
Facebook (EN Publishing)
Facebook (EN World)
Twitter
Instagram
TikTok
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
Odd request for help: I need a mathematician!
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="tomBitonti" data-source="post: 7269272" data-attributes="member: 13107"><p>Hi,</p><p></p><p>It sounds like you are preferring to set the item value, then generate a type, then do a lookup within that type with selection limited to the preset value.</p><p></p><p>An alternative would be to let the tables have items of multiple values. I presume your method was chosen because you want firm control over the reward value — which I find reasonable.</p><p></p><p>But, I don’t see much to figure out. The selection mechanism maps closely to the data organization.</p><p></p><p>Maybe you are looking for something like this:</p><p></p><p>Art [0..9] v = 10</p><p>Art [10..29] v = 50</p><p>Art [30..49] v = 100</p><p>And so on. Here [x..y] v=z means the items x through y all have the value z.</p><p></p><p>To do a lookup based on a value or on a range of value, an intermediate table would be needed, with the low and the number plus 1:</p><p></p><p>10 : 0 - 10</p><p>50 : 10 - 30</p><p>100 : 30 - 50</p><p></p><p>Plus 1 because the difference gives the size of the range. It makes the figuring simpler.</p><p></p><p>Then a lookup of an item of value 50 to 100 would start with the start number of the lower value and end with the end number of the high value. Then, there would be a random number generated in that range for the selection:</p><p></p><p>Art [ Random( Start[1] .. End[2] ) ]</p><p>Art [ Random( 10 .. 50 ) ]</p><p></p><p>The random number math is just picking a number in a range (assuming all choices are to be equally likely). The figuring is more about structuring the tables, and importantly, what to put in the intermediate tables.</p><p></p><p>Hope that helps!</p><p>TomB</p></blockquote><p></p>
[QUOTE="tomBitonti, post: 7269272, member: 13107"] Hi, It sounds like you are preferring to set the item value, then generate a type, then do a lookup within that type with selection limited to the preset value. An alternative would be to let the tables have items of multiple values. I presume your method was chosen because you want firm control over the reward value — which I find reasonable. But, I don’t see much to figure out. The selection mechanism maps closely to the data organization. Maybe you are looking for something like this: Art [0..9] v = 10 Art [10..29] v = 50 Art [30..49] v = 100 And so on. Here [x..y] v=z means the items x through y all have the value z. To do a lookup based on a value or on a range of value, an intermediate table would be needed, with the low and the number plus 1: 10 : 0 - 10 50 : 10 - 30 100 : 30 - 50 Plus 1 because the difference gives the size of the range. It makes the figuring simpler. Then a lookup of an item of value 50 to 100 would start with the start number of the lower value and end with the end number of the high value. Then, there would be a random number generated in that range for the selection: Art [ Random( Start[1] .. End[2] ) ] Art [ Random( 10 .. 50 ) ] The random number math is just picking a number in a range (assuming all choices are to be equally likely). The figuring is more about structuring the tables, and importantly, what to put in the intermediate tables. Hope that helps! TomB [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*TTRPGs General
Odd request for help: I need a mathematician!
Top