Basically, you know how in scripts like Scene_Battle, you can say things such as if @active_battler.is_a?(Game_Actor). What I want to do is be able to say something like if @weapon.is_a?(Sword) or something along those lines, and then have it return true if the IDs match. Is this possible? Thanks in advance for any help.
Edit: I'll rephrase this now I've gone and improved my game. Basically what I have is, each character has an array called "equip_type". In this array is a collection of numbers from 0-15, each number represents a class of equipment. So using this I can have characters individually learn how to use items, like this:
http://img221.imageshack.us/img221/6622 ... enuyn9.png[/img]
But the problem is, they equip things based on their class. Is there a way that I can make it so if my equip_array includes 0, I can equip weapons with ID 1, 2, 3 and 4? Hope this makes more sense.
Edit: I'll rephrase this now I've gone and improved my game. Basically what I have is, each character has an array called "equip_type". In this array is a collection of numbers from 0-15, each number represents a class of equipment. So using this I can have characters individually learn how to use items, like this:
http://img221.imageshack.us/img221/6622 ... enuyn9.png[/img]
But the problem is, they equip things based on their class. Is there a way that I can make it so if my equip_array includes 0, I can equip weapons with ID 1, 2, 3 and 4? Hope this makes more sense.