Currently, I'm attempting to use Unconnected42's 'Change Equip On Battle' plugin to... well, allow players to change their equipment in battle.
I tried several plugin alternatives, but this was the only one I could find with the option to make changing equipment consume a turn, as well as several other useful features. Despite being fairly old, the plugin seems to work just fine, but with one glaring issue. Unfortunately, when using the default battle system (ie, selecting everyone's actions at once), the plugin doesn't seem to account for having multiples of the same equipment in the inventory, like so:
Actor A and Actor B both want to change to a 'Fire Amulet' to block an incoming fire attack. With A, the player scrolls down to the first 'Fire Amulet' in the list and selects it, queuing the dummied-in 'Change Equipment' skill. Then they do the same thing with B, but because the equipment change hasn't gone through yet, all of the 'Fire Amulet's are still in the list, allowing them to select the same one again from the top. Then when the skills actually trigger during the turn, only the Actor that goes first successfully changes gear, and the other one tries to change into an item which is no longer equippable, wasting their turn and probably getting hit by the thing they were trying to prevent.
Technically, this could be played around by knowing about it, but even while I was testing this myself and knowing exactly what the issue was, I was never sure whether the change would actually go through properly when I had 4 copies of each item.
My novice's guess is that the solution to this would be to have a piece of code run that hides the item or removes it from the equipment selection window when it gets selected, and then unhide it when the skill actually activates (since it would be equipped on the character and no longer need to be hidden).
The hide/unhide part itself I could maybe attempt, but even if I managed that I don't know nearly enough about the structure of the scenes to know where in the plugin the 'hide' part should go, or how to go about it without breaking stuff.
Of course, any alternative solutions are very welcome! As long as they are applicable to the default battle system with actions being queued at the start of each round, and with equipment changes using the actor's turn. 🙂
I tried several plugin alternatives, but this was the only one I could find with the option to make changing equipment consume a turn, as well as several other useful features. Despite being fairly old, the plugin seems to work just fine, but with one glaring issue. Unfortunately, when using the default battle system (ie, selecting everyone's actions at once), the plugin doesn't seem to account for having multiples of the same equipment in the inventory, like so:
Actor A and Actor B both want to change to a 'Fire Amulet' to block an incoming fire attack. With A, the player scrolls down to the first 'Fire Amulet' in the list and selects it, queuing the dummied-in 'Change Equipment' skill. Then they do the same thing with B, but because the equipment change hasn't gone through yet, all of the 'Fire Amulet's are still in the list, allowing them to select the same one again from the top. Then when the skills actually trigger during the turn, only the Actor that goes first successfully changes gear, and the other one tries to change into an item which is no longer equippable, wasting their turn and probably getting hit by the thing they were trying to prevent.
Technically, this could be played around by knowing about it, but even while I was testing this myself and knowing exactly what the issue was, I was never sure whether the change would actually go through properly when I had 4 copies of each item.
My novice's guess is that the solution to this would be to have a piece of code run that hides the item or removes it from the equipment selection window when it gets selected, and then unhide it when the skill actually activates (since it would be equipped on the character and no longer need to be hidden).
The hide/unhide part itself I could maybe attempt, but even if I managed that I don't know nearly enough about the structure of the scenes to know where in the plugin the 'hide' part should go, or how to go about it without breaking stuff.
Of course, any alternative solutions are very welcome! As long as they are applicable to the default battle system with actions being queued at the start of each round, and with equipment changes using the actor's turn. 🙂