Experience To Level
PureExperienceToLevelCalculates the level from total XP using an exponential curve (XP needed = BaseXP * Level^ExponentFactor).
Type: Pure (no side effects)
Category: Fortuna|Gameplay Utilities
Keywords: gameplay utilities
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| TotalXP | int | — | TotalXP parameter |
| BaseXP | int | 100 | BaseXP parameter |
| ExponentFactor | float | 1.5 | ExponentFactor parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| Level | int | Level output |
| XPIntoCurrentLevel | int | XPIntoCurrentLevel output |
| XPForNextLevel | int | XPForNextLevel output |
| LevelProgress | float 0-1 | LevelProgress output |
Example Use Cases
Example 1
Standard RPG leveling system.
Example 2
Skill proficiency progression.