Description Usage Arguments Details Note See Also
Creates a DnD 5th edition character that is roughly built according to the rules. An important point is that the object is automatically built inside the function, DO NOT USE ASSINGMENT. This is redundant.
1 2 |
which.person |
Who is this character? Any character string will work, don't need to use quotes but it cannot deal with spaces inside the string. Please use either underscores/hyphens/quotes for such things. Thank you! |
which.level |
What level is the character? Please only choose numbers between 1 and 20. |
class |
What class would you like the character to be? It will default to being randomly generated. Again, no quotes please. The choices are the basic 12 given in the Player's Handbook. |
race |
What race would you like the character to be? It will default to being randomly choosen. Again, no quotes please. Possible choices are Elf, Human, Half-elf, Half-orc, Halfling, Dragonborn, Gnome, Tiefling, Dwarf. |
... |
The method used to roll the dice. Options include Commoner.Method (which is defaulted inside of DnD), Base.Method, Pilsfer.Method, Heroic.Method, and Ferguson.Method. |
The following are all the pieces returned by the functon.
Gamer: which.person
Race: The race of the character, one of 9 possible
Level: which.level
Class: The class of the character, one of 12 possible
Proficiency.Bonus: The proficiency bonus modifier for known skills and saves
Saves: Known saves of the class, 1 for known, 0 for unkown
Skills: Known skills of the class
hp: The maximum and current hit points of a character
Statistics: The Stats and mod created for the character. Go to stat.roll help page for more indepth coverage. IMPORTANT: Stats are assigned according to the class inside the DnD function so do not try to pass this parameter in!
Weapons: Three randomly assigned weapons regardless of proficiency or class
Armor.Class: What armor is the character wearing and what is his AC?
Background: Personality and motivation for the character
Spells: The spells known/prepared for the character. See the help page for my.spells for more
The characters produced here will have a class (as in R class) of "DnD"
Method and Stats are covered more in depth at stat.roll
Method for obtaining the spells for a character at my.spells
Method for obtaining the armor class for a character at armor.class
Method for obtaining the hit points for a character at hp.calculator
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.