itype id class?

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
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.
 

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
569
Reaction score
153
First Language
Serbian
Primarily Uses
N/A
As 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
 
Last edited by a moderator:

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
569
Reaction score
153
First Language
Serbian
Primarily Uses
N/A
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?
 

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
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 :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top