Jump to content

Agility Script Problem


matthew2112

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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