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?
Copyright © 2024 BYOND Software.
All rights reserved.
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?