ID:262998
 
Code:
area
Player1
chair
icon='Icon.dmi'
verb
Sit()
set src in oview(1)
usr.frozen++
usr.verbs-=/area/Player1/chair/verb/Sit


Problem description:
I'm obviously doing something wrong, not sure what. I just figured if I put the direction like I would for /mob/verb/blah it would work, and even though it doesn't give me errors, it doesn't work. The verb stays.
area
Player1
chair
icon='Icon.dmi'
verb
Sit()
set src in oview(1)
usr.frozen++
usr.verbs-=/area/Player1/S1/verb/Sit


Well, the type paths don't match. You have "S1" instead of "chair". Maybe that fixes it.


--Vito
In response to Vito Stolidus
Nah, it doesn't. Thanks though.
In response to J.Ryans
Hmm... I really don't know if you can do that (removing an object linked verb). You can use if-else to tell the player they're already sitting and bypass that entirely.

Otherwise, I can't figure it out.

--Vito
In response to Vito Stolidus
Try:

area
Player1
chair
icon='Icon.dmi'
verb
Sit()
set src in oview(1)
usr.frozen++
usr.verbs-=typesof(/area/Player1/S1/verb/Sit)


Not sure if that will change anything, but it might.
In response to KirbyRules
Nah. Looks like I have to make them into actual mob verbs.
change usr.verbs to src.verbs.
In response to J.Ryans
try this : src.verbs -= <whatever the verb was here>