I've played a couple games where a new spell would start out weak but if you used it a lot, it would become stronger over time. I'm looking for an ideal formula for such a mechanic. Assume that the number of times each skill is used adds +1 to what we'll call its XP. We'll call DMG the base damage that the skill inflicts or heals without any modification. You can also add in any other information that needs tracked, like say a cap on how much XP a skill can gain, or any other variables that need added to the formula. Lastly, it would be helpful if you briefly explained why your formula works well or maybe even how it works if it uses some complex math.
As a very simple example, this formula would linearly increase a skill's strength 2% each use until it reaches 3x it's original strength.
You don't have to assume that the base damage [DMG] is the starting point either. It could also be the ending or mid point if you feel that it would work better that way from a design standpoint. It needs to be the damage produced before applying your formula, though.
Thanks in advance for any input you provide! Let me know if you need any more detail than what I provided.
As a very simple example, this formula would linearly increase a skill's strength 2% each use until it reaches 3x it's original strength.
Code:
x = DMG * (1 + XP * 2 / 100)
Max XP = 100
You don't have to assume that the base damage [DMG] is the starting point either. It could also be the ending or mid point if you feel that it would work better that way from a design standpoint. It needs to be the damage produced before applying your formula, though.
Thanks in advance for any input you provide! Let me know if you need any more detail than what I provided.