Currently, I am thinking about making a plugin for the replacement of the exp formula, however, I have no clue how to search the stuff that I need. What I would need is a guide of how does the formular work, how do level ups technically work and what I need to do to replace the EXP formular with my own, especially the name of the function. While I found some interesting stuff in these google Excel sheets here in the forum, I am not sure if that's enough or the right place to search. I guess it's the best if I find some kind of documentation, but I found nothing really helpful so far.
MZ Plugin Development: How to search the stuff I am looking for
Javascript/Plugin SupportIt would be helpful if you described what you were looking for in the Excel sheet (I presume you mean the script call list), what you found, and what you thought you were missing.
I personally prefer the MV library to the script calls, but that's just for formatting.
As I was typing that, I just noticed that your post is flagged with MZ - I get confused because your profile says you use MV. But most of the engine is the same, and if there's a specific function that has a different name in MZ you can usually find it pretty easily.
So...how to search? If I wanted to search for level ups, that's logically a result of gaining exp, so I would go to the Game_Actor class and search the page for "exp" - one of the results is the gainExp() function, which is clearly what I'm looking for. The page says that's defined in the rpg_objects.js file (or, for MZ, in rmmz_objects.js).
So you open rmmz_objects, do a search for "prototype.gainexp" and you have the function.
That, in turn, shows me that I can also look at the changeExp() function. I search for that, and I see it references an expForLevel() function.
It's really all quite straightforward. I think you might be spending too much time combing through worksheets instead of just reading and following the flow of the actual code.
I personally prefer the MV library to the script calls, but that's just for formatting.
As I was typing that, I just noticed that your post is flagged with MZ - I get confused because your profile says you use MV. But most of the engine is the same, and if there's a specific function that has a different name in MZ you can usually find it pretty easily.
So...how to search? If I wanted to search for level ups, that's logically a result of gaining exp, so I would go to the Game_Actor class and search the page for "exp" - one of the results is the gainExp() function, which is clearly what I'm looking for. The page says that's defined in the rpg_objects.js file (or, for MZ, in rmmz_objects.js).
So you open rmmz_objects, do a search for "prototype.gainexp" and you have the function.
That, in turn, shows me that I can also look at the changeExp() function. I search for that, and I see it references an expForLevel() function.
It's really all quite straightforward. I think you might be spending too much time combing through worksheets instead of just reading and following the flow of the actual code.
Yeah, that's pretty much it, but the problem is that I simply don't know where I could see that code. In my java projects, that's not an issue, I can look into the classes of the dependencies, but I don't know how to set up that with Visual Studio Code and the stuff from the MZ core.
Just open all of the .js files in the js folder of your project in VSC and you'll have the entire engine in front of you.
I'm confused by your confusion - any time you go toward the plugins folder to do something there, you first have to go into the js (JavaScript) directory that has the engine's code in it, right? 😉
If that's not what you meant, and you meant which specific file,
1 - The site I linked to can help, or
2 - Just do a search. In Windows you can type into the search box in File Explorer and it will search the contents of the files for what you typed. And there are, of course, other software you can install for more flexibility (I use DocFetcher).
So I guess I'm not sure which part of the process you need help with.
Original thread: https://forums.rpgmakerweb.com/threads/plugin-development-how-to-search-the-stuff-i-am-looking-for.154157/