Hello, in the game I'm making, you have a limited inventory, but like earthbound beginnings, I wanted the weapons and armor to be in the normal item inventory instead of their own sections. I already have a plugin that allows you to equip from the menu, so I don't need to fiddle with the equip screen at all. Thanks in advance!
How to put equipment in normal item inventory?
RPG Maker MV SupportYou could make items that represent each piece of equipment, then those items could call a common event that handles the equipping of the gear they represent.
I think the problem with this solution is two-fold, it wouldn't work with the plugin you already have and the common events would kick the player out of the inventory scene.
I think the problem with this solution is two-fold, it wouldn't work with the plugin you already have and the common events would kick the player out of the inventory scene.
Hmm, your advice helped me think of another solution, I'll respond after testing it.
going back to your original question: possible but not easy.
You would basically have to get a plugin that replaces both the item inventory and the equipment inventory with a single one, because simple modifications will not work.
such plugins exist, but usually in a completely different way - like a grid inventory plugin.
at the moment I don't remember any plugin that would do what you want directly and without other changes, but you might be able to request one such plugin.
You would basically have to get a plugin that replaces both the item inventory and the equipment inventory with a single one, because simple modifications will not work.
such plugins exist, but usually in a completely different way - like a grid inventory plugin.
at the moment I don't remember any plugin that would do what you want directly and without other changes, but you might be able to request one such plugin.
Hi, Misk! What is your "equip from the menu" plugin?
I actually just had to make a common event for each item to equip its corresponding weapon, and I can hide the weapon inventory from the player, it works great and even lets the players equip and swap weapons during battle which I wanted to do, so now I don't need a plugin for that!
If youre going to do it that way you dont need a common event for each item, just one common event and use notetags in either the item or weapon notebox to indicate which item is tied to which weapon.
That does sound more efficient, but I have no idea how to use notetags )= . So, how would I do that? Also, I don't want players to be able to swap armors in battle. (and thank you for the suggestions (= )
I would have to see your script to be specific but generally speaking:
In a weapon notebox put <itemId: x>
$dataWeapons[5].meta.itemId
This will return the value of x in the notetag for weapon id 5
Where would I put all this? Sorry for my incompetence, I've practically only been making visual and battle assets thus far.
You don't need to apologize and I don't think you're incompetent especially since you did this:
However, for me to give you directions on how to use that script in your common event I need to see how you wrote it.
What part of the script do you need to see?
The common event page and whatever is calling the common event page
This worked for me:
For weapons:
$gameActors.actor(1).forceChangeEquip(0, $dataWeapons[$dataItems[$gameParty.lastItem().id].meta.weaponId]);
In the item database in the item's notebox put
<weaponId:x>
For (body) armor:
$gameActors.actor(1).forceChangeEquip(3, $dataArmors[$dataItems[$gameParty.lastItem().id].meta.armorId]);
<armorId:x>
If you're using shields, hats or accessories you need to change the 3 to 1, 2, or 4 respectively
For weapons:
$gameActors.actor(1).forceChangeEquip(0, $dataWeapons[$dataItems[$gameParty.lastItem().id].meta.weaponId]);
In the item database in the item's notebox put
<weaponId:x>
For (body) armor:
$gameActors.actor(1).forceChangeEquip(3, $dataArmors[$dataItems[$gameParty.lastItem().id].meta.armorId]);
<armorId:x>
If you're using shields, hats or accessories you need to change the 3 to 1, 2, or 4 respectively
Thank you! But, where do I put this part?
$gameActors.actor(1).forceChangeEquip(0, $dataWeapons[$dataItems[$gameParty.lastItem().id].meta.weaponId]);
And, I don't really know how to use x, and how do I alter it to call specific weapons?
$gameActors.actor(1).forceChangeEquip(0, $dataWeapons[$dataItems[$gameParty.lastItem().id].meta.weaponId]);
And, I don't really know how to use x, and how do I alter it to call specific weapons?
x is the id of the weapon or armor in the database
Thank you so much! It works perfectly!
Glad it works. Just so you know, it's set up to always change Actor 1's equipment regardless of who you use the item on. If you want to change that I would have to look up the script for it
All party members are temporary and most use their own weapons, so this should only be an issue twice, I'll be able to dance around it, thanks for the concern!
Original thread: https://forums.rpgmakerweb.com/threads/how-to-put-equipment-in-normal-item-inventory.159814/