$game_system

Shabbur

Veteran
Veteran
Joined
Feb 4, 2015
Messages
44
Reaction score
0
Primarily Uses
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.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
What happened when you tried to use it?
 

Musashi

Veteran
Veteran
Joined
Oct 30, 2012
Messages
155
Reaction score
260
First Language
Portuguese
use $data_system instead of $game_system
 

Code:
$data_system.weapon_types[type_id]$data_system.armor_types[type_id]
 

Shabbur

Veteran
Veteran
Joined
Feb 4, 2015
Messages
44
Reaction score
0
Primarily Uses
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.
 
Last edited by a moderator:

Sarlecc

Veteran
Veteran
Joined
Sep 16, 2012
Messages
453
Reaction score
211
First Language
English
Primarily Uses
RMMV
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]
 
Last edited by a moderator:

Shabbur

Veteran
Veteran
Joined
Feb 4, 2015
Messages
44
Reaction score
0
Primarily Uses
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.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top