JS3 Posted April 30, 2018 Share Posted April 30, 2018 Hi Guys, I have a basic understanding of Arrays in a sense that I know it's a list of stuff. I'm writing an agility script and I'm doing checks to see if Area contains my play in order to move on, but I wanted to try and create it as a list, in which it would need to verify based on like a queue or priority system to move forward to next area. Any help would be appreciated! Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 2, 2018 Share Posted May 2, 2018 (edited) You could create a class to represent a "step" in the agility course. This class would include the Area that indicates which step it is, as well as a Position and String (action) describing how to complete this "step". Then you can simply loop thru a list of 'steps', find whichever step you need to solve by checking if your player is in Area of that step, and dynamically solve it by getting the object at the specified position, and using the specified action on that object. If no steps are found for your position, you probably failed or completed your lap, so in that case make your way back to the start. Edited May 2, 2018 by FrostBug 1 Quote Link to comment Share on other sites More sharing options...