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)
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! 🙂
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)
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! 🙂