Package: dndR 3.1.0.900

Nicholas Lyon

dndR: Dungeons & Dragons Functions for Players and Dungeon Masters

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.

Authors:Nicholas Lyon [aut, cre, cph], Tim Schatto-Eckrodt [aut], Humberto Nappo [aut], Billy Mitchell [aut]

dndR_3.1.0.900.tar.gz
dndR_3.1.0.900.zip(r-4.7)dndR_3.1.0.900.zip(r-4.6)dndR_3.1.0.900.zip(r-4.5)
dndR_3.1.0.900.tgz(r-4.6-any)dndR_3.1.0.900.tgz(r-4.5-any)
dndR_3.1.0.900.tar.gz(r-4.7-any)dndR_3.1.0.900.tar.gz(r-4.6-any)
dndR_3.1.0.900.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
dndR/json (API)

# Install 'dndR' in R:
install.packages('dndR', repos = c('https://njlyon0.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/njlyon0/dndr/issues

Pkgdown/docs site:https://njlyon0.github.io

Datasets:
  • creatures - Dungeons and Dragons Creature Information
  • monster_table - Dungeons and Dragons Quick Table for Creature Statistics
  • spells - Dungeons and Dragons Spell Information

On CRAN:

Conda:

data-sciencedungeons-and-dragonsttrpg

6.87 score 24 stars 22 scripts 308 downloads 38 exports 29 dependencies

Last updated from:7679c10f4f. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK147
source / vignettesOK192
linux-release-x86_64OK202
macos-release-arm64OK129
macos-oldrel-arm64OK163
windows-develOK94
windows-releaseOK109
windows-oldrelOK107
wasm-releaseOK113

Exports:ability_scoresability_singularclass_blockcoincr_convertcreature_listcreature_textd10d100d12d2d20d3d4d6d8dnd_classesdnd_damage_typesdnd_racesencounter_creatorfirst_names_femfirst_names_mascmod_calcmonster_creatormonster_statsnpc_creatorparty_diagrampc_creatorpc_level_calcprobability_plotrace_modsrerollrollspell_listspell_textsurnamesxp_costxp_pool

Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Character Creation
Ability Score Rolling | Detailed Character Creation | Ability Modifiers | Player Level Calculation | Non-Player Characters (NPCs)

Last update: 2025-04-03
Started: 2024-04-17

DMG versus dndR
dndR versus DMG Comparisons | cr_convert vs. DMG | xp_pool vs. DMG

Last update: 2025-04-03
Started: 2024-04-17

Encounter Balancing
Encounter Creation | XP Balancing | XP Balancing -- 2024 5e | XP Balancing -- 2014 5e

Last update: 2025-04-03
Started: 2024-04-17

Finding & Making Creatures
Standard Creatures | Searching with Criteria | Creature Descriptions | Generic Monster Stats | Converting Challenge Rating to XP | Monster Statistics Table | Homebrew Monsters

Last update: 2024-04-26
Started: 2024-04-17

Visual Tools
Dice Rolling Probabilities | Assessing Party Abilities

Last update: 2024-04-17
Started: 2024-04-17

Spells
Searching for Spells | Spell Descriptions

Last update: 2024-04-17
Started: 2024-04-17

Dice Rolling
Welcome to dndR! | Flexible Dice Rolling | Simple Dice Rolling

Last update: 2024-04-17
Started: 2024-04-17

Readme and manuals

Help Manual

Help pageTopics
Roll for All Ability Scoresability_scores
Rolls for a Single Ability Scoreability_singular
Assign Ability Scores Based on Classclass_block
Flip a Coincoin
Convert Challenge Rating to Experience Pointscr_convert
List Creatures Based on Criteriacreature_list
Retrieve Full Creature Description Text by Creature Namecreature_text
Dungeons and Dragons Creature Informationcreatures
Roll a Ten-Sided Dice ("d10")d10
Roll a One Hundred-Sided Dice ("d100")d100
Roll a Twelve-Sided Dice ("d12")d12
Roll a Two-Sided Diced2
Roll a Twenty-Sided Dice ("d20")d20
Roll a Three-Sided Diced3
Roll a Four-Sided Dice ("d4")d4
Roll a Six-Sided Dice ("d6")d6
Roll an Eight-Sided Dice ("d8")d8
Return Vector of Accepted Classesdnd_classes
Return Vector of Supported DnD Damage Typesdnd_damage_types
Return Vector of Supported DnD Racesdnd_races
Balance a Combat Encounter for Given Party Composition and Difficultyencounter_creator
Return Vector of Feminine First Namesfirst_names_fem
Return Vector of Masculine First Namesfirst_names_masc
Calculate Modifier for Specified Ability Scoremod_calc
Creates a Monster for Given Party Level and Sizemonster_creator
Quickly Identify Monster Statisticsmonster_stats
Dungeons and Dragons Quick Table for Creature Statisticsmonster_table
Create a Non-Player Character (NPC)npc_creator
Generate a Diagram of a Party's Ability Scoresparty_diagram
Create a Player Character (PC)pc_creator
Calculate Player Character (PC) Level from Current Experience Points (XP)pc_level_calc
Generate a Plot of the Frequency of Roll Outcomesprobability_plot
Identify Race-Based Ability Modifiersrace_mods
Re-Roll 1s from a Prior Dice Rollreroll
Roll Any Number of Diceroll
List Spells Based on Criteriaspell_list
Retrieve Full Spell Description Text by Spell Namespell_text
Dungeons and Dragons Spell Informationspells
Return Vector of Surnamessurnames
Adjust the XP Total by Number of Monsters and Party Sizexp_cost
Calculate Total XP of Monsters for Given Party Level and Difficultyxp_pool