obj
verb
Get()
set category=null //this makes sure it will be a hidden verb. Just right click to use the verb
set src in oview(1) //when you get close the Get verb shows up
src.Move(usr) //puts it in the inventory
usr << "<b>You picked up a [src]!<b>" //shows the user in text his actions
Drop()
set category=null
set src in usr //tells the verb where the item is
src.Move(usr.loc) //takes it out of the inventory and drops it where you are standing
usr << "<b>You dropped your [src]!<b>"
verb
Equip()
set category=null
set src in usr
if(usr.equip >= 15)
usr << "[src.name] is already equiped" //instead of typing the name just copy and paste this into where is needed.src.name will show Sword is already equiped!
else
usr.equip += 1
usr.overlays += src.icon
suffix += "{-Equiped-}" //Makes the suffix appear beside it in the inventory tab
usr << "<b>You equip your [src.name].<b>"
Un_Equip()
set category=null
if(usr.equip == 0)
usr << "You don't have anything equiped"
else
suffix = "" //Note*This only works if you have 1 suffix
usr.equip -= 1
usr.overlays-=src.icon
usr << "<b>You place your [src.name] back into your inventory.<b>"
Problem description:
Alright. So this code worked before. Its supposed to overlay the object you are equipping's Icon when you equip. However, it doesnt do jack shit. Any thoughts on why?