return DataManager.isItem(item) && item.itypeId === 1;On this block of code above, I noticed that I can check the item's type. However, I searched itypeID but I only see implementations of it. I want to learn how to add more types for my weapons, how do you do add more values to itypeID because normally it only has 1 and 2 as default when checked.
itype id class?
Learning JavascriptAs far as I know, itypeID, atypeID and wtypeID are types of items, armor, and weapons (respectively) that can be changed in Database -> Types
Except that you can't change item types. Why would you, though?
EDIT : There's also stypeID for skill types, that can also be changed
Except that you can't change item types. Why would you, though?
EDIT : There's also stypeID for skill types, that can also be changed
I was thinking of making different types, but they be displayed on a list of categories in the windows, and was thinking how to do it. So when they have that category, they will be displayed in a separate window.
1 = regular item
2 = key item
3 = hidden item type A
4 = hidden item type B
I'm not sure what the hidden item types are all about (maybe they took that from the people who used key items for quests?)
It's just a number, not a class or instantiated object or anything. If you want more item types, it's just a matter of making more numbers. But you'd probably have to use notes to implement them, and would need to change the scenes that display categories, to have more categories.
2 = key item
3 = hidden item type A
4 = hidden item type B
I'm not sure what the hidden item types are all about (maybe they took that from the people who used key items for quests?)
It's just a number, not a class or instantiated object or anything. If you want more item types, it's just a matter of making more numbers. But you'd probably have to use notes to implement them, and would need to change the scenes that display categories, to have more categories.
I did something like that in RGSS3...
It's not that hard to do the reading of categories, but you must make your own item scene, etc.
Reading of categories I did through reading notetags and matching regular expressions.
For example, you have an item and if you want to make it belong to some category you would put <category: 1> where 1 is category iD, and categories are defined in an array.
Now, if you want custom categories in MV, you could switch <category: 1> with <category: categoryName>
That will complicate things a bit, but will be more noob-friendly...
Now, I'm pretty sure you have no idea what some of sentences or words above mean. Can you tell me which ones?
It's not that hard to do the reading of categories, but you must make your own item scene, etc.
Reading of categories I did through reading notetags and matching regular expressions.
For example, you have an item and if you want to make it belong to some category you would put <category: 1> where 1 is category iD, and categories are defined in an array.
Now, if you want custom categories in MV, you could switch <category: 1> with <category: categoryName>
That will complicate things a bit, but will be more noob-friendly...
Now, I'm pretty sure you have no idea what some of sentences or words above mean. Can you tell me which ones?
Hmmm, right now I can catch up to your idea. Lemme do some reading and check on the default sripts and see what I can do 🙂
Original thread: https://forums.rpgmakerweb.com/threads/itype-id-class.50117/