ID:264514
 
Code:
verb
Equip_Pistol()
overlays+=/obj/gun/pistol
Equip_M4_68()
overlays+=/obj/gun/machine
Equip_Bow()
overlays+=/obj/gun/bow
Equip_Pulse_Pistol()
overlays+=/obj/gun/pulse_pistol
Remove_Pistol()
overlays-=/obj/gun/pistol
Remove_M4_68()
overlays-=/obj/gun/machine
Remove_Bow()
overlays-=/obj/gun/bow
Remove_Pulse_Pistol()
overlays-=/obj/gun/pulse_pistol


Problem description:
BYOND sees a problem but I don't >.>(error:overlays:undefined var)

Are those verbs defined under anything?
DM Ref: The individual items in the list may not be directly accessed, since they are stored in a special internal format. However, the list operators +=, -=, and the procedures Add, Remove, and Cut work normally.

And I think your problem might be that your using references to the objects, instead of just adding the icon.
In response to Megelic
Megelic wrote:
DM Ref: (...)
And I think your problem might be that your using references to the objects, instead of just adding the icon.

Since you are already quoting the reference, you might as well take a look at atom.overlays, where adding a 'type' to overlays is explicitly used in an example.
Maybe you should do this?(If you already did, you forgot it in the Code Snippet) :

mob/verb
Equip_Pistol()
src.overlays+=/obj/gun/pistol // Or usr.overlays+=/obj/gun/pistol if need be
Equip_M4_68()
src.overlays+=/obj/gun/machine
Equip_Bow()
src.overlays+=/obj/gun/bow
Equip_Pulse_Pistol()
src.overlays+=/obj/gun/pulse_pistol
Remove_Pistol()
src.overlays-=/obj/gun/pistol
Remove_M4_68()
src.overlays-=/obj/gun/machine
Remove_Bow()
src.overlays-=/obj/gun/bow
Remove_Pulse_Pistol()
src.overlays-=/obj/gun/pulse_pistol
In response to Ernesto5432
You don't use src in verbs.
In response to Megelic
Yes, you do.
Problem is, those verbs weren't defined under anything with an overlays variable.
verb

//is not the same as

mob
verb
In response to Kaiochao
Err, I thought you used usr in verbs, and use src in most procs?
http://www.byond.com/members/ DreamMakers?command=view_post&post=35932
In response to Megelic
"usr is valid in verbs". Doesn't mean usr is forced.
In response to Kaiochao
Oh, I thought it was forced. Sorry.