obj
weapons
icon = 'weapons.dmi'
verb
Equip()
set src in usr
if(!usr.equipped)
src.verbs+=/obj/weapons/verb/Unequip
src.verbs-=/obj/weapons/verb/Equip
src.wequ=1
src.suffix+="Equipped"
usr.equipped = 1
usr.atkr += src.a
else
usr << "You already have something equipped in that slot!"
Unequip()
set src in usr
if(!usr.equipped)
usr << "You dont have anything equipped!"
else
src.verbs-=/obj/weapons/verb/Unequip
src.verbs+=/obj/weapons/verb/Equip
src.wequ=0
src.suffix =""
usr.equipped = 0
usr.atkr -= src.a
obj
edges
layer = MOB_LAYER+60
icon = 'edge.dmi'
weapon
icon_state = "weapon"
screen_loc = "12,1"
rangemax = 29
rangemin = 0
client
New()
if(src.key == "Guest")
del src
..()
src.screen += new/obj/edges/weapon
Problem description:
Well I am trying to make it so when you equip a weapon it adds to the edge/weapon slot and when you unequip it takes it away.
MSN - [email protected]