The game I am working as an upper and lower body armor slots and I was wondering if there was a way to create an armor that when equipped would take up both slots.
Is there a way to create armor that take up more than 1 equipment slot?
RPG Maker MZ SupportMight be usefull to tell us what software you are using.
For RMMZ for example, one way of doing it would be to write a plugin that calls some sort of 'dummy' equipment piece (with no bonuses)
Then, if the player equips a two-piece equipment, call for that dummy equipment to be place on the other slot
Without plugins, I suppose you could do the same thing using a common event that triggers when the player is equiping an armor.
The common event would look if the armor piece was a "dual armor" piece, and if so apply a dummy armor piece in the other slot.
The common event would look for something like : "Did the player equip this piece of armor" (up to you to check for which ones), and if so : apply dummy armor to the other slot.
For RMMZ for example, one way of doing it would be to write a plugin that calls some sort of 'dummy' equipment piece (with no bonuses)
Then, if the player equips a two-piece equipment, call for that dummy equipment to be place on the other slot
Without plugins, I suppose you could do the same thing using a common event that triggers when the player is equiping an armor.
The common event would look if the armor piece was a "dual armor" piece, and if so apply a dummy armor piece in the other slot.
The common event would look for something like : "Did the player equip this piece of armor" (up to you to check for which ones), and if so : apply dummy armor to the other slot.
It's posted in MZ Support, so that would be a safe assumption 😛
Am I not thinking of something? How, without plugins, could you make a common event trigger when the player equips something?
I suppose you could have a parallel event running the entire game just for this, constantly monitoring the actor's inventory, but that wouldn't have any effect on what they're equipping in the menu.
Oddly, I'm not coming across anything like this for MZ. MV had Yanfly's Equip Requirements, but the VisuStella version doesn't have a JavaScript notetag, so you can only check their specific things.
Similarly, I came across an absolutely bizarre one by Niji that makes up its own weird syntax for, again, its own specific criteria, and doesn't allow you to supply a JavaScript condition.
So I whipped this together, haven't tested it yet - add the attached plugin to your project.
Then you would put on any armor that goes only in the lower slots
Code:
<Equipment Requirement>
value = !user.isEquipped($dataArmors[x]);
</Equipment Requirement>
where x is the ID of the full-body armor.
If you have multiple of those, instead you'd do
Code:
<Equipment Requirement>
value = ![x, y, z].some(armor => user.isEquipped($dataArmors[armor]));
</Equipment Requirement>
Let me know if you have any issues using it.
the default engine handled this slightly different and completely without any plugins:
Have the armor equip in one slot and give it a trait to seal the other slot.
for example full plate seals the helm slot, 2-handed weapons seal the shield slot and so on.
the other slot will remain empty instead of holding a dummy entry, but the effect for the player is the same: he can only equip one item with the other slot becoming unusable.
Have the armor equip in one slot and give it a trait to seal the other slot.
for example full plate seals the helm slot, 2-handed weapons seal the shield slot and so on.
the other slot will remain empty instead of holding a dummy entry, but the effect for the player is the same: he can only equip one item with the other slot becoming unusable.
I just gave it as an example, I know some people don't want to use plugins, so yeah... this isn't the most effective way of doing it, but it sure is possible.
Although @Andar's solution looks better
Yeah, I always forget about the sealing slot trait. It looks like this is a plugin that MZ doesn't really have, though, so it's good to be out there.
Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-create-armor-that-take-up-more-than-1-equipment-slot.172046/