obj/var/item=null
mob/verb/pickup(var/obj/O in get_step(usr,usr.dir))
if(O.item=="a")
var/Apple = 'Items1.dmi'
usr.icon_state="Holding"
usr.overlays += Apple
Apple.pixel_y = 20
obj/Apple
icon='Items.dmi'
icon_state="Apple"
pickup = 1
item="a"
Problem description:\
It says that "Apple.pixel_y" = Undefined var
How do i define it? i want it so when the pick it up, they get the overlay and it does up 20 pixels.
You need to create a new in order to edit its vars.