1. Is how do I then run the second function which includes the "read()", or what does it have to contain (I want to have read() input which stops when the user presses for 7 seconds no key)
2. These all are not working:
local test = {
53 = "HI"
}
local test = {
"53" = "HI"
}
local test2 = {
"x" = true
}
local test2 = {
"-x" = true
}
local test2 = {
-x = true
}
3. These are also not working
while (coordinatesInputDir ~= "north" or coordinatesInputDir ~= "east" or coordinatesInputDir ~= "south" or coordinatesInputDir ~= "west" or coordinatesInputDir ~= "-z" or coordinatesInputDir ~= "x" or coordinatesInputDir ~= "z" or coordinatesInputDir ~= "-x") do
while coordinatesInputDir ~= "north" or coordinatesInputDir ~= "east" or coordinatesInputDir ~= "south" or coordinatesInputDir ~= "west" or coordinatesInputDir ~= "-z" or coordinatesInputDir ~= "x" or coordinatesInputDir ~= "z" or coordinatesInputDir ~= "-x" do
Whole code:
while (coordinatesInputDir ~= "north" or coordinatesInputDir ~= "east" or coordinatesInputDir ~= "south" or coordinatesInputDir ~= "west" or coordinatesInputDir ~= "-z" or coordinatesInputDir ~= "x" or coordinatesInputDir ~= "z" or coordinatesInputDir ~= "-x") do
term.clear()
term.setCursorPos(1,1)
print("Please enter the direction and the coordinates of the turtle: ")
print("Tips:")
print("* You can see the your direction and coordinates when you press the F3 key")
print("* When you type in 0, the turtle uses it as realitve coordinates")
print("* Instead of north, east, south and west you can also enter -z, x, z and -x")
print("")
print("X: " .. coordinatesInputX)
print("Y: " .. coordinatesInputY)
print("Z: " ..coordinatesInputZ)
write("Direction: ")
coordinatesInputDir = read()
end