But what if multiple spell books are equipped? Like a Fire and a Water and an Earth? Is there any way to do this without dozens of potential conditional choice branches based on the different combinations of spell books equipped?
Upgrade an Item (Spell book) that Changes a Skill
RPG Maker MV SupportThat's why I suggested a different upgrade item per element. That way each upgrade item will only check for a specific element of spellbook.
If you really want to use just a single item then you'd really need to have a choice box that asks players what book they wish to upgrade but as you said that would include spellbooks that he might not have.
So far without doing any scripting/plugin these are the options that you have.
If you really want to use just a single item then you'd really need to have a choice box that asks players what book they wish to upgrade but as you said that would include spellbooks that he might not have.
So far without doing any scripting/plugin these are the options that you have.
For the item just make it:
Consumable, Scope: The User and in the effects window set it to call a common event that runs the check for which book you want to upgrade.
Probably the easiest way to handle this would be set up a condition branch for each book type in the upgrade common event, that checks if you have a book type equipped and if so asks if you want to upgrade that book, then if you say no it would continue its checks until it reaches the next book type you have equipped and ask if you want to upgrade that one. It's not perfect but it's better than the choice branches with book types you don't have equipped.
Gotcha. Single item fits the game way better, so I guess I'll have to figure out something with the conditional branches. Thanks for your help, and please let me know if you have any other ideas 🙂.
I was thinking this as well. Probably less tedious and cumbersome than the previous method. Thanks!
I wonder if this could somehow be paired with Yanfly's Upgrade Item Slots plugin. Certainly seems like a natural pairing. The hurdle would be getting the upgrade effect to change a variable tied to the spell book...or the upgrade effect to be changing the spell book itself. Not sure if this is possible though...Thoughts?
My way of doing it (if you need any more opinions :c):
1. Have "Fire 2"/"Water 2"/etc. upgrades purchasable consumables.
2. Have "Spellbook Fire"/etc. duplicate items for each skill.
3. Using Yanfly's Skill Core have the skills only show when the correct spellbook is equipped.
3. Using Yanfly's Item Requirements to make these upgrade items only work when the correct spell book is equipped.
4. The item would use common event/dmg formula to remove the current spellbook and add equip one.
Orrrr you can have the item set a variable, not touch the spellbook at all, and have the Skill Core check that the spell book is equipped AND the value of the variable. Down to zero common events easily that way.
1. Upgradeable consumably bought
2. When used, changes Variable X's value to 2,
3. Skill Core displays "Fire" for V = 1, "Fire 2" for V = 2, etc.
1. Have "Fire 2"/"Water 2"/etc. upgrades purchasable consumables.
2. Have "Spellbook Fire"/etc. duplicate items for each skill.
3. Using Yanfly's Skill Core have the skills only show when the correct spellbook is equipped.
3. Using Yanfly's Item Requirements to make these upgrade items only work when the correct spell book is equipped.
4. The item would use common event/dmg formula to remove the current spellbook and add equip one.
Orrrr you can have the item set a variable, not touch the spellbook at all, and have the Skill Core check that the spell book is equipped AND the value of the variable. Down to zero common events easily that way.
1. Upgradeable consumably bought
2. When used, changes Variable X's value to 2,
3. Skill Core displays "Fire" for V = 1, "Fire 2" for V = 2, etc.
Original thread: https://forums.rpgmakerweb.com/threads/upgrade-an-item-spell-book-that-changes-a-skill.79850/