Lists & Helpers
levelFromXp
$levelFromXp — Level reached with a given amount of XP
Level reached with a given amount of XP. Reverse of `$xpForLevel` and the same formulas.
Syntax
$levelFromXp[xp;(formula)]
Parameters
- xp (integer, required) — The XP.
- formula (text, optional) —
mee6(default),quadraticorlinear[:N].
Return Value
- number.
Usage
$levelFromXp[254] → "1"
$levelFromXp[255] → "2"
Example
$sendMessage[$levelFromXp[254]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.