ID:174740
 
i want to have it so when my wizard goes up a level, he gets an additional 5 mp, but then the next time he lvls he gets an additional 6 mp, is there a way to make my wizard gain additional mp per lvl?
Polaris139 wrote:
i want to have it so when my wizard goes up a level, he gets an additional 5 mp, but then the next time he lvls he gets an additional 6 mp, is there a way to make my wizard gain additional mp per lvl?

Sounds like you want a fairly simple calculation. If you gain 5 when you hit level 2, 6 at level 3, 7 at level 4, etc, your additional points are directly related to your new level:

added = 3+new_level
mp += added
In response to Skysaw
Or you can just have a var called
gainmp
and everytime he gains a level do
gainmp++