Function infinitely loop
I have three functions:
maze_stepmaze_forwardmaze_backtrack
maze_stepIs supposed to pick betweenmaze_forward&maze_backtrackdepending on if there are anyunvisitednodes available in one of the axes. If there are, it should pickmaze_forward. If not it should pickmaze_backtrack. This should keep happening up until it arrives back at thestartnode.At that point it should not be able to pick either
maze_forwardormaze_backtrackand run themaze_end_generationfunction.When I use # to remove the automatic triggering of each other and run the command manually while using execute commands with the same conditions but that run a say command instead of function. It all works perfectly and it's correctly telling me which command to execute next.
I tried using
scheduleto delay each execution ofmaze_stepto allow the server to slow everything down a bit, but it's still making mistakes.