How do I equip an item to a fixed quipment slot in yanfly's equipment engine?

Basically, I want to know how to equip a piece of armor or weapon to a fixed equipment slot.

I know you can do this with the engine normally but with yanfly's equipment engine you can have more than four slots and therefore I find myself at a loss on how to equip a piece of armor or weapon to the 5th slot or more.

I'm sure its really easy to do, but I can't seem to figure out how to do this, can someone please tell me?
Use the starting gear notetag to assign an item to the fixed slot.


You cannot assign something to a fixed slot after the game has started - that's why it's called "fixed".
How might I make a slot that the player can not alter the equipment in it but add pieces to it later on in game then?
Adding equipment IS altering the slot - that's the problem.


As far as I know, Yanfly's equip script only supports static equips, not dynamic ones - that's one reason why I don't use it.


It might be possible to find a script command that can change Yanfly's data structure after the game has been started, but that requires analysing the entire script - I simply switched to Tsukihime's new equip script because that analyse would be too much work.


You might want to start with the "removable" option in the script - I don't know what will happen if you set that to false instead of fixing the slot.
To change equipment from slots that have been fixed, you just have to bind the equipment fixing to a status effect. So whenever you want to change equips, you just have to lift the status effect.

Do keep in mind that "Recover all" events, will "heal" the player from this status effect, so always be sure to reapply it after them.

Tsukihime's Utility: Chage Equips allows you to change equipment of script-generated slots.
Is it compatable with yanfly's equipment script?
What are you looking for?


Fixing slots? (can't change equip for that slot)


Changing slots? (adding slots, removing slots)
Is it compatable with yanfly's equipment script?
Lazy, lazy, you should check this stuff out for yourself.... 😉

But, to answer your question: yes, it is perfectly compatible, as far as I've tested.
Lazy, lazy, you should check this stuff out for yourself.... 😉

But, to answer your question: yes, it is perfectly compatible, as far as I've tested.
Okay so how do I do this? I admit that I've tried doing this since you linked me to the script but I have no clue how to equip the item through the script. I've tried this:

equip_armor_by_etype(1, 6, 264)

But it does nothing.
Well, you might be better served by asking Tsukihime if you have problem with his scripts. Except that I ran into the same problem, so I can answer this one: the script call doesn't add equipment to your inventory, first you have to give the character the equipment piece via a "Change Armor/Weapon" event.
ah okay and thank you! I can simply bypass the issue of being unable to set stuff to fixed or not by simply making the slot unremoveable and such.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-equip-an-item-to-a-fixed-quipment-slot-in-yanflys-equipment-engine.35345/