Sorry about the vague title, it was a bit hard to sum up the question..
Anyway, would anyone be so kind as to point me in the right direction on this one?
I'm trying to create a non-standard world-map system, wherein rather than walking around, the player moves a cursor from one location to another...
Now, this is just a prototype mind, thus low quality.
Butterfly=Cursor
Envelopes=Locations.
What I would like to do, is make it so that rather than, when the player presses a direction key, the cursor moves one tile in the given direction, it instead executes a number of actions.
1: Check for Locations within movement range (distance from one location to another defined in Steps, check for Locations can be reached with remaining Steps)
2: Sweep Cursor to nearest accessible Location in given direction
3: Display Location name
4a: If new direction, then back to 1, remembering Step costs are from actual Location of Player, not present location of cursor.
4b: If key is pressed, request confirmation
5: If confirmed, check for random encounter.
6a: If an encounter comes up, deduct travel cost from Steps then go to map referred to by given variable.
6b: If no encounter comes up, deduct travel cost from Steps then go to selected Location.
Bonus points if a dotted line can be displayed between origin point, locations en route, and destination selected.
...Wow that turned out more complex than I intended -.- Sorry, I couldn't find anything relevant through forum searching, so..
Well, thanks in advance.
Also, failing that I can probably use pixel-movement and a distance check on location selection, which would be much easier to set up, but I suspect that would be much, much less user-friendly.