RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[VXA][Resolved]Item Categories

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 71
I'm using Kread-Ex's rune enchantment script and I face a problem where the runes appear in the armor category rather than the item category (since they have to be made in the armor category). I looked at Window_ItemList and tried to make them only appear in the item category and it didn't work. Is there a way to do this?
« Last Edit: July 08, 2012, 03:18:59 AM by DoctorTodd »

****
Rep:
Level 71

****
Rep:
Level 71

****
Rep:
Level 71
BUMP
Can some one please help me? I've tried a few different things and nothing has worked.

***
Rep:
Level 77
RMRK Junior
You'll probably have to download an item categorization script or something, or make one yourself.

****
Rep:
Level 71
It should only take a line of code but I can't figure out what it is. I tried RPG::Armor.atyped_id(7) but that didn't work.

****
Rep:
Level 71

****
Rep:
Level 71
BUMP

Some one tried to help me on the RPG Maker web forums with this, but it didn't work.

Code: [Select]
   when :item
   item.is_a?(RPG::Item) || item.is_a?(RPG::Armor) && item.atype_id == 7
   when :weapon
   item.is_a?(RPG::Weapon)
   when :armor
   item.is_a?(RPG::Armor) || !item.is_a?(RPG::Armor) && item.atype_id == 7

**
Rep:
Level 57
RMRK Junior
Hi,

You find a script that have items categories for shops, mayne it could help you figure out something:
http://www4.plala.or.jp/findias/codecrush/material/vxace_rgss3/index.html

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
The little snippet the RPG Maker Web person wrote for you has the right concept but the wrong logic.

Code: [Select]
#==============================================================================
# ** Window_ItemList
#==============================================================================

class Window_ItemList

  def include?(item)
    case @category
    when :item
      item.is_a?(RPG::Item) && !item.key_item? || (item.is_a?(RPG::Armor) && item.atype_id == 7)
    when :weapon
      item.is_a?(RPG::Weapon)
    when :armor
      item.is_a?(RPG::Armor) && item.atype_id != 7
    when :key_item
      item.is_a?(RPG::Item) && item.key_item?
    else
      false
    end
  end
 
end

The above code should work. Not sure if that's what you wanted, though. And it's not the best workaround, either.
« Last Edit: July 07, 2012, 05:54:22 PM by cozziekuns »

****
Rep:
Level 71
I got an error when trying to use it because of another script that is a patch for Individual equipment and the Runic enchantment script. The Rune is in there because it is both an armor and labeled as Rune. The line looks like this.
Code: [Select]
     when :armor
    (item.is_a?(Game_CustomEquip) && item.object.is_a?(RPG::Armor)) ||
     (item.is_a?(RPG::Armor) && item.is_rune?)
Even if you remove the bottom line it'll still display under armor. I did manage to get it under items though.
Code: [Select]
    when :item
    item.is_a?(Game_CustomEquip) || (item.is_a?(RPG::Item) && item.is_rune?)
Is there anything I can do so the Runes are just under items?
« Last Edit: July 07, 2012, 08:34:44 PM by DoctorTodd »

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Code: [Select]
when :armor
    (item.is_a?(Game_CustomEquip) && item.object.is_a?(RPG::Armor)) && !(item.is_a?(RPG::Armor) && item.is_rune?)

****
Rep:
Level 71
Nope it still appeared under armor.

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Oh sorry didn't notice the custom equip script that you're using.

This should work then:

Code: [Select]
when :armor
    (item.is_a?(Game_CustomEquip) && item.object.is_a?(RPG::Armor)) && !(item.object.is_a?(RPG::Armor) && item.is_rune?)

Otherwise, you should list all the scripts you're using and such.

****
Rep:
Level 71
Thanks cozziekuns, it works fine now.