proc/GainLevel()//This is the procedue to the end of the attack verb
if(usr.Exp>=usr.MaxExp)//This checks to see if the usrs exp is = or > Than the Max Exp
usr.Level+=1//This adds one level to the usrs level stat
usr.Exp=0//This brings there Exp down to 0
usr.MaxExp+=20//This adds 20 to the persons max exp for them to gain a level
usr.Hp += 5//This gains the usrs Hp up by 5
usr.MaxHp += 5 //This does the same as the Hp thing but with the max hp
usr << "Your Hp has increased"//This just tells them there hp has increased
usr.Str += rand(3)//This adds 3 to the usrs strength
usr << "Your Str has increased by 3"//This tells the usrs that there str went up by 3
usr<<"You have gained a level. You now need [usr.MaxExp] Exp to gain another level."//This just tells the they gained a level and tells them how much they need to go
Problem description:
i got this piece of code from a friend.
when i try to compile it says this:
Procs.dm:1:warning: /turf/Weapon/verb.1.2/.call: value changed
Procs.dm:1:warning: /turf/Weapon/verb.1.2/.call: value changed
Procs.dm:1:error: proc: expected end of statement
Test.dmb - 1 error, 2 warnings (double-click on an error to jump to it)
When i choose to not use this part of coding in my game it says the same, but now with another source of the probs.
when i choose to not use that part, and try, its another part thats wrong.
but before it worked perfectly.
Does any1 know how i can solve it without deleting my game or a part of it?
Or can some1 give me the coding wich will do the same as this and nothing more?(so it will work)