I am not sure if I am posting this in the correct place, if not, I apologize. I am using ForeverZer0's Advanced Pathfinding script, and am having a few problems. I am trying to make an extension to it that allows for setting "waypoints". For example, I can specify three points, and the character will pathfind to each in turn. My problem is, the character seems to repeat the last two commands, meaning it walks back and fourth between the last two points. I am new to Ruby and RGSS, so I imagine that I am doing something wrong. Could someone please take a look at what I have and tell me if they see anything wrong? Link removed.