ID:267637
 
How do I have a command called drink where the click on it and a list comes up and the pick one and it sends a message to the world. I can't get it.


mob
verb
drink()
??????????????
??????????????
world << "[usr] drinks [?]"


please help me, thankyou
Anyone!!!Please!!!
In response to Jade Arc Grid
I don't like forums any more.
In response to Jade Arc Grid
obj/bottled_water
water
name = "Bottled Water"
verb
Drink()
set src in oview(1)
alert("[usr.key] drinks the water!")
del(src)

There, youll have to make it more complicated if you want. I dont know if you wanna use hunger or something.
In response to Jade Arc Grid
Wow, totally illegal bumps..

When you say "COME ON HELP ME!", that just makes the helpers just blink off your thread. It'd also help if we knew what on earth you're trying to ask.

-Camaro-
In response to Shades
No no its a chat game.


mob/verb/drink()
than I want a box to come up that lists drinks than they click on it and it says to the world [usr] drank [whatever]
In response to Jade Arc Grid
Look up switch() in the help file.

-Camaro-
In response to Camaro
switch() would work better :p
In response to Jotdaniel
Damn my spelling :P

-Camaro-
In response to Camaro
I believe hes looking for something like this.


mob/verb/drink()
switch(input("What would you like to drink?", "Drink?", text) in list ("Beer","Wine","Champaign","Rum","Whiskey","Grog","Vodka"))
if("Beer")
world << "[usr] drinks beer and begins to get loopy."
if("Wine")
world << "[usr] drinks wine and begins to get loopy."
if("Champaign")
world << "[usr] drinks champaign and begins to get loopy."
if("Rum")
world << "[usr] drinks rum and begins to get loopy."
if("Whiskey")
world << "[usr] drinks whiskey and begins to get loopy."
if("Grog")
world << "[usr] drinks grog and begins to get loopy."
if("Vodka")
world << "[usr] drinks vodka and begins to get loopy."
Hows about this?

<code>mob/verb/Drink(drink in list("Water", "Beer", "Ale", "Wine")) world << "[src] drinks some [lowertext(drink)]."</code>
In response to Cystlar
There is an easier way..Just make whatever they want to drink a var (IE:Drinking) then show something like this world << "[usr] drinks [Drinking] and starts to get loopy."