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
*Geek Talk & Media
EL formula help...
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="MonkeyBoy" data-source="post: 190238" data-attributes="member: 1229"><p><strong>right...</strong></p><p></p><p>OK, quick nip to the car-park later...</p><p></p><p>it appears that what you actually need to do is somewhat more complex...</p><p></p><p>this is somewhat pseudocode-like.</p><p></p><p>(once you have your list to work on)</p><p></p><p>look at the head of the list</p><p>search the rest of the list for</p><p>either;</p><p>a matched CR</p><p>or;</p><p>a CR 2 points lower than the head</p><p>if you find one;</p><p>delete both the head and the pair node</p><p>if you had a match, replace with a single entry with CR = HeadCR + 2</p><p>if it was a pair with CR 2 lower replace with a single entry with CR = HeadCR + 1</p><p></p><p>repeat this until you cannot find a suitable pair for the head, or until the list is one long</p><p></p><p>if you cannot match the head, you must then try again on the rest of the list without the head</p><p></p><p>Now; each time you reduce, you have to start again on the WHOLE list - you treat a combined CR as a single creature, so that allows you to revisit "irreducible" CRs later.</p><p></p><p>I suggest you use recursion to do this - your end case for any recursion wants to be whenever a reduction is made</p><p></p><p>There may come a point where you cannot reduce the list; the rules approach this from the opposite (easier) direction, assuming you will construct an encounter from CRs rather than wanting to build the CR / EL from the encounter.</p><p></p><p>There also rises the spectre of having lists that reduce only if tackled in a specific order...</p><p></p><p>Your other option is to invent a mechanism yourself which WILL reduce all lists, i.e. to plug the gaps</p><p></p><p>Good Luck!</p></blockquote><p></p>
[QUOTE="MonkeyBoy, post: 190238, member: 1229"] [b]right...[/b] OK, quick nip to the car-park later... it appears that what you actually need to do is somewhat more complex... this is somewhat pseudocode-like. (once you have your list to work on) look at the head of the list search the rest of the list for either; a matched CR or; a CR 2 points lower than the head if you find one; delete both the head and the pair node if you had a match, replace with a single entry with CR = HeadCR + 2 if it was a pair with CR 2 lower replace with a single entry with CR = HeadCR + 1 repeat this until you cannot find a suitable pair for the head, or until the list is one long if you cannot match the head, you must then try again on the rest of the list without the head Now; each time you reduce, you have to start again on the WHOLE list - you treat a combined CR as a single creature, so that allows you to revisit "irreducible" CRs later. I suggest you use recursion to do this - your end case for any recursion wants to be whenever a reduction is made There may come a point where you cannot reduce the list; the rules approach this from the opposite (easier) direction, assuming you will construct an encounter from CRs rather than wanting to build the CR / EL from the encounter. There also rises the spectre of having lists that reduce only if tackled in a specific order... Your other option is to invent a mechanism yourself which WILL reduce all lists, i.e. to plug the gaps Good Luck! [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Geek Talk & Media
EL formula help...
Top