Status
Not open for further replies.

Puppet Knight

Knight on a Crossbar
Veteran
Joined
Aug 3, 2022
Messages
421
Reaction score
223
First Language
English
Primarily Uses
RMMZ
Looking for something hopefully straight forward to allow one armor to be used in different slots.

I've tried HIMEs and NIJIs MZ port but they crash out for me. Seem incompatible with my current plugin set up.


Any and all help would be great here.
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
983
Reaction score
496
First Language
English
Primarily Uses
RMMV
Looking at the code for MV (MZ might be different), I saw this:
JavaScript:
Window_EquipItem.prototype.includes = function(item) {
    if (item === null) {
        return true;
    }
    if (this._slotId < 0 || item.etypeId !== this._actor.equipSlots()[this._slotId]) {
        return false;
    }
    return this._actor.canEquip(item);
};

I think you can get the result you want by removing the etypeId stuff leaving:

JavaScript:
Window_EquipItem.prototype.includes = function(item) {
    if (item === null) {
        return true;
    }
    if (this._slotId < 0) {
        return false;
    }
    return this._actor.canEquip(item);
};

Again, I didn't test this at all and it may not work anyway with your custom Equipment stuff.
 

Puppet Knight

Knight on a Crossbar
Veteran
Joined
Aug 3, 2022
Messages
421
Reaction score
223
First Language
English
Primarily Uses
RMMZ
Ill give it a try
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
983
Reaction score
496
First Language
English
Primarily Uses
RMMV
Cool. Please let me know how it goes.
 

Puppet Knight

Knight on a Crossbar
Veteran
Joined
Aug 3, 2022
Messages
421
Reaction score
223
First Language
English
Primarily Uses
RMMZ
Cool. Please let me know how it goes.
It was proving to be above my pay grade:

I went the very different route instead of having the names of slots update based on what class is in use. Then using Gabes Equip Requirements plugin i can restrict when and where the armors i want can be used when ^_^/
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,006
Reaction score
16,823
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts



Chapters advancing demonstration.
Main character roey will be revived after chapter 7, so the animations will be different after it
The title of the main characters will be ascended to celestial as well as wings and rings.
Next Up. The 2nd floor of the Western Academy!

Base:
Map012.png

With a little parallax magic *:



WestAcademyFl2.png


Anything you'd add?
BUwvmx.png


Introducing a new and exciting challenge mode!! Is our demo too easy? Did you get a rare pull and want to show off on stream? Please talk to the mysterious 2nd announcer who has 6 additional challenges PER ROUND! As a game developer, I struggled to complete some of the stage 2 challenges, so I hope you tactics fans have a blast!
AeroPergold wrote on Woratana's profile.
You gucci, Woratana?
so wild I came across a video about side-scrollers for RPG Maker and my game was used as an example in the video. I really felt honored to be honest.

Forum statistics

Threads
131,639
Messages
1,221,822
Members
173,384
Latest member
dreamless
Top