mob/var
hit_points = 50 //starting hit points
magic_points = 50 //starting magic points
lvl = 1 // starting lvl
exp = 0 // starting exp
expn = 50 // How much exp needed for next lvl?
mob
Stat()
stat(,name)
stat("HP:",hit_points)
stat("MP:", magic_points)
stat("Level:",lvl)
stat("Exp:",exp)
stat("Exp Needed:",expn)
1. For this code here, if there was some way to add the needed EXP for the next levels. Like, for level 2, you need 100 EXP
2. Um, I need help creating stats like, Strength and Agility(Speed) and then giving it attributes for it. I wanted 6 stats.
I wanted 6 stats:
Vitality- to increase HP
Strength- to increase weapon damage
Power- to increase magic and skill damage
Agility- for dodging and whatnot
Spirit- how well you block magic
???- how well your accuracy is(for Archers and long range attacks)
Can someone help me program this?
Those are your stats, which you just need to add on.
That's a basic levelup proc. This can be modified to change in any var. To make it work, just call upon the proc whenever the usr gains exp.