Here is the code:
/*
please disregard the order, i made this up really quick to show what i need help with.
this compiles but:
I'm looking for a way to display "equipped" in the stapanel,
next to an object that has been equipped. I've tried a couple of ways,
but i havent figured it out, how do i do it?
here is a sample of my equipment stuff:
*/
//turf
turf
icon='turf.dmi'
//obj var
obj/var
equip=0
//player mob
world
mob=/mob/player
mob/player
icon='player.dmi'
//statpanel
mob
Stat()
//bag
statpanel("Bag","Items:",contents)
//equppable objects
obj/equippable
layer =4
verb
//get verb
get()
set category="Action"
set src in oview(0)
loc = usr
//drop verb
drop()
if(equip==1) return null
else
set category="Action"
set src in usr
loc = usr.loc
//equippable weapons
weapons
//equippable swords
swords
//equippable longsword
Longsword
icon='longsword.dmi'
verb
//equip verb
equip()
if(equip ==0)
usr.overlays +='longsword.dmi'
equip =1
else
usr <<"Un-equip this first!"
//un-equip verb
un_equip()
if(equip==1)
usr.overlays -='longsword.dmi'
equip= 0
else
usr <<"you can't un-equip what you dont have on!"
try something like
equip
if(src.suffix!="equipped")
src.suffix="equipped"
else
usr<<"thats already equipped"