I'm using Yanfly's Common Event Menu Plugin, which you can find here. While I don't have issues with the plugin itself, I'm struggling with adding locations to the teleportation list dynamically as players unlock them.
For example, if a player interacts with a Crystal Port in Town 1, Town 1 should be added to the teleportation list (This I can easily do). Later, if they interact with a Crystal Port in Town 2, Town 2 should also be added to the list but the issue I'm having is how would I make it so it can add Town 2 in the same Common event? (Picture for example). My challenge is avoiding the creation of numerous common events to handle each new location (IF POSSIBLE)
For those wondering "Just use a Control Variable" if I were to do that, then if the Player didn't unlock Town 2's port but Unlocked Town 3's port, then the Control Variable would add "1" to the Control Variable, but since the player didn't unlock Town 2's port, then instead of unlocking Town Port 3, they would instead unlock Town Port 2 and not 3, like in order. I hope this made sense, sorry my English isn't very great when it comes to wording something for help.
For example, if a player interacts with a Crystal Port in Town 1, Town 1 should be added to the teleportation list (This I can easily do). Later, if they interact with a Crystal Port in Town 2, Town 2 should also be added to the list but the issue I'm having is how would I make it so it can add Town 2 in the same Common event? (Picture for example). My challenge is avoiding the creation of numerous common events to handle each new location (IF POSSIBLE)
For those wondering "Just use a Control Variable" if I were to do that, then if the Player didn't unlock Town 2's port but Unlocked Town 3's port, then the Control Variable would add "1" to the Control Variable, but since the player didn't unlock Town 2's port, then instead of unlocking Town Port 3, they would instead unlock Town Port 2 and not 3, like in order. I hope this made sense, sorry my English isn't very great when it comes to wording something for help.