- Joined
- Jun 30, 2012
- Messages
- 8,564
- Reaction score
- 3,860
- First Language
- English

Suppose you have an NPC that displays a list of options for the player to select from. The catch: each option has a condition that must be satisfied to appear, and the order that the options appear is based on the order that the conditions were satisfied.
Introduction
The RMDev Challenge is a series of articles that presents a problem for RPG Maker developers and the objective is to find a solution.
The purpose is to engage RPG Maker developers in some (possibly practical) problem-solving that will allow them to explore more of what the engine has to offer, and also to see how others implement the same solution.
The rules are simple: provide a solution that works in a version of RPG Maker of your choice. You can use anything at your disposal: events, pictures, ruby scripts, external libraries, etc.
You may present your solution however you wish (comment, blog post, video, etc) and wherever you wish, but I ask that you leave a link back to this article if you are sharing a solution on external sites. I also recommend sharing the solution on external sites and leaving a link in the comments because the comment section is too small for details. Remember: you want to share with others your solution.
Challenge
Suppose you have three villages in your world creatively named Village A, Village B, and Village C. I will refer to these villages as A, B, and C for brevity.
To make traveling around the world faster, you have a teleportation device in your castle that allows you to teleport to a village that you have visited. Initially, none of the villages are available.

Once you visit a village and record its position, you may now teleport to that village using the device.
The order that the villages appear in the teleport menu is based on the order that you visited the villages. For example, if you visited A, then B, then C, the options would appear in that order.

On the other hand, if you visited A, then C, the A would appear first, followed by C.

You can see that Village B isn’t available. This is because you haven’t visited it yet.
Finally, after you visit B, you would now see A, followed by C, followed by B.

This reflects the order that the villages were visited during your game.
Note that the solution does not strictly need to be presented as the default choice selection (these images were generated for illustration purposes only)
How would you accomplish this?
(originally posted at HimeWorks)