Help in storing different new data in player's save file and how can I populate a selectable list

So Basically very new to the rpg maker MV coding scene and I already have a understanding of coding. But since documentation and examples for RPG Maker MV is basically nonexistence

Basically what I am trying to do is to make a list of teleportation location and with functionality allow the developer to have payment requirement functionality enable or disable.

the UI and the code that basically deduct and not deduct money is already in place.
But I have no idea how can I filled up the data in the left hand side
locationteleportplugin01.jpg

this should also show or hide a location if the location is not yet been unlock

now another thing being there default setting in the plugin manager that allowed you to lock or unlock a place by default.
now those info should basically store in the player game data as well allowed the player to cause a location to lock and unlock depending on the premises/plot of the game. Being I have no idea how to store the data properly or which data should I just store in the player's save data (this would prevent modify save data abuse since only the lock status is stored)

here the code if your curious:
https://gitlab.com/jomarcenter-MJM/...imental Plugins/MJMJS_TransitRouteTeleport.js
ignore the commercial license fee for now, I will changed it to a free commercial use for this one.

don't worry you will be credited and further down the road I can start working on complex plugin that basically add new feature to your game.
This functionality is pretty trivial to implement through eventing if you add on the hidden choice condition plugin

http://himeworks.com/2015/11/hidden-choice-conditions/

Just make a list of all the locations, hide the choices for the ones that aren't discovered yet.
This functionality is pretty trivial to implement through eventing if you add on the hidden choice condition plugin

http://himeworks.com/2015/11/hidden-choice-conditions/

Just make a list of all the locations, hide the choices for the ones that aren't discovered yet.
It appears the OP states a desire to write a plugin rather than use someone else's. I've taken the time to contact them through other channels and explained a bit about the workings of MV's window classes and DataManager.

The gist of making a menu:
  1. read scenes with windows and the windows to see how they are implemented
  2. pick or create a scene for your new menu
  3. create a new window for each step of the process your menu is facilitating (help, command list, confirm etc..)
  4. in the scene: add the windows handlers ( setHandler(symbol, method) )
  5. in the windows: add the commands ( addCommand(name, symbol, enabled, ext) )

The gist of saving data:
  • store your data in a global variable that is already going to be saved/loaded in a saved game file
or​
  • initialize your new global variable in DataManager and alias the functions createGameObjects, makeSaveContents and extractSaveContents so you can add it as it's own.

Original thread: https://forums.rpgmakerweb.com/threads/help-in-storing-different-new-data-in-players-save-file-and-how-can-i-populate-a-selectable-list.115555/