Where do I find a list of the game's various values?

Sword of Spirit

Veteran
Veteran
Joined
Nov 3, 2017
Messages
114
Reaction score
14
First Language
English
Primarily Uses
RMMV
I don't know JavaScript (I'm working on picking up a little bit), but I have what should be an easy question.

When JavaScript is used, like on Lunatic Mode in some Yanfly Engine plugins, there are various values (objects?) that are used that don't appear to be plugin-specific (since they aren't listed in the plugin documentation). I believe these values are internal to RPG Maker. I thought they might be in the RMMV Script Calls sheet (https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0) but they aren't the same.

Here is an example of what I'm talking about:

if (user.equips()[0].wtypeId !== 2 && user.equips()[1].wtypeId !==2) {
condition = true;
} else {
condition = false;
}
Where do I find a comprehensive (or at least partial) reference of the RPG Maker values/objects such as:

user.equips()
.wtypeID

...etc.

Without having a reference to what those values/objects are, even once I learn some JavaScript I'm going to have a hard time doing anything with it.

Thanks in advance.

(I'm not sure if this is the right subforum, but it was my best guess.)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
For stuff in the database, look at the data/*.json files (so for weapons, it's data/weapons.json).

For event and battler info, look at the js/rpg_objects.js file, specifically Game_BattlerBase and anything that builds from it.
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
I didn't see the variable "user" anywhere in the MV code, so that variable must be coming from a plugin. You'll have to check that plugin to know what "user" is.

In this case it can be surmised that "user" is an actor (i.e. an instance of the Game_Actor class). In that case, you can look up Game_Actor and see all the properties and methods available on that class.

If you look up the equips method, you'll see that it returns an array of objects. You can then follow that link to the definition of how those objects are structured.
 

Sword of Spirit

Veteran
Veteran
Joined
Nov 3, 2017
Messages
114
Reaction score
14
First Language
English
Primarily Uses
RMMV
Okay, thanks!

I followed that link to RPGMakerMV Library, and it seems like a lot of the links on it are broken. Is there a more up to date version, or is that just we've got?
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
That's the most up to date version as far as I know, and the base MV code doesn't change very much.

I've used that quite extensively and never encountered any broken links, can you give an example?
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
Hmm that must've changed recently, because I can't find this anymore on their Github profile. Github recently made private repositories free for individuals, so maybe they made the repository private.

At least all the other links besides "defined in" seem to work
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,454
Members
137,821
Latest member
Capterson
Top