Help creating equip window in skill menu

Hello!

I'm having trouble trying to change how the menus work.
I want to add a "Learn" option to the skill scene that would allow me to equip spellbooks containing skills.
When you enter the skill scene, skills can be selected and used as usually; but if you select the "learn" option the window operates like a equip selection menu.

Here's a mockup of what I want:
(Note that skills and their equippable spellbooks have the same name. If you equip Fire3, you learn the skill Fire3)
DsfcMZL.png


So far I have successfully added an entry to Window_SkillType in Scene_Skill. I managed to set a handler that opens an empty window where the equip slots should be - and that's it. I won't even try to make you read it -- it's awful code.

Questions:
- How do I implement the equip slot window and function in this scene? I tried copying code from Window_EquipSlot and Scene_Skill but all I get is an empty window.

- When I select the "learn" option, the skill list is emptied -- probably because selecting a second option in the Window_SkillType window tries to read a non-existant skill type. Ideally the default skill list and the learn window would look the same, except "learn" has an equip function, instead of the default one. How do I make this work seamlessly?

I don't know the engine very well and I'm not even sure if I'm aproaching this the best way -- I really could use some help with this.

Thank you! 🙂
well, if you post your code, someone will know where you at and will help you from there, otherwise, it's hard to tell how much you know about the system...

Don't be afraid, everyone start from beginner too
😍

EDIT: Window_EquipSlot works specifically for equipping an equip item, so if you just copy it from the default and hope it can be used to equipping a skill, it will not work like you want to...

Original thread: https://forums.rpgmakerweb.com/threads/help-creating-equip-window-in-skill-menu.111969/