obj/verb/Drop()
set src in view(1)
loc = usr.loc
what must io add to it to make it unequip and then drop the item?
ID:262751
Nov 13 2005, 12:44 pm
|
|
I want it so that when you drop a weapon/armor/accessory, if it's equiped, them to unequip then drop it. My drop code is:
obj/verb/Drop() what must io add to it to make it unequip and then drop the item? |
Nov 13 2005, 12:46 pm
|
|
Instead of an unequip verb make an unequip proc that is called by the verb. then call that proc in the drop verb.
|
In response to Dark Weasel
|
|
i understand what you mean by making it a proc, but i can't do that because of how my equipment proc is. MNy equipment proc is for each type of weapon/armor. meaning there is one for weapon,armor,shield,etc. and the unequip is specified for each one as is the equip. I want to keep that because it works right, but i want to make it *topic*
My equip proc looks like this obj |