Code:
Levels
parent_type = /mob
var/Level = 1
var/Exp = 0
var/ExpN = 12
proc/Check()
if(Exp >= ExpN)
Level++
ExpN = ExpN*7^2/8/3
src<<"Level Up!"
return Check()
else
return Check()
mob/var/Levels/level = new
mob
Stat()
stat("Exp : [level.Exp] | [level.ExpN]")
stat("Level : [level.Level]")
Problem description:
I Get This Error.
proc name: Stat (/mob/Stat)
source file: Basic.dm,22
http://www.byond.com/forum/?post=1869567#comment15419097
When I actually tested your code I had 0 errors. So there may be a problem elsewhere in your project.