pc_level_calc {dndR}R Documentation

Calculate Player Character (PC) Level from Current Experience Points (XP)

Description

Uses total player experience points (XP) to identify player character (PC) level and proficiency modifier. Only works for a single PC at a time (though this is unlikely to be an issue if all party members have the same amount of XP). Big thanks to Humberto Nappo for contributing this function!

Usage

pc_level_calc(player_xp = NULL)

Arguments

player_xp

(numeric) total value of experience points earned by one player

Value

(dataframe) current player level, XP threshold for that level, and the proficiency modifier used at that level

Examples

# Calculate player level from XP earned
pc_level_calc(player_xp = 950)


[Package dndR version 2.0.0 Index]