ID:178562
 
I am after having my "Ewer"'s Fill() verb only come up/be shown when the player is next to water.

Here is the Fill() verb:

            Fill()
set category = ("Commands")
if(full == 0)
usr << "There, now its full again..."
full = 1
if(full == 1)
usr << "Its already full, why would I wanna fill it anymore!?"


I have no idea as to how I would make it appear only when the player is next to water but if someone can help would you be willing to helping me?

Lee
turf/Water()
verb
Fill()
set src in oview(1)//that would do it
now the code here..
In response to DarkTitan
DarkTitan wrote:
turf/Water()
verb
Fill()
set src in oview(1)//that would do it
now the code here..

I have more than one water icon. Do you think there is another way at all?

Lee
In response to Mellifluous
turf
water
verb/Fill()
set src in oview(1)
//code here
water2
//stuff here
water3
//stuff here


That will give all the turfs defined under /turf/water such as /turf/water/water2 and so on the "fill" verb, is that what you wanted?
In response to Nadrew
Nadrew wrote:
> turf
> water
> verb/Fill()
> set src in oview(1)
> //code here
> water2
> //stuff here
> water3
> //stuff here
>

That will give all the turfs defined under /turf/water such as /turf/water/water2 and so on the "fill" verb, is that what you wanted?

Kinda yes...But that won't work as I have already tried it :(

Lee
I'll make a statement that will make the other posts invalid... the Fill() verb, in that circumstance, will show up even if a player doesn't have an ewer...
In response to Spuzzum
Spuzzum wrote:
I'll make a statement that will make the other posts invalid... the Fill() verb, in that circumstance, will show up even if a player doesn't have an ewer...

So if they have a Ewer and near water it can be filled but if they don't have a Ewer the verb is still there just not usable?