proc
deathcheck()
if(src.hp <= 0)
if(src.client)
view() << "[src] has died."
usr.def += src.def / 2
usr.str += src.str / 2
src.Move(locate(1,1,1))
else
if(istype(src,/mob/Skeleton))
usr.def += 1
usr.str += 1
new/obj/Gold(src.loc)
for(var/obj/Gold/G in oview(1))
var/ramount = rand(10,25)
G.amount = ramount
del(src)
But that code would make it to where, if theres gold all around you, it would set all of thier amounts, equal ramount. How would i just change the amount of the one it just created? Since src is the skeleton, i couldn't do src.amount. Any help would be great.
Thanks
-Rcet
Or at least...I think that will work...lol