RPG Maker Forums

Out of my tests I managed to discover you just equip a null in order to unequip. Just today I noticed it's not just "a way to do so", but the default behavior MV has.
I'm making a plugin where it does something with a notetag upon equiping any kind of item as long as it has a specific notetag, and undoes it upon unequiping that piece of equipment.
I came again across changeEquip function so...
Code:
(function()
{
    var saveTheOriginalChangeEquip=Game_Actor.prototype.changeEquip;
    Game_Actor.prototype.changeEquip = function(slot, item)
    {
        if (item)
        {
            var match = item.note.match(/.*<notetag>.*/i);
       
            if (match)
            {
                //do stuff
            }
            saveTheOriginalChangeEquip.call(this,slot,item); //then equip it
        }
        else
        {
            //Check the gameActor who called this
            //Check the slot to unequip
            //Check the item's notetag
            //undo stuff
            saveTheOriginalChangeEquip.call(this,slot,id); //then unequip it
        }

    }
})();
I'm only missing the how to check the actor who called changeEquip or the item that's being unequiped in order to go on. Any ideas or suggestions?
(I'm guessing it's something on the lines of "this.")
[EDIT]No, I'm sure, it's this.something. I might go out this issue by myself....

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,446
Members
137,820
Latest member
georg09byron
Top