obj/Trees/tree_bberry
icon='tree_bberry.dmi'
verb
Pick()
set src in oview(1)
new/obj/Berrys/Bberry in usr.contents
usr << "You begin picking for berries!"
sleep(55)
usr << "[usr.name] gets [src.name]."
obj/Berrys/Bberry
icon='bberry.dmi'
verb
Get()
set src in oview(1)
src.Move(usr)
usr << "[usr.name] gets [src.name]."
Drop()
src.Move(usr.loc)
usr << "[usr.name] drops [src.name]."
Eat()
set src in usr
usr.Hunger-=5
usr<<"You ate a BlueBerry!"
del(src)
Problem description:
I cant seem to get a Berry out of this code, The idea is to stand next to the tree, click on the Pick verb, and it adds a berry to your inventory, alswo is there a way to make it every time you pick the tree looses a berry and the icon changes??
This is what you want:
new/obj/Berrys/Bberry(usr)
That creates a new /obj/Berrys/Bberry, and the first argument sent to New() is usr. When creating atoms, the first argument always becomes its loc (if possible), so that's the same as doing this:
Actually I recommend this for your pick verb instead:
Lummox JR