diff --git a/docs/articles/dndR_Vignette.html b/docs/articles/dndR_Vignette.html index 9fba2b4..ce2f936 100644 --- a/docs/articles/dndR_Vignette.html +++ b/docs/articles/dndR_Vignette.html @@ -110,7 +110,7 @@
dndR::roll('3d6')
-#> [1] 14
+#> [1] 10
dndR::roll('3d8') + dndR::roll('1d4')
#> [1] 21
Note that ‘2d20’ is automatically assumed to be rolling with @@ -120,7 +120,7 @@
dndR::pc_creator(class = 'barbarian', race = 'half orc', score_method = "4d6")
#> ability raw_score race_modifier score roll_modifier
-#> 1 STR 17 2 19 +4
-#> 2 DEX 13 0 13 +1
-#> 3 CON 15 1 16 +3
-#> 4 INT 10 0 10 0
-#> 5 WIS 8 0 8 -1
-#> 6 CHA 10 0 10 0
You can check which classes and races are currently supported by
pc_creator
by running dnd_classes
or
dnd_races
. If you have a class/race in mind that isn’t
@@ -153,10 +153,10 @@
dndR::monster_creator(party_level = 5, party_size = 4)
-#> statistic value
-#> 1 Hit_Points 92
-#> 2 Armor_Class 16
-#> 3 Prof_Bonus 3
-#> 4 Attack_Bonus 7
-#> 5 Save_DC 16
-#> 6 Prof_Saving_Throws INT; DEX
-#> 7 Immune_to poison; acid
-#> 8 Resistant_to force; non-magical damage; necrotic; piercing; psychic
-#> 9 Vulnerable_to cold
-#> 10 STR +1
-#> 11 DEX +3
-#> 12 CON +1
-#> 13 INT +1
-#> 14 WIS +2
-#> 15 CHA +1
Note that if you use monster_creator
you may need to
help your players identify the creature’s immunities and vulnerabilities
before the actual confrontation with the creature to avoid
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml
index da04039..ee738f9 100644
--- a/docs/pkgdown.yml
+++ b/docs/pkgdown.yml
@@ -3,5 +3,5 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
dndR_Vignette: dndR_Vignette.html
-last_built: 2023-03-28T16:12Z
+last_built: 2023-03-28T16:23Z
diff --git a/docs/reference/ability_scores.html b/docs/reference/ability_scores.html
index 1d96920..76c83b5 100644
--- a/docs/reference/ability_scores.html
+++ b/docs/reference/ability_scores.html
@@ -81,35 +81,39 @@
# Roll ability scores using four d6 and dropping the lowest
ability_scores(method = "4d6")
+#> Total score low. Consider re-rolling?
+#> At least one ability very low. Consider re-rolling?
#> ability score
-#> 1 V1 16
-#> 2 V2 12
-#> 3 V3 18
-#> 4 V4 13
-#> 5 V5 11
-#> 6 V6 15
+#> 1 V1 12
+#> 2 V2 13
+#> 3 V3 17
+#> 4 V4 7
+#> 5 V5 8
+#> 6 V6 11
# Roll using 3d6 and dropping nothing
ability_scores("3d6")
+#> Total score low. Consider re-rolling?
+#> At least one ability very low. Consider re-rolling?
#> ability score
-#> 1 V1 9
-#> 2 V2 12
-#> 3 V3 9
-#> 4 V4 17
-#> 5 V5 14
-#> 6 V6 10
+#> 1 V1 18
+#> 2 V2 6
+#> 3 V3 8
+#> 4 V4 9
+#> 5 V5 12
+#> 6 V6 13
# Or if you're truly wild, just roll a d20 for each ability
ability_scores('d20')
#> Total score low. Consider re-rolling?
#> At least one ability very low. Consider re-rolling?
#> ability score
-#> 1 V1 11
+#> 1 V1 7
#> 2 V2 13
-#> 3 V3 8
-#> 4 V4 3
-#> 5 V5 5
-#> 6 V6 6
+#> 3 V3 3
+#> 4 V4 11
+#> 5 V5 7
+#> 6 V6 9
# Creates a monster from the specified average party level
monster_creator(party_level = 4, party_size = 3)
-#> statistic value
-#> 1 Hit_Points 77
-#> 2 Armor_Class 15
-#> 3 Prof_Bonus 3
-#> 4 Attack_Bonus 6
-#> 5 Save_DC 15
-#> 6 Prof_Saving_Throws DEX; CHA
-#> 7 Immune_to cold; radiant
-#> 8 Resistant_to necrotic; acid; bludgeoning; poison; piercing
-#> 9 Vulnerable_to lightning
-#> 10 STR +1
-#> 11 DEX +1
-#> 12 CON 0
-#> 13 INT +1
-#> 14 WIS +2
-#> 15 CHA +3
+#> statistic value
+#> 1 Hit_Points 77
+#> 2 Armor_Class 15
+#> 3 Prof_Bonus 3
+#> 4 Attack_Bonus 6
+#> 5 Save_DC 15
+#> 6 Prof_Saving_Throws CHA; WIS
+#> 7 Immune_to fire; piercing
+#> 8 Resistant_to force; necrotic; psychic; slashing; poison
+#> 9 Vulnerable_to bludgeoning
+#> 10 STR +1
+#> 11 DEX +2
+#> 12 CON +1
+#> 13 INT +1
+#> 14 WIS +1
+#> 15 CHA +4
# Create some information for an NPC
npc_creator(npc_count = 1)
-#> Race Job
-#> 1 stout halfling gladiator
+#> Race Job
+#> 1 half-elf knight
# Create a PC's base statistics from scratch
pc_creator(class = 'barbarian', race = 'half orc', score_method = "4d6", quiet = TRUE)
#> ability raw_score race_modifier score roll_modifier
-#> 1 STR 16 2 18 +4
+#> 1 STR 14 2 16 +3
#> 2 DEX 11 0 11 0
-#> 3 CON 14 1 15 +2
-#> 4 INT 11 0 11 0
-#> 5 WIS 14 0 14 +2
-#> 6 CHA 13 0 13 +1
+#> 3 CON 12 1 13 +1
+#> 4 INT 8 0 8 -1
+#> 5 WIS 9 0 9 -1
+#> 6 CHA 11 0 11 0
# Or you can roll separately and then create a character with that dataframe
my_scores <- ability_scores(method = "4d6", quiet = TRUE)
pc_creator(class = 'sorcerer', race = 'dragonborn', scores_rolled = TRUE, scores_df = my_scores)
#> ability raw_score race_modifier score roll_modifier
-#> 1 STR 5 2 7 -2
-#> 2 DEX 6 0 6 -2
-#> 3 CON 13 0 13 +1
-#> 4 INT 12 0 12 +1
-#> 5 WIS 11 0 11 0
-#> 6 CHA 14 1 15 +2
+#> 1 STR 12 2 14 +2
+#> 2 DEX 10 0 10 0
+#> 3 CON 14 0 14 +2
+#> 4 INT 13 0 13 +1
+#> 5 WIS 12 0 12 +1
+#> 6 CHA 15 1 16 +3
# Roll your desired dice (i.e., randomly sample the specified die)
roll(dice = "4d6")
-#> [1] 16
+#> [1] 14
# Returned as a number so you can add rolls together or integers
roll('1d20') + 5
-#> [1] 11
+#> [1] 25
roll('2d8') + roll('1d4')
-#> [1] 10
+#> [1] 13