I have a simple level system for TTT, the problem is that I can not make a multiplier to increase the experience needed by each level by multiplying it by 1.2, This is how the function responsible for calculating a needed experience to level up looks like:
function getXpNeeded(level, xp)
local XpNeeded = 250
if (xp >= XpNeeded) then
return getXpNeeded(level + 1, xp - XpNeeded)
end
return level, xp, XpNeeded
end
For example, I gave here a fixed number "250", of course the simplest option would be to do it: "basic number * level", but I would like that with each level gained the needed experience multiplied by 1.2, can I do something like this script?
1.2 -> math.pow
I think it's not what I'm asking for :/
Sorry, you need to Log In to post a reply to this thread.