How do I find out all the class/object members available to me in scripting?

Hi,

I'm a programmer who is new to rpg maker.  I've looked at various scripts written by others and they reference values like:

actor.agi

actor.tp_rate

actor.tp

actor.next_rest_exp_s

Where do I find out all of the variables/members available to me off the actor object.  Or any object for that matter?

I've tried searching these forums, reading the RGSS reference manual, and googling to no avail.

For example, the RGSS Reference manual has a description of RPG::Actor class but it only lists 9 members and none of the above working members are in that list!  (I also checked up the class heiarchy too!)

Help!
Did you check the script editor?
the entire engine is searchable in the script editor. simply look at them there (right-click on the script list and then "find", that will probably be the fastest way for specific questions.
I'm not sure what you mean.

Yes, I've opened the script editor.  I've looked at things like the Game_Battler.  

Is it just a matter of looking down the list of all the def statements?

I was hoping there was a reference resource I overlooked (something like MSDN).
I'm not sure what you mean.

Yes, I've opened the script editor.  I've looked at things like the Game_Battler.  

Is it just a matter of looking down the list of all the def statements?

I was hoping there was a reference resource I overlooked (something like MSDN).
Somewhere I've seen a link to an incomplete (user-collected) reference, but I don't have that and don't know where to search for it.

So yes, basically you are limited to looking through the code in the editor.

However, that's why I wrote about rightclick and find.

The code for RPGM in the script editor is extremely modular (to the point which I would personally call fragmented, not modular - but that's my opinion only), and simply looking through it will be of limited help.

However it has a powerfull find function that will list every line in every script module where a string (like a function name or a variable) is used, and that is the key to finding the correct place where something is defined.

Just right-click in the script list bottom left and select the find-command there.
Thanks.  That search technique is how i found where current level is stored.

the search technique is great, IF I know what to search for  😀 .  

Since I don't even know what values are available to me, I don't know what they are called, therefore I don't know what to search for.

So to understand what is available to me it looks like it comes down to just skimming the scripts.  

It matches the old programming adage "code is the clearest documentation"

It's just when I saw a script reference at the end of the online help I assumed it would tell me all the members and methods available on the data classes.  Unfortunately no.
You should also take a look at Game_Interpreter. In there is where you'll find all the script-equivalences of most of the Evented commands in the main Editor and such.

Like for example, $game_timer.start(#OfFrames), $game_timer.stop    These two things are event commands but you can use this scripted version in script calls for special situations.
you can also look into the help file reference - that isn't complete and doesn't explain everything, but it gives a good start for the options.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-find-out-all-the-class-object-members-available-to-me-in-scripting.16709/