Function and Variable List - ThaumRystra/DiceCloud GitHub Wiki

Functions

See the list of functions in Mathjs for more details.

Variables

ability scores

strength
dexterity
constitution
intelligence
wisdom
charisma

ability modifiers

strengthMod
dexterityMod
constitutionMod
intelligenceMod
wisdomMod
charismaMod

stats

hitPoints
tempHP
experience
proficiencyBonus
speed
armor

resources

level1SpellSlots
level2SpellSlots
level3SpellSlots
level4SpellSlots
level5SpellSlots
level6SpellSlots
level7SpellSlots
level8SpellSlots
level9SpellSlots
ki
sorceryPoints
rages
superiorityDice
expertiseDice
rageDamage

hit dice

d6HitDice
d8HitDice
d10HitDice
d12HitDice

damage modifiers

This is where you find resistance, immunity and vulnerability. They will give you the number you multiply your damage recieved by, so 0 for immunity, 0.5 for resistance, and 2 for vulnerability.

acidMultiplier
bludgeoningMultiplier
coldMultiplier
fireMultiplier
forceMultiplier
lightningMultiplier
necroticMultiplier
piercingMultiplier
poisonMultiplier
psychicMultiplier
radiantMultiplier
slashingMultiplier
thunderMultiplier

saves

strengthSave
dexteritySave
constitutionSave
intelligenceSave
wisdomSave
charismaSave

skills

acrobatics
animalHandling
arcana
athletics
deception
history
insight
intimidation
investigation
medicine
nature
perception
performance
persuasion
religion
sleightOfHand
stealth
survival
initiative
dexterityArmor

Levels

<className>Level

Where you replace with the exact name of your class, so FighterLevel will give you your number of levels in Fighter, provided you have that class, otherwise 0.

level

Level will return the sum of all your levels in all your classes. It is not based on your experience. If you have more experience than you need to level up, you'll need to increase your level in a class, or add a new class for this value to change.

Spell-specific variables

Spells and spell attacks have access to a further 2 variables, inherited from their spell list

attackBonus
DC
⚠️ **GitHub.com Fallback** ⚠️