I am currently making a leveling system for a small game I'm working on, and I made a system where when a user follows another player into the game, the player who was followed gets 350 experience, which counts towards their level. However, if they have almost all of the experience for the level they are on, and the 350 experience puts them onto the next level + some experience, I need to figure out the proper XP amount to show.
Basically:
- User has 270/300 XP and they are on level 1
- User is followed, and as a reward they get 350 XP
- They now technically have 620 experience, but instead they are put onto level 2 + [some amount of experience]
So, I need to figure out: A. How to properly find the amount of experience the user would have after getting more experience B. What the number [some amount of experience] would be.
If this is too complicated, sorry. I can elaborate.

1 comment
Thank you for this. I will try to understand all of this by myself, even though I'm relatively new to scripting xD