Access Class Paramtable

So Iam writing a class system script, which lets you choose your class at the beginning of the game. 

The class scene should have a preview of the level 1 stats of the class. Now Iam wondering how I can access those values?
$data_classes[class id].params[param, level]An example of this can be seen at Game_Actor's param_base.
Thanks I had to look more carefully in the Game_Actor Class,

I have tried:

p $data_classes[1].paramsto see what .params look like and it gave me:

#<Table:0xXXXXXXX>I didnt know what to do further.
Find the code where it draws all the parameters and extra parameters and whatnot on the status screen.

That will tell you the format of the hashtable, or at least get you started tracking it down.
Table is a hidden class that comes with the RGSS API.


You can see how to reference it in the help file.
I made this def

  def testout    100.times do |level|                               # for each level      8.times do |param_id|                            # for each param        print "Lv #{level} param[#{param_id}]: "       # print identifying text        print $data_classes[1].params[param_id, level] # print param value        print "; "                                     # seperator      end      p "-END-"  # line seperator to start new line for new level    end  endprints out the values for each param for each level. Edited it to all fit in the console window.. it can be a little jumbled to read but.. eh it works
Thanks all!

This thread can be closed.

Original thread: https://forums.rpgmakerweb.com/threads/access-class-paramtable.24946/