Add more itemtypes

cassio

Villager
Member
Joined
Apr 9, 2017
Messages
14
Reaction score
0
First Language
Portuguese
Primarily Uses
RMMV
Hi, i have a small problem developing my game.
there are 4 types of items
Relugar items
Key Items
Hidden A and B items

But, i need add more types.
there are plugins that add others categories, but only in the visual of the menu.
I need use this script:
$gameMessage.setItemChoice(6, 5);
How know this script perceives i'm using (on variable [6]) the ittypeid 5, that isn't defined (only the four above mentioned are defined).

To solve this problem i'm doing a strange thing:
i'm enter on item.json and i'm changing the ittypeid manually to 5.
in the database the "item type" is been blank
but on game "item menu" these items dont appears
in order to show these items, i'm using plugins "only to visual show".

It is possible develop a Plugin for this porpouse?
to permit i use similar comands (i know that the same comand isnt possible) and shows in the "item menu" at game?

Thank you a lot!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
@cassio you can't change the editor, so any plugin for this would require handling the new item types by notetag or other options. Editing the json files will not create new editor options.

A plugin for this can be written, but unless you find an existing one you'll need to give more details to someone who could write this, like what types you want, how to determine if a type is hidden or not and so on.
 

cassio

Villager
Member
Joined
Apr 9, 2017
Messages
14
Reaction score
0
First Language
Portuguese
Primarily Uses
RMMV
Hi thanks for the asweres.

Lady:
I try use this plugin, but it is a "only to show" plugin
this plugin creat a new category at menu, hiden from the old category and adding at a new category,
but in the kernel, a Regular item still being a regular item.
i cant use this plugin to select a "new category" item by the $gameMessage.setItemChoice(v, n); command.

Andar:
I'm changing the .json to change the item category and it is working. (i change the type ID only)
but each new category i need chage again the editor.
the itens i change dont appears at regular itens or key itens. they are look like Hiden itens.
as i like see these items, i'm using a plugin :
https://forums.rpgmakerweb.com/index.php?threads/new-type-for-item.50276/
i use a note tag to named <slot1> or <Category: name> (i dont remeber exactly)
it do exactly the same thing the plugin that Lady recomended (but in the plugin i'm using, this procedure works)
i think this plugin woks due to a bug, which dont remove the item from the old category (as my old category is "a inexistent hidden", it is ok)

what i like do
So, i like use a scrip call (or plugin command) to save into a variable the ID of an item that the player select from his inventary.
how i have more than 200 items in this category, than i prefere select the items by category (and not by ID)
besides that, i need see the new categories at the party menu (items menu)
I would like that the new category ID be the continuation of "item type ID" like as:
1 - Regular Items
2 - Key Items
3 - Hedden Items A
4 - Hidden items B
5 - new category A
6 - (...)
But i have no sure if it is possible (it permits use the command $gameMessage.setItemChoice(var, category);)

i have a indetermined number of new categories ( every time i add a new category), than, it is a good idea present the new categories in a array (i think in a .json file)
and lastly, i using some YanFly plugins (the itemcore and some others), them, it should be compatible.


->I need correlate the ID from a selected item with an Actor, because of it i need this plugin.

A question:
I have changed the .json file and percives the item type (in the maker database window) changed to " " (blank).
it is possible add a new category in the files of the maker? (i know it would be a Hidden item C, but it is ok)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
@cassio As I said above, you cannot change the editor. And that is the reason why your method will not work - the editor will change the data back if it ever saves over the json files.
And you cannot add anything after hidden items B for the same reason.

A few days ago I made a (not yet approved) suggestion about item types (due to other functions, but would help here as well), but until that one is not only approved but also implemented (which will take months at minimum) the editor will not be able to handle additional item types, and you can't change that.
 

cassio

Villager
Member
Joined
Apr 9, 2017
Messages
14
Reaction score
0
First Language
Portuguese
Primarily Uses
RMMV
hi Andar.
but it is working
when i save the game over the json files, the item marked as "hidden items C" keeps marked.
i say hidden items C, but it dont have a specific name.
upload_2017-4-25_22-46-45.png
upload_2017-4-25_22-51-42.png
(first image: at RPG Maker MV window; Second image: at Items.json)
it is working at game too. I'm using in the script call:
upload_2017-4-25_22-53-36.png
but i cant see it in the menu without a plugin. in order to see it in the item menu i'm doing it:
upload_2017-4-25_22-48-22.png
where <slot1> correspond to the new category i'm creating. the weight is for other plugin =).
ever I save the game or change the items json (by the game or by file), these features still the same.

can you try in order to confirm it?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top