That would be very useful for my purposes, but I'm not sure how it's done.
Thanks for any help in advance.
ID:171277
![]() Oct 17 2004, 2:21 pm
|
|
Actually, only sort of.
I want if a variable x = 1, then the verb is visible and can be used. Otherwise, if x = 0, then the player can't see the verb and it can't be used. How would I accomplish this? |
Do you actually mean visible? If so you can put a verb on an object and make it only usable for people in view().
obj/flower/verb/pick() If not, then you can always add and remove verbs from a mobs verbs list. mob/GM/Mute(mob/M in world) |
I mean the latter.
Thanks, I can actually use that to do what I want. By visible, I mean the verb appears in the verb list when a variable is set to something. Not talkinga bout physical visibility. |
Gynax wrote:
I mean the latter. Ok you need to be totally clear on that, the code that was given remove the verb from the list, it has nothing to do with visibility. Meaning, you cannot use this verb unless it is assigned back to you. When you play with hidden, it makes the verb invisible, but still usable. Also using the set src thingie, the verb is tied to the object that the verb is acted apon. so it doesn't exist unless you are near enough to the object and it is viewable by you.... (pant...pant...pant...) |
Hell Ramen wrote:
He means like: I was just pointing out what he was asking for is not what he wanted. invisible is diffent from removed, or proximity. Just incase something like this comes up again. He's not the only one reading these posts.... =) |
Hell Ramen wrote:
He means like: On this topic, can you make a verb remove itself once used? If so how? I've tried this, it gives no error, but seems to act like I click the verb twice, and doesn't go away... verb |
You mean like that?