Some newbie architectural questions

I'm new to the Javascript programming for RPG maker and really baffled with just sheer lack of documentation for the source code / API. I was hoping more experienced people could help me out with all the terminologies.


1. Inside the rpg_scenes.js file, there are all kinds of Scene_Something. Do you create an instance of these and add to some where? Or do you extend the create() function?


2. What exactly is a Map? What is the relationship between a Scene and a Map? Is it 1 to 1 relationship or 1 Scene can potentially have multiple maps?


3. I am looking to create a very custom battle system, one that does not seem to exist with any plugins yet. Would controlling everything that goes on the GUI be possible from the Javascript? For example, sequentially animating multiple objects on the map, wait for user input, then perform the sequential animations again and repeat.


Thank you so much for your help.
Hey kurdiez, 


Give me some grace; I've only been swimming in the pond for a few weeks and am still learning as well... but I may be able to help o. Some of these.


1) I typically create custom scenes that inherit from the scenes they have.  For instance, I have a few custom menus in my game.  Each gets its own scene, but during initialization and some other steps, I pull from scene_menu or scene_menubase.  In other situations, such as replacing existing features, I overload the functions that already are present in scenes.js and windows.js.


2) the scene_map is the playing field where everybody runs around.  Content is drawn on the scene_map for your game maps.  I BELIEVE (and somebody else can/should correct if I am wrong), that everything works from the same scene_map.  IE:  whenever I close one of my scene menus, I pop the scene and it takes me back to the scene_map.  If you want to change some functionality of the gameplay map, you'd overload scene_map.


3) yes.  What gets drawn on the screen and how he turns operate and all of that can be tweaked by overloading the existing battle scenes and adding your own methods.  If you are making the battle on the main walking around map, you'd want to tweak scene_map, or create a new scene inheriting from scene_map.


Hope that helps!

Original thread: https://forums.rpgmakerweb.com/threads/some-newbie-architectural-questions.74203/