ID:178935
 
Is there a way to make a verb not show up in a panel, but make it show up when you right click it?
huh How do u mean? eight click on wqhat?
Not to be rude but that doesn't make sense:P If its hidden then you can;t right click it:)
In response to Strange Kidd
I have items in my contents that have verbs attached to them. I want to be able to only right click it to have access to the verb, not have it in the verb panel. Here's the verb code, and I do have items below it, but I'm not putting that up.

-----

obj
weapons
icon = 'weapons.dmi'
verb
EquipWeapon()
set category = null
set src in usr
if (usr.weapon == 1)
if (src.suffix == "Equipped")
usr.strequip -= src.strbonus
usr.defequip -= src.defbonus
usr.aglequip -= src.aglbonus
usr.luckequip -= src.luckbonus
usr.intequip -= src.intbonus
src.suffix = ""
usr.weaponname = ""
usr.weapon = 0
usr << "You have unequipped the [src.name]."
else
usr << "You must unequip the [usr.weaponname]"
In response to Rubius
:P u need a get verb first
In response to Strange Kidd
Here's the whole code minus items. I just don't want the verb to show up in the stat panel. If I were to send the verbs to a different panel other than Commands, can I hide that one panel? I don't want to hide all panels, just one.

-------

obj
weapons
icon = 'weapons.dmi'
verb
EquipWeapon()
set category = null
set src in usr
if (usr.weapon == 1)
if (src.suffix == "Equipped")
usr.strequip -= src.strbonus
usr.defequip -= src.defbonus
usr.aglequip -= src.aglbonus
usr.luckequip -= src.luckbonus
usr.intequip -= src.intbonus
src.suffix = ""
usr.weaponname = ""
usr.weapon = 0
usr << "You have unequipped the [src.name]."
else
usr << "You must unequip the [usr.weaponname]"
else
if (usr.class in src.classallow)
if (usr.chargender in src.genderallow)
usr.strequip += src.strbonus
usr.defequip += src.defbonus
usr.aglequip += src.aglbonus
usr.luckequip += src.luckbonus
usr.intequip += src.intbonus
src.suffix += "Equipped"
usr.weaponname = "[src.name]"
usr.weapon = 1
usr << "You have equipped the [src.name]."
else
usr << "You cannot equip the [src.name]."
else
usr << "You cannot equip the [src.name]."

get()
set src in oview(0)
src.Move(usr)
DropWeapon()
set src in usr
if (src.suffix == "Equipped")
usr << "[src.name] is equipped. You must first unequip it."
else
src.Move(usr.loc)
In response to Rubius
To do that don't set src to anything on the verbs you want it to have. I believe thats how
In response to Super16
Nope, still showing up.
In response to Strange Kidd
How about using Click() and for your get verb do that stuff for ex.

obj/blah
Click()
set src in usr.contents
usr.equip=1
then that other things
verb
Get()
Move(usr)
In response to Super16
Nope, still showing up.
In response to Super16
Okay, it works somewhat. It does equip when I click, but I would much rather it show up if I were to right click on the item, because I would like the Drop and Equip to show up in the same popup.
Simply put you can't if a verb's hidden var is set to 1 it won't show up in right click menus, if the hidden var is 0 it is in menus.