ID:261828
 
Ok, heres what I want: When a user walks to the receptionist and Talks to her he is automatically moved to the healing room. I know how to do this in so many ways and I got it working. The only problem is when the user walks to where he should go he stays facing in the direction he was when he talked to the nurse. Also, if you move while this is happening you can go anywhere. I don't want the user to be able to move while this is happening. I know this has to use Move() and walk_to I think. Anyways, heres the code.

mob
Receptionist
verb
Talk()
set src in oview(2)
switch(input("Welcome to the R.A Hospital, would you like to have your energy restored?")in list("Yes Please","No thank you","Do you know anything about Robot Tournaments?"))
if("Yes Please")
usr.loc = locate(377,475,1,)
sleep(5)
usr.loc = locate(378,475,1)
sleep(5)
usr.loc = locate(379,475,1)
sleep(5)
usr.loc = locate(380,475,1)
sleep(5)
usr.loc = locate(381,475,1)
sleep(5)
usr.loc = locate(381,476,1)
sleep(5)
usr.loc = locate(381,477,1)
sleep(5)
usr.loc = locate(381,478,1)
sleep(5)
usr.loc = locate(381,479,1)
sleep(5)
usr.loc = locate(381,480,1)
sleep(5)
usr.loc = locate(381,481,1)
sleep(5)
usr.loc = locate(381,482,1)
sleep(5)
usr.loc = locate(381,483,1)
sleep(5)
usr.loc = locate(381,484,1)
if("No thank you")
usr << "Thank you for visiting the R.A Hospital, please come again."
if("Do you know anything about Robot Tournaments?")
usr << "Well I'm not really into that sort of thing. My husband does that for a living but I just like healing those cute little robots."


mob/Receptionist
icon = 'Hospital.dmi'
icon_state = "Receptionist"




//There ya go. Thanks for any help provided, The Conjuror.