I'm making a leveling system for my Discord server using BotGhost and I'm having some trouble getting the XP curve balanced.
The idea is that leveling should be fairly quick at lower levels but get progressively harder the higher you go. Right now early levels are way too fast, but even at really high levels it still feels pretty easy to level up.
I still want high levels to be obtainable in a reasonable amount of time tho. Level 100k should be a long-term goal, not something that takes an unreasonable amount of grinding.
These are the 3 main formulas I'm using atm:
Level
{solve_equation[floor((-95+sqrt(9025+20*{BGVAR_totalxp[{event_user_id}]}))/10)]}
This calculates the users level based on their total XP.
2. XP for next level
{solve_equation[floor(5*({BGVAR_level[{event_user_id}]}+1)*({BGVAR_level[{event_user_id}]}+1)+95*({BGVAR_level[{event_user_id}]}+1))]}
This calculates how much total XP is needed to reach the next level. The amount increases with every level, so it should take longer to level up as you progress.
3. XP Buff
{solve_equation[floor(24+28776*{BGVAR_level[{event_user_id}]}/({BGVAR_level[{event_user_id}]}+28376))]}
This is a multiplier based on the users level. It starts at 24 and slowly increases towards 28800 as the level gets higher. It's meant to balance out the increasing XP requirements.
For context, I'm using BotGhost to build the bot, so these formulas use BotGhost's `solve_equation` function and variable system rather than regular JavaScript.
What would you guys change to make the progression feel better? I'm mainly trying to make early levels a bit slower and make higher levels actually take longer to reach, without making level 100k take an unrealistic amount of time.
I'd prefer to keep the general structure of these formulas if possible, but I'm open to general changes and changing the numbers and scaling.
Any suggestions are much appreciated.