mob
proc
Levelup()
if(usr.exp>=src.maxexp)
usr.level++
usr.exp=0
usr.maxexp*=2
usr<<"You gained a level!"
usr.Statup()
else
..()//defaults if the if() doesn't return it's arguments
mob
proc
Statup()
usr.maxhealth+=20//adds to your health
usr.STR += 2
usr.DEF += 1
usr.health=src.maxhealth
usr<<"Your stats increase!"
//I need a good monster code to work with this becuase my other code got weird. Can anyone post up the code or show me were I can find one?
ID:167522
Mar 2 2006, 8:36 am
|
|
2. NEVER use usr in procs.
3. You don't need else ..()
4. Please read the DM Guide / Search for RPG tutorials.