[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-512747-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-512747-en":130,"doc-similar-512747":163},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","dungeons-dragons-functions-for-players-and-dungeon-masters-version-311","Dungeons & Dragons Functions for Players and Dungeon Masters - Version 3.1.1","","dndR is an R package that provides a suite of Dungeons & Dragons-related functions for both players and Dungeon Masters. It supports general tabletop utilities such as dice rolling while also focusing on Fifth Edition rules, with compatibility for both the 2014 and 2024 versions when possible. The documentation includes functions for character creation inputs like ability scores, as well as tools for generating monsters, NPCs, encounters, spells, and supporting calculations and plots.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/dungeons-dragons-functions-for-players-and-dungeon-masters-version-311/512747/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/dungeons-dragons-functions-for-players-and-dungeon-masters-version-311/512747.png","ImageObject",300,407,{"name":42,"@type":43},"Aria","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-11","2026-10-06",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",9,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the purpose of the dndR package?","Question",{"text":63,"@type":64},"dndR provides Dungeons & Dragons related functions intended to be useful for both players and Dungeon Masters.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Which rolling methods can ability_scores use?",{"text":68,"@type":64},"ability_scores supports method strings \"4d6\" (drop lowest before summing), \"3d6\", and \"1d20\" (\"d20\" also accepted).",{"name":70,"@type":61,"acceptedAnswer":71},"Does ability_scores assign rolled ability scores to a specific character build?",{"text":72,"@type":64},"No. It rolls six ability scores and prints warnings for low totals or abilities, but it does not assign scores to facilitate player selection.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},512747,1791349425,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},2336464648322,"https://ap-avatar.wpscdn.com/avatar/2200025388227c56fec?_k=1778556882303663488","Package: dndR (via r-universe)  \nSeptember 19, 2026  \nType Package  \nTitle Dungeons & Dragons Functions for Players and Dungeon Masters Version 3.1.1  \nDate 2026-09-17  \nMaintainer Nicholas Lyon \u003C[nickjlyon@gmail.com](nickjlyon@gmail.com)>  \nDescription The goal of 'dndR' is to provide a suite of Dungeons & Dragons related functions. This package is meant to be useful both to players and Dungeon Masters (DMs) . Some functions apply to many tabletop role-playing games (e.g., dice rolling), but others are focused on Fifth Edition (a.k.a. ❵❵5e'') and where possible both the 2014 and 2024 versions are supported.  \nLicense MIT + file LICENSE Encoding UTF-8 LazyData true  \nLanguage en-US  \nURL [https://njlyon0.github.io/dndR/](https://njlyon0.github.io/dndR/), [https://github.com/njlyon0/dndR](https://github.com/njlyon0/dndR)[ ](https://github.com/njlyon0/dndR)BugReports [https://github.com/njlyon0/dndR/issues](https://github.com/njlyon0/dndR/issues)  \nDepends R (>= 3.5)  \nImports dplyr, ggplot2, magrittr, purrr, stringr, tidyr Suggests knitr, rmarkdown, testthat (>= 3.0.0)  \nVignetteBuilder knitr Config/testthat/edition 3 Config/roxygen2/version 8.1.0 NeedsCompilation no  \nAuthor Nicholas Lyon [aut, cre, cph](ORCID:  \n\u003C[https://orcid.org/0000-0003-3905-1078](https://orcid.org/0000-0003-3905-1078)>), Tim Schatto-Eckrodt [aut]([https://kudusch.de](https://kudusch.de)), Humberto Nappo [aut](ORCID:  \n\u003C[https://orcid.org/0000-0001-7810-1635](https://orcid.org/0000-0001-7810-1635)>), Billy Mitchell [aut]([https://wj-mitchell.github.io/](https://wj-mitchell.github.io/))  \n2 Contents  \nRepository [https://cran.r-universe.dev](https://cran.r-universe.dev)[ ](https://cran.r-universe.dev)[Date/Publication](Date/Publication 2026-09-18 22:50:14 UTC)[ 2026-09-18 22:50:14 UTC](Date/Publication 2026-09-18 22:50:14 UTC)[ ](Date/Publication 2026-09-18 22:50:14 UTC)RemoteUrl [https://github.com/cran/dndR](https://github.com/cran/dndR)  \nRemoteRef HEAD  \nRemoteSha a460f72f95e92021dc08c158e1a3e420ecbac9f7  \nContents  \nability_scores ........................................ 3  \nability_singular ....................................... 4  \nclass_block ......................................... 4  \ncoin ............................................. 5  \ncr_convert .......................................... 6  \ncreature_list ......................................... 6  \ncreature_text ........................................ 7  \ncreatures ........................................... 8  \nd10 ............................................. 10  \nd100 ............................................. 10  \nd12 ............................................. 10  \nd2 .............................................. 11  \nd20 ............................................. 11  \nd3 .............................................. 11  \nd4 .............................................. 12  \nd6 .............................................. 12  \nd8 .............................................. 12  \ndnd_classes ......................................... 13  \ndnd_damage_types ..................................... 13  \ndnd_races .......................................... 14  \nencounter_creator ...................................... 14  \nfirst_names_fem ....................................... 15  \nfirst_names_masc ...................................... 16  \nmod_calc .......................................... 16  \nmonster_creator ....................................... 17  \nmonster_stats ........................................ 18  \nmonster_table ........................................ 18  \nnpc_creator ......................................... 19  \nparty_diagram ........................................ 20  \npc_creator .......................................... 21  \npc_level_calc ........................................ 22  \nprobability_plot ....................................... 23  \nrace_mods .......................................... 23  \nreroll ...........................................","cbCaikwUbDzzwU4u","https://ap.wps.com/l/cbCaikwUbDzzwU4u","pdf",154272,32,"English","# ability_scores\n## ability_singular\n# class_block\n# coin\n# cr_convert\n# creature_list\n# creature_text\n# creatures\n# d10\n# d100\n# d12\n# d2\n# d20\n# d3\n# d4\n# d6\n# d8\n# dnd_classes\n# dnd_damage_types\n# dnd_races\n# encounter_creator\n# first_names_fem\n# first_names_masc\n# mod_calc\n# monster_creator\n# monster_stats\n# monster_table\n# npc_creator\n# party_diagram\n# pc_creator\n# pc_level_calc\n# probability_plot\n# race_mods\n# reroll\n# roll\n# spell_list\n# spell_text\n# spells\n# Index","[{\"question\":\"What is the purpose of the dndR package?\",\"answer\":\"dndR provides Dungeons \\u0026 Dragons related functions intended to be useful for both players and Dungeon Masters.\"},{\"question\":\"Which rolling methods can ability_scores use?\",\"answer\":\"ability_scores supports method strings \\\"4d6\\\" (drop lowest before summing), \\\"3d6\\\", and \\\"1d20\\\" (\\\"d20\\\" also accepted).\"},{\"question\":\"Does ability_scores assign rolled ability scores to a specific character build?\",\"answer\":\"No. It rolls six ability scores and prints warnings for low totals or abilities, but it does not assign scores to facilitate player selection.\"}]","Dungeons & Dragons Functions for Players and Dungeon Masters - Version 3.1.1 | PDF",1791275156,81,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9c1b8a0afe3895aa15fb4b82e1328d6e.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f44efcf0f66c98ef57db6f16e21a21bd.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0ce250ce0a6a8b91d545863589b51907.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/3611c1d96d478d51f61787cf54e84861.webp",980,1268,{"list":164,"token":11},[165,171,177,184,190,196,203,209,216,222],{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":111,"category_name":29,"create_tm":170},511678,"Dungeons & Dragons Functions for Players and Dungeon Masters - Version 3 - Initial package description","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935776613/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=ceLBIyfa0kD14rNAjCeCd%2F5W%2B%2Fc%3D","dungeons-dragons-functions-for-players-and-dungeon-masters-version-3-initial-package-description",1791256005,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":30,"category_name":29,"create_tm":176},761744,"A MAGIC:THE GATHERING TO D&D 5TH EDITION CONVERSION - v1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230045917133/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=8xWYJIbnMdXC1oQvoiNF2wVHr2c%3D","a-magicthe-gathering-to-dd-5th-edition-conversion-v1",1795987356,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":29,"create_tm":183},509101,"DUNGEONS&DRAGONS - Basic Rules","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935319247/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=X6n8Z%2BK8UCCp1ccvGplryd39YGI%3D","dungeonsdragons-basic-rules",17,1791234328,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":182,"category_name":29,"create_tm":189},427087,"Dungeons and Dragons meet PowerPoint - an interactive ICT tabletop experience for EFL learners","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922401293/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=nzV2isKQlTj%2FAvE9l0UTV1Qj114%3D","dungeons-and-dragons-meet-powerpoint-an-interactive-ict-tabletop-experience-for-efl-learners",1790642745,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":55,"category_name":29,"create_tm":195},509835,"Dungeon Master’s Basic Rules - Version 0.5 - Monsters - Guidelines for understanding monster statistics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935330015/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=%2BNkH68IOpDj61i8NiHo3gv0WEWo%3D","dungeon-masters-basic-rules-version-05-monsters-guidelines-for-understanding-monster-statistics",1791237495,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":29,"create_tm":202},510409,"Free5e - Open-License D&D Rulebooks - Download Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935342568/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=cyQq%2B46XGQ05f4BlxABsUzd8nV4%3D","free5e-open-license-dd-rulebooks-download-guide",11,1791240998,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":111,"category_name":29,"create_tm":208},511164,"Roll20 DnD Character Builder - DnD character sheet features and top options","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935524802/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=q0m4V3XT5dVi3dbc3fOe7ezUf%2B4%3D","roll20-dnd-character-builder-dnd-character-sheet-features-and-top-options",1791248937,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":214,"category_name":29,"create_tm":215},509965,"Dungeon Master’s Basic Rules - Version 0.1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229934856666/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=CLycdg4GzM60eCtip1zi6fyvz6E%3D","dungeon-masters-basic-rules-version-01",12,1791238289,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":201,"category_name":29,"create_tm":221},509400,"New-Player-Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229934848496/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=P5S%2FiwPHUhRGcw1o1bg78feCLUU%3D","new-player-guide",1791235414,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":227,"category_name":29,"create_tm":228},512490,"The Fantasy Superhero - Alternate Rules for Dungeons & Dragons Fifth Edition - Character Creation and Advancement","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229936045645/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796179739&Signature=oaeu5Y9qXGUxmKpH43djSAGZtDA%3D","the-fantasy-superhero-alternate-rules-for-dungeons-dragons-fifth-edition-character-creation-and-advancement",14,1791271605]