Click()
if(src.equiped == 0)
usr.overlays += src.icon
usr << "You have equiped the: <u>[src]</u>."
suffix = "(Worn)"
src.equiped = 1
else
if(src.equiped == 1)
usr.overlays -= src.icon
usr << "You have unequiped the: <u>[src]</u>."
suffix = null
src.equiped = 0
else
usr << "Error: </b>You may only have one of: <u>[src.name]</u> equiped."
return
clothshirt
name = "shirt"
icon='clothshirt.dmi'
value = 500
equiped = 0
Problem description:
Good day everyone, i'm trying to make a start to making a Boku no Hero game first time :). Currently i'm having some problems with the Click Proc that let me equip stuff that is lying on the gras.. Can you guys give me some hints on how to block this?
http://www.byond.com/games/Falacy/RPGStarter
In your script, have to check your item is in your inventory. If it is - do some stuff.