Need help with Teleportation Waypoints?

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.
image_2024-05-15_220503885.png
For those wondering "Just use a Control Variable"
I don't see how a variable would be useful in this situation, but...just use Control Switches? 😛

Whenever a player goes to a location for the first time, turn on a switch.

Then your menu has a Conditional Branch for each switch, and if it's on you display the menu item for that location.
I don't see how a variable would be useful in this situation, but...just use Control Switches? 😛

Whenever a player goes to a location for the first time, turn on a switch.

Then your menu has a Conditional Branch for each switch, and if it's on you display the menu item for that location.
Okay, yeah the Conditional Branch helps! That is exactly what I was looking for! Thank you for the help!
Any time you find yourself saying "if", that indicates you should be using Conditional Branch. "If the player hasn't gone there..."

As a quick side tip, it seems odd for you to be apologizing about your English when your profile says your first language is English. If you change that to whatever you natively speak (or just make it blank), people won't expect you to speak perfectly 😉

Good luck with your project.
Any time you find yourself saying "if", that indicates you should be using Conditional Branch. "If the player hasn't gone there..."

As a quick side tip, it seems odd for you to be apologizing about your English when your profile says your first language is English. If you change that to whatever you natively speak (or just make it blank), people won't expect you to speak perfectly 😉

Good luck with your project.
Thank you, I shall keep this noted!
I don't see how a variable would be useful in this situation, but...just use Control Switches? 😛

Whenever a player goes to a location for the first time, turn on a switch.

Then your menu has a Conditional Branch for each switch, and if it's on you display the menu item for that location.
I'm trying to do the same thing as OP. But I'm tying to get all options on the same page yet the way I seem to be doing it only have 1 option per page. What i'm trying to do is have all the options that have been unlocked before show up on 1 option list. This is how the event looks.
1716525516730.png
I'm tying to get all options on the same page yet the way I seem to be doing it only have 1 option per page.
Because you're putting in a Show Choices command with only one choice. That's how it works.

The OP said they're using Yanfly's Common Event Menu plugin; you could also use HimeWorks' Hidden Choice Conditions.

But just using the regular Show Choices command will only do what you tell it to - you can't combine multiple separate commands into one list of choices.
1716562101978.png

Because you're putting in a Show Choices command with only one choice. That's how it works.

The OP said they're using Yanfly's Common Event Menu plugin; you could also use HimeWorks' Hidden Choice Conditions.

But just using the regular Show Choices command will only do what you tell it to - you can't combine multiple separate commands into one list of choices.
I was looking around and found the Common Event Menu for MZ and I'm playing around with it. Currently I'm trying to change the visible controls but I'm unsure how this works and the video on the site doesn't really help much. Have you used this before? I just want to know how to change the visible options based on switches or if there is another way that would be very helpful.
From their website:
SmartSelect_20240524_115357_Chrome.jpg

These go in a comment in the common event.
I seem to be doing something wrong. I have an event up that calls the common event and I have common events that send you to each map. In the common event that the player will unlock I have the comment right yet I get this error message.
Unexpected number in JSON at position 2
This is how my comment event looks
1716573272814.png

From their website:
View attachment 306164
These go in a comment in the common event.
You don't put any leading zeros. So not '0282' just '282'. Also did you setup the common event menu with the plugin commands from the instructions?

I don't use MZ, I use MV & Yanfly's common event menu, which is similar. I would suggest watching the VIDEO for Yanfly's version as the overall concept and setup is the same. The only thing that is different are the way you do the plugin commands. The common event menu has to be setup with the appropriate plugin commands first.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-teleportation-waypoints.168720/