mob
proc
levelup()
if(src.exp>=src.max_exp)
problem with this --> src.level+=1
src.exp = 0
src.max_exp+=rand(250,500)
makeHunter()
makeJounin()
Skills()
src<<"<font size=1><font color=white><b>Level Up +1"
src<<"<font size=1><font color=white><B>----------------"
src<<"<font size=1><font color=white><B>You Reach level [usr.level]"
src<<"<font size=1><font color=white><b>Skill Points +5"
src<<"<font size=1><font color=white><b>Next level at [max_exp]"
src.Skill_Points+=5
src.taiexp+=rand(10,25)
src.taiup()
src.tai=src.Mtai
src.ninexp+=rand(10,25)
src.ninup()
src.nin=src.Mnin
src.genexp+=rand(10,25)
src.gen=src.Mgen
src.genup()
src.maxhealth+=rand(10,100)
src.Mchakra+=rand(10,50)
Problem description:
runtime error: type mismatch
proc name: levelup (/mob/proc/levelup)
source file: BS.dm,541
usr: Yash (/mob)
src: Yash (/mob)
call stack:
Yash (/mob): levelup()
Heavy Dummy (/obj/Heavy_Dummy): Punch Dummy()
I have no clue what to do o.O
and you have usr in one of your output lines, should be src