Unit (Data Type)
A string naming the unit an experience value is measured in. It is used by apoli:xp, which reads the same two numbers the vanilla XP bar keeps.
Values
| Value | Meaning |
|---|---|
levels | Whole experience levels, the number shown above the XP bar. Level 30 is 30, however many points it took. |
points | Raw experience points, the total the player has collected. Level 30 is 1395 points, so the two units can never be swapped for each other. |
Example
{
"type": "apoli:xp",
"unit": "levels",
"comparison": ">=",
"compare_to": 30
}note
The apoli:xp_levels and apoli:xp_points aliases fill in unit for you, so a condition written with one of them never needs to name it. apoli:add_xp takes no unit, and has a points field and a levels field instead.