Disclaimer:
I know that there may be a custom script or two out there already, but I am trying to develop a game without having to rely on two many third party scripts.
Basically, I'm working on a game concept that replaces Shields and Helmets with ranged and auxiliary weapons. I'm doing this without any scripting simply by reserving the "weapons" database as a "melee" section, then using the "Shield" and "Helmet" section of the Armors category to create the two new weapons categories. These add extra ability commands to the skill menu, which allow for ranged and auxiliary attacks without having to use the dual wield slot or fiddle with outside scripts that add extra slots or what not, because for the game concept I will only be using one slot for a full "armor set" and a "trinket". Therefore, since the head and shield slots won't be used, I figured I'd re-purpose them.
Because of this, what I want to do is combine the helmets, shields and weapons into one "weapons" category while leaving the armor sets and trinkets in the "Armor" category, retitled "Gear". Therefore, how do I script it so that the menu looks for specific item slots, not just the RPG::Armor tag? Moreso, is it even possible to separate the two? Basically, what are the internal identifiers for shields and helmets, if there are any?
Also, the reason why I'm not using the dual_wield tag is because I don't want the player to be able to use both melee and ranged weapons at the same time, as that would defeat the purpose of having to choose rather to do a melee or ranged attack.
Here's what I have modified as of thus far.
If what I'm asking for is impossible, I have a backup idea of just combining everything under the category of "gear" and getting rid of one of the other categories all together.
I know that there may be a custom script or two out there already, but I am trying to develop a game without having to rely on two many third party scripts.
Basically, I'm working on a game concept that replaces Shields and Helmets with ranged and auxiliary weapons. I'm doing this without any scripting simply by reserving the "weapons" database as a "melee" section, then using the "Shield" and "Helmet" section of the Armors category to create the two new weapons categories. These add extra ability commands to the skill menu, which allow for ranged and auxiliary attacks without having to use the dual wield slot or fiddle with outside scripts that add extra slots or what not, because for the game concept I will only be using one slot for a full "armor set" and a "trinket". Therefore, since the head and shield slots won't be used, I figured I'd re-purpose them.
Because of this, what I want to do is combine the helmets, shields and weapons into one "weapons" category while leaving the armor sets and trinkets in the "Armor" category, retitled "Gear". Therefore, how do I script it so that the menu looks for specific item slots, not just the RPG::Armor tag? Moreso, is it even possible to separate the two? Basically, what are the internal identifiers for shields and helmets, if there are any?
Also, the reason why I'm not using the dual_wield tag is because I don't want the player to be able to use both melee and ranged weapons at the same time, as that would defeat the purpose of having to choose rather to do a melee or ranged attack.
Here's what I have modified as of thus far.
Code:
def include?(item)
case @category
when :item
item.is_a?(RPG::Item) && !item.key_item?
when :weapon
item.is_a?(RPG::Weapon) || item.is_a?(RPG::Armor)
when :armor
item.is_a?(RPG::Armor)
when :key_item
item.is_a?(RPG::Item) && item.key_item?
else
false
end
end
If what I'm asking for is impossible, I have a backup idea of just combining everything under the category of "gear" and getting rid of one of the other categories all together.