ID:1117991
 
Code:
Stat
var/value
var/XPvalue
var/MXPvalue

proc/check(mob/person)
if(XPvalue >= MXPvalue)
value += 1
person.XP += 1
New(v,x,m)
value = v
XPvalue = x
MXPvalue = m

mob
var/stat/pow
var/stat/def
var/stat/cha

New()
..()
pow = new(5,0,10)
def = new(5,0,10)
cha = new(5,0,10)


Problem description:

Every time I try datums, I always mess up. I therefore make attempts to avoid them. However, I'm currently in a position where I really do need to use datums, and it's giving me an error every time I call a new datum.

        pow = new(5,0,10)
def = new(5,0,10)
cha = new(5,0,10)


These three lines all have the error "Undefined type: ((datum))", I don't know what it's talking about, I've already defined them above.
Whoops, forgot about that. Thank you so much!