obj
gun
verb
Get()
set src in oview(1)
usr.contents += src
view() << "[usr] picks up \a [src]"
Drop()
new/obj/gun(usr.loc)
view() << "[usr] drops \a [src]"
del(src)
Equip()
if(usr.weapon_equipped == 0)
overlays += /obj/gun
usr.str += 2
usr.weapon_equipped = 1
view() << "[usr] equips a sword."
else
usr << "You are already wielding something."
Unequip()
if(usr.weapon_equipped == 1)
usr.weapon_equipped = 0
usr.str -= 2
view() << "[usr] unequips a sword."
else
usr << "You aren't wielding this."
Problem description: i dont get how to overlay or anything i tried searching it up but i still dont get it but the con doesn't show up
Also, note that since you aren't specifying usr on overlays, you are adding to the equipped gun's overlays, as the current scope of the verb is src.