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?
ID:165319
Jan 16 2007, 9:32 pm
|
|
Jan 17 2007, 1:49 am
|
|
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 |