For example:
mob/proc/Myproc()
src << "Hello user"
//wait for response"
src << "Thank you for responding"
mob/verb/Hi()
src << "Hello computer"
I'd want it to display "Hello user" first, then wait for the user to use the Hi() verb. Once they use it, I then want the process to continue and display "Thank you for responding".
I know I can use this sort of method:
while(waiting_for_response)
sleep(1)
But I'd like something better.
Alternatively I could use 2 procs, one to ask for a response and one called after getting the response. I can't really do this since I'll want more than a hundred responses per process.
You could do something like that. Im not sure if the code is right but im sure some expert coder could fix it up. (Im pretty bad at coding and i dont really understand how to set up if statements...)