ID:175081
 
How do you let the M input in the usr verb like this

mob
verb
Ask(mob/M in world)
and then the switch would be here?
Im not 100% sure what you mean, but I think this is what your after. If its not look up switch() and input() in the refrence and that should clear things right up.
mob
verb
Ask(var/mob/M in world)
var/switch = input(M, "Question","Title","Defualt Answer") as text
switch(switch)
if("Good answer")
src << "[M.name] knows his stuff"
if("Bad answer")
src << "[M.name] is one jive turkey"


And one bonus note: In the forums when showing source code you should always use the <*dm> <*/dm> HTML tags, without the *'s.
So:
mob
verb
Becomes:
<*dm>
mob
verb
<*/dm>
In response to DarkView
So you know, you can use & lt;s so that <s appear as they should. (note, remove the space)
IE: <DM> </DM>
In response to Jon88
Ahhh very clever indeed. I'll have to write that one down.