ID:174523
 
heres the code i am using

obj
gold
icon = 'obj.dmi'
icon_state = "gold"
src().gold+= 5


I get this... 2 errors.

objects.dm:5:error:src :undefined proc
objects.dm:5:error:.gold:bad variable

what did I do wrong?
Ok well first of all you need a verb to pick up this gold.
Something like
obj
gold
icon= 'gold.dmi'
icon_state = "gold"
verb
Pick_Up()
set src in oview(1)
usr.gold += 5
usr << "You picked up five gold!"
del(src)
I think that would work. Your problem was the src().gold thingy. That wouldn't work because it doens't make any sense. () is for procs and .... it just was a big jumble of mess and bad things ok?
In response to Sir Ham
ok thanks