Posted 31 August 2013 - 02:50 AM
I'm adding on to my program that has may options with an os.pullEvent("char"). now I'm working with miscperipherals' chat turtles, and it adds an event os.pullEvent("chat"). I would like to be able to push w for a turtle.forward(). but at the same time I'd like to be able to say "forward "..number in the chat box and have it follow whichever event type it receives at the time.
Edit: Actually…. Wouldn't this be in a parallel.waitForAny(os.pullEvent(), os.pullEvent()) ???
Edit: Actually…. Wouldn't this be in a parallel.waitForAny(os.pullEvent(), os.pullEvent()) ???