var/obj/equipment/chain_gauntlets/X
new X
X.stat_gain += 3+rand(1,usr.smith)
X.name += " +[X.statgain]"
usr.contents+= X //new/obj/equipment/chain_gauntlets/
Problem description:
ok, im trying to make an armor's stats be determined by the creators lvl as a smith. For some reason its reading X as null, so basically; how can I make X be the chain gauntlets.