So, context: Yanfly's Change Battle Equip script/plugin allows you to change out equipment in the middle of combat. But I've noticed a quirk - in VX Ace, if you didn't actually mess with your character's equipment and exited the change equipment menu, you didn't actually get nailed with the cooldown that prevents you from accessing the menu again.
I thought that was neat and assumed by default this feature was in the MV plugin equivalent of the script, but not so, after doing some tests.
I've tried to recreate this code with its Javascript counterpart, but so far nothing's coming to mind.
I thought that was neat and assumed by default this feature was in the MV plugin equivalent of the script, but not so, after doing some tests.
Ruby:
$game_party.menu_actor = actor
previous_equips = actor.equips.clone
index = @actor_command_window.index
actor.set_equip_cooldown if previous_equips != actor.equips
I've tried to recreate this code with its Javascript counterpart, but so far nothing's coming to mind.