ID:165319
 
mob
proc
Levelup()
if(src.exp >= src.maxexp)
src.hp += 1
src.exp = 0


Allright Now How do i make this so when i ahve lets say "4 classes" And i want Each Class to get a diffrent "HP" Boost how would i add it in?
mob
proc
Levelup()
if(exp >= maxexp)
if(class=="Fighter")
hp+=10
if(class=="Mage")
hp+=5
exp = 0
In response to Ripiz
I prefer to do something more robust, which is create a 'class' datum that then implements a LevelUp() proc that takes the mob levelling up as an argument, and then all mobs with classes can have a 'class' datum as a variable. Much nicer then that solution.
In response to Jp
And there's always the object oriented approach. =)

mob/PC
var/lvl,exp,hp,mp,str,will
proc/LevelUp()
lvl++
exp=0
hp+=2
mp+=1
str+=1
will+=1

Knight
LevelUp()
..()
hp+=1
str+=1
Wizard
LevelUp()
..()
mp+=1
will+=1