[ACE] Elements and Weapon Types, how do i check?

I did a little search and found nothing. It this was already answered in any other thread could you guys please post a link...

How do I check element or weapon type?
Remember that you can reference the VX Ace Help file by pressing F1 while your project editor is open.

If you look under RPG::Weapon in the help file, weapon type is kept as the public variable wtype_id for weapon objects.

Elements for skills and items are kept in RPG::UsableItem:😀amage. Getting a weapon's element is different since it is added to weapons as a Feature. Game_BattlerBase#atk_elements and Game_Actor#atk_elements are also available.
Thanks, that's solve half my question, but i was refering to directly check them. Like, weapon type id 1 is X. How do i get X?
Like with any other object:



Code:
weapon_obj.wtype_id
Thanks. I found what i needed in the help:



Code:
$data_system.weapon_types[type_id]
The same for elements, skill_types and armor_types.
If you need the element name, you'll need to acquire it from RPG::System which is instantiated as $data_system. Again, this information is in the help file.



Code:
$data_system.elements[element_id]
Another question pertinent to this.

I know that skill elements are kept in RPG::UsableItem:😀amage element_id. But how do i get that information? I need this information when a character uses a skill so i'm checking in Game_Battler -> item_apply. I know that item is the skill wich are being used but i can't use item.element_id since it's a RPG::Skill.

Any leads?

Edit: Nevermind, i found it.

RPG::Skill has an damage atribute(not sure if it's an atribute) wich is a instance of RPG::UsableItem:😀amage so if I do:



Code:
item.damage.element_id
i'll get the element id.

My questions about these topics are now solved.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/ace-elements-and-weapon-types-how-do-i-check.3132/