I need a code to set a limit to lvl up for example I have to gain 300 experience to climb to lvl 2 ..... 600 exp to level 3 ............. 900 lvl4 experience and all so ..... I need esooo ......... ........ |
mob That is how i would do it :) |
Phat T wrote:
> mob That is how i would do it :) What if the rollover_exp var is still higher than maxexp? I wouldn't do it the way you've shown. Edit: Where is mob/players used? |
Hmm, here it is
world You can always use math to set rollover_exp. I don`t see any problem here sir ^^ I am just showing him the way it could be done. |
Phat T wrote:
Hmm, here it is > You can always use math to set rollover_exp. I don`t see any problem here sir ^^ I am just showing him the way it could be done. I'm not having a dig or anything, but mob/players isn't used in that proc at all. Maybe DM has changed since I last went in to it, but from what I know the "Level_Up(mob/players) could just be Level_Up(). I personally would do this: mob/proc |
Personally I would go with something like this, but there are numerous ways to go about these things.
(Heavily commented for the OP) // Insert a level cap for your game |
How fast do you want it to climb exactly? Exponentially or a fixed amount each time?