Is there a way to hide verbs from right click menu's?
|
Theoretically that should work, but I've been trying to use it to give all obj's an admin-only verb like so..
obj/verb Admins are, on login, checked and set like so isadmin = 1 The admin check works as does the usr.sight, but for some reason with invisibility higher than 0, the right click doesn't show at all. |
No. see_invisible is a separate variable. SEEINVIS, SEEMOBS SEEOBJs and SEETURFS aren't actually anything. Where the heck are you getting those values from?
|
I wasn't aware this (below) wasn't doing that. My bad. It works now, thankyou.
usr.sight |= (SEEINVIS|SEEMOBS|SEEOBJS|SEETURFS) |
I can't remember exactly, it was a bit of older code I got ages ago from an admin type of thing. I think it might be a bit outdated
|
I think SEEINVIS might just be a poorly named abstraction for SEE_INFRA.
Don't know why they felt the need to expose SEEMOBS to replace SEE_MOBS, SEEOBJS for SEE_OBJS, and SEETURFS for SEE_TURFS though. |
set popup_menu = 0
Hide from command panels:
set category = null
Hide from anyone with see_invisibility < X:
set invisibility = X
Hide from everything:
set hidden = 1