$game_system

So I asked this for one of the other classes. I tried using the way someone got it to work for the other class, but it doesn't seem to work or not work for this class.

I'm looking for a way to use $game_system.armor_types[type_id] and $game_system.weapon_types[type_id] to get names of types of armors or weapons.
What happened when you tried to use it?
What happened when you tried to use it?
The method does not exist. At least yet....
use $data_system instead of $game_system
 

Code:
$data_system.weapon_types[type_id]$data_system.armor_types[type_id]
use $data_system instead of $game_system

$data_system.weapon_types[type_id]$data_system.armor_types[type_id]
Nevermind. When I tried that before, I had another nilclass thing going on. It works, thank you I guess.
The correct way is:

$data_armors[id].name

$data_weapons[id].name

Reason $game_system does not work for this is that there is no armor/weapon/skill/item data in that class (at least with the default scripts).

Edit wait didn't see you wanted this for types.. vs just the name

Edit2: I can get the id (not the name) of the armor/weapons types (I can take a bit more of a look at this in a few minutes)

Here's a way to do it based on a particular item just in case you want:

a is the id of the armor

w is the id of the weapon

Code:
type_ida = $data_armors[a].atype_id$data_system.armor_types[type_ida]type_idw = $data_weapons[w].wtype_id$data_system.weapon_types[type_idw]
The correct way is:

$data_armors[id].name

$data_weapons[id].name

Reason $game_system does not work for this is that there is no armor/weapon/skill/item data in that class (at least with the default scripts).
I'm getting names of types, not item names.

Original thread: https://forums.rpgmakerweb.com/threads/game_system.42606/