Code:
mob/proc
LevelCheck()
if(src.Exp>=src.Nexp)
src<<"<I><B><small>Through personal experience, your level increases! You are now level [src.Level+1]"
src.Level+=1
src.MaxHP+=rand(1,3)
src.MaxMP+=rand(1,3)
src.Str+=rand(1,3)
src.Def+=rand(1,3)
src.Agi+=rand(1,3)
src.Int+=rand(1,3)
src.Wis+=rand(1,3)
if(src.Class=="Hunter")
if(prob(30))
src.Str+=rand(5,10)
src<<"<i><b>Your perception of killing grows, increasing your Strength even more!"
if(prob(30))
src.Def+=rand(5,10)
src<<"<i><b>Your focus on protecting yourself has increased your Endurance even more!"
if(prob(15))
src.Agi+=rand(3,8)
src<<"<i><b>Your quick thinking in battle has increased your Agility even more!"
if(prob(10))
src.Int+=rand(2,5)
src<<"<i><b>The clearing of your mind and pure concentration has increased your Intellect even more!"
if(prob(10))
src.Wis+=rand(2,5)
src<<"<i><b>The scars of battle and travels have further increased your Wisdom!"
if(src.Class=="Druid")
if(prob(10))
src.Str+=rand(2,5)
src<<"<i><b>Your perception of killing grows, increasing your Strength even more!"
if(prob(10))
src.Def+=rand(2,5)
src<<"<i><b>Your focus on protecting yourself has increased your Endurance even more!"
if(prob(30))
src.Agi+=rand(5,10)
src<<"<i><b>Your quick thinking in battle has increased your Agility even more!"
if(prob(30))
src.Int+=rand(5,10)
src<<"<i><b>The clearing of your mind and pure concentration has increased your Intellect even more!"
if(prob(15))
src.Wis+=rand(3,8)
src<<"<i><b>The scars of battle and travels have further increased your Wisdom!"
if(src.Class=="Summoner")
if(prob(10))
src.Str+=rand(2,5)
src<<"<i><b>Your perception of killing grows, increasing your Strength even more!"
if(prob(15))
src.Def+=rand(3,8)
src<<"<i><b>Your focus on protecting yourself has increased your Endurance even more!"
if(prob(10))
src.Agi+=rand(2,5)
src<<"<i><b>Your quick thinking in battle has increased your Agility even more!"
if(prob(30))
src.Int+=rand(5,10)
src<<"<i><b>The clearing of your mind and pure concentration has increased your Intellect even more!"
if(prob(30))
src.Wis+=rand(5,10)
src<<"<i><b>The scars of battle and travels have further increased your Wisdom!"
if(src.Class=="Scout")
if(prob(30))
src.Str+=rand(5,10)
src<<"<i><b>Your perception of killing grows, increasing your Strength even more!"
if(prob(10))
src.Def+=rand(2,5)
src<<"<i><b>Your focus on protecting yourself has increased your Endurance even more!"
if(prob(30))
src.Agi+=rand(5,10)
src<<"<i><b>Your quick thinking in battle has increased your Agility even more!"
if(prob(10))
src.Int+=rand(2,5)
src<<"<i><b>The clearing of your mind and pure concentration has increased your Intellect even more!"
if(prob(15))
src.Wis+=rand(3,8)
src<<"<i><b>The scars of battle and travels have further increased your Wisdom!"
src.HP=src.MaxHP
src.MP=src.MaxMP
src.Exp=src.Exp-src.Nexp
src.Nexp*=2
for(var/obj/Skills/O in SkillList) //runs through all the skills in the game
if(O.LearnedBy==src.Class) //only checks the ones your class can learn of course!
if(O.LearnedOn==src.Level) //if youre on the level u learn it on..
src.contents+=new O.type //then the player learns the skill!
//contents is a built in list variable that can be used for inventories or the like
src<<"<I><B><small>You learned [O]!" //and lets give em a message about it
Problem description:
So the problem is that on line 78 it keeps saying:
src: expected end of statement
I dont really understand why it keeps saying that all of a sudden. I try removing that line to see how it does and it just says the same thing about line 77.
Can someone please help?
See how you've got a space on src.MP=src.MaxMP?