Hello, in my rpg game, I would like for my players to level up based off experience. However, i want the gained experience to be greater if you defeat an enemy greater than your level, and less experience gained when defeating an enemy with a lower level. Also, after leveling up, i wanted the persons max experience to be greater everytime. Pretty much like how pokemon handles their leveling/experience.
Now, i only understand how to do this using a more “flat” formula, such as :
But it’s not my goal. So how do I make players earn more XP when defeating enemies with greater levels rather than those with lower levels. Any help would be greatly appreciated!
Pretty much as @Errorsatz posted, but I’d probably consider how many levels above or below they are and multiply that by a value, then use that to add or subtract from 1f to get an increase based on the number of levels above or below.
Increase would be the same thing. Base exp + level * an amount to add on per level = required exp