Jump to content

Agility Script Problem


Recommended Posts

Posted
private String[] actions = {"Climb", "Cross", "Cross", "Jump", "Jump", "Cross","Cross","Jump","Jump","Jump","Jump","Jump","Jump"};
private String[] names = {"Rough wall", "Tightrope", "Hand holds", "Gap", "Gap", "Tightrope","Tightrope","Gap","Ledge","Ledge","Ledge","Ledge","Edge"};

i am doing a .closest interaction with these strings and it works fine for all but one obstacle.  The 3rd to last name which is Ledge.  The script attempts to go backwards around the course instead of going onto the 2nd to last name which is also ledge which is slightly farther away than the 3rd one.  It successfully completes the course sometimes because the 3rd to last Ledge has two IDs on it and when it interacts with the furthest east id the script is successful.  However,  i do not know how to interact ids into strings or solve this problem.  Any help would be greatly appreciated.

 

Thanks,
Matt

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...