Working on experience RPG system. Stuck in an equation
Im doing a basic level experince system for a game.
At the moment I managed to get the level raise when the player gets X ammount EXP.
Issue is that I want the level to be harder to encount when each level is reached.
At the moment you are level 1 and take level 2 by gaining 5 experince.
To get level 3 you get 5 more experince at the moment.
Easy explanation = You level each 5 exp at the moment.
I want it to be so when you level up the experince need to get like tripple up etc.
level 1 - 2 = 5 exp needed.
level 2 - 3 = 15 exp more exp in total experince.
level 3 - 4 = 45 exp more exp needed in total experince.
And so on. I want it to count from 0 all time and have levels set, harder to get level each level if you know how I mean.
I know there is an easy equation to this since Ive done LUA scripts before with this kind of experince thing but I cannot remember how it was done.
This is what I managed to do so far. It counts well when killing monsters that have experince set to an ammount. Level count good too. Still I want that little fix equation that makes it harder to gain level after each level taken.
Dont need a big SCRIPT written or a huge explanation, only a simple one whats the way to do it. More attributes or what ever needed for this equation to work.