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
*Dungeons & Dragons
Free 60+ page Guide to Sword & Sorcery for 5E D&D
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="CapnZapp" data-source="post: 9347526" data-attributes="member: 12731"><p>In an <a href="https://www.enworld.org/threads/how-do-you-handle-randomly-rolling-for-stats.704257/post-9347332" target="_blank">unrelated thread someone posted</a> a link to <a href="http://aramis.hostman.us/dnd/RedrickRoller.html" target="_blank">this site</a>, which generates entirely random but still legal 27 point buy characters with a single click, using the method of purchasing one random ability point at a time until all 27 points are used up.</p><p></p><p>I liked the idea more than the code so I "had to" write my own. My original 5E-legal code is in that thread. For purposes of this thread, however, I'm presenting y'all with a variant that might be of use in a "world where men are mighty, women are voluptuous!"</p><p></p><p>Since not everybody is aboard gender differentiated starting ability scores, I'm using spoiler tags. Simply don't click the spoiler if you don't think this idea has a place in your S&S campaign.</p><p></p><p>[SPOILER]</p><p>To be clear, what this code does is it presents two buttons instead of one: to generate male and female characters respectively. Male characters are 50% as likely to increase Strength as any other stat while female characters are 50% as likely to increase Charisma. That change alone makes for what I believe is a genre-appropriate difference. Do note - this can still result in a male with, say Strength 11 or 12 - but it makes it likely he'll be stronger and very unlikely he'll be weaker. Same for females and Charisma - far from every female character will get 14 or 15 in Charisma, but very few will be generated with an 8 or 9.</p><p></p><p>Simply paste the following code into a new Notepad and save it as "roll.html", then double-click that file to run it in your default browser. I won't even try to attach a html file; I'm sure multiple computer systems would get a heart attack for fear of viruses if I tried...</p><p></p><p>Note: These characters remain completely legal 5E 27-point buy characters, exactly what the Xoth Player's Guide suggests.</p><p></p><p>[CODE=html]<!DOCTYPE html></p><p><html lang='en'></p><p><head></p><p> <meta http-equiv="Content-Type" content="text/html; charset=utf8"></p><p> <meta name="viewport" content="width=device-width, initial-scale=1.0"></p><p> <title>Redrick Roller (Zapp's Sword and Sorcery variant)</title></p><p></head></p><p></p><p><body></p><p> <button onclick="roll(false)">Roll up a male!</button></p><p> <button onclick="roll(true)">Roll up a female!</button></p><p> <pre id="output"></pre></p><p></p><p> <script></p><p>function roll(female) {</p><p> // start with all 8s and purchase a +1 increase in one random stat until all points are used up</p><p> // stats have a 2 in 13 probability of being selected except one stat for each sex with 3 in 13.</p><p> let pts = 27;</p><p> let stats = [8, 8, 8, 8, 8, 8];</p><p> let costs = [1, 1, 1, 1, 1, 2, 2, 99];</p><p> let stat;</p><p> let output = document.getElementById("output");</p><p> while (pts > 0) {</p><p> let cantbuy = true;</p><p> let cost;</p><p> while (cantbuy) {</p><p> stat = Math.floor(Math.random() * 13);</p><p> if (stat === 12) {</p><p> stat = (female ? 5 : 0);</p><p> } else {</p><p> stat = Math.floor(stat / 2);</p><p> }</p><p> </p><p> console.log("roll " + stat);</p><p> cost = costs[stats[stat]-8];</p><p> cantbuy = (cost > pts);</p><p> }</p><p> pts -= cost;</p><p> stats[stat]++;</p><p> console.log("increase " + stat + ", pts left " + pts);</p><p> }</p><p> output.textContent += "STR" + (female ? ": " : "> ") + stats[0] +</p><p> " CON: " + stats[1] +</p><p> " DEX: " + stats[2] +</p><p> " INT: " + stats[3] +</p><p> " WIS: " + stats[4] +</p><p> " CHA" + (female ? "> " : ": ") + stats[5] + ".\n";</p><p>}</p><p> </script></p><p></body></p><p></html>[/CODE]</p><p></p><p></p><p></p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="CapnZapp, post: 9347526, member: 12731"] In an [URL='https://www.enworld.org/threads/how-do-you-handle-randomly-rolling-for-stats.704257/post-9347332']unrelated thread someone posted[/URL] a link to [URL='http://aramis.hostman.us/dnd/RedrickRoller.html']this site[/URL], which generates entirely random but still legal 27 point buy characters with a single click, using the method of purchasing one random ability point at a time until all 27 points are used up. I liked the idea more than the code so I "had to" write my own. My original 5E-legal code is in that thread. For purposes of this thread, however, I'm presenting y'all with a variant that might be of use in a "world where men are mighty, women are voluptuous!" Since not everybody is aboard gender differentiated starting ability scores, I'm using spoiler tags. Simply don't click the spoiler if you don't think this idea has a place in your S&S campaign. [SPOILER] To be clear, what this code does is it presents two buttons instead of one: to generate male and female characters respectively. Male characters are 50% as likely to increase Strength as any other stat while female characters are 50% as likely to increase Charisma. That change alone makes for what I believe is a genre-appropriate difference. Do note - this can still result in a male with, say Strength 11 or 12 - but it makes it likely he'll be stronger and very unlikely he'll be weaker. Same for females and Charisma - far from every female character will get 14 or 15 in Charisma, but very few will be generated with an 8 or 9. Simply paste the following code into a new Notepad and save it as "roll.html", then double-click that file to run it in your default browser. I won't even try to attach a html file; I'm sure multiple computer systems would get a heart attack for fear of viruses if I tried... Note: These characters remain completely legal 5E 27-point buy characters, exactly what the Xoth Player's Guide suggests. [CODE=html]<!DOCTYPE html> <html lang='en'> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Redrick Roller (Zapp's Sword and Sorcery variant)</title> </head> <body> <button onclick="roll(false)">Roll up a male!</button> <button onclick="roll(true)">Roll up a female!</button> <pre id="output"></pre> <script> function roll(female) { // start with all 8s and purchase a +1 increase in one random stat until all points are used up // stats have a 2 in 13 probability of being selected except one stat for each sex with 3 in 13. let pts = 27; let stats = [8, 8, 8, 8, 8, 8]; let costs = [1, 1, 1, 1, 1, 2, 2, 99]; let stat; let output = document.getElementById("output"); while (pts > 0) { let cantbuy = true; let cost; while (cantbuy) { stat = Math.floor(Math.random() * 13); if (stat === 12) { stat = (female ? 5 : 0); } else { stat = Math.floor(stat / 2); } console.log("roll " + stat); cost = costs[stats[stat]-8]; cantbuy = (cost > pts); } pts -= cost; stats[stat]++; console.log("increase " + stat + ", pts left " + pts); } output.textContent += "STR" + (female ? ": " : "> ") + stats[0] + " CON: " + stats[1] + " DEX: " + stats[2] + " INT: " + stats[3] + " WIS: " + stats[4] + " CHA" + (female ? "> " : ": ") + stats[5] + ".\n"; } </script> </body> </html>[/CODE] [/SPOILER] [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Dungeons & Dragons
Free 60+ page Guide to Sword & Sorcery for 5E D&D
Top