MV Need help with Yanfly's "Instant cast" plugin

So, I'm trying to make a skill that allows certain characters to change their equipment mid battle. I set it as an Instant Cast skill to avoid having to enter the other party members actions twice. Currently, the skill calls on a common event, which in turn runs the script:

SceneManager.push(Scene_Equip)

Once the player exits the equip scene, the entire battle just stops. their is no error message or anything, I just can't do anything. also, the skill applies a "Cancel Turn" status effect to the user so that they can't use another action on the same turn.

If I remove the <instant cast> note tag, it will run just fine, but as I mentioned previously, this results in the player having to input the other party members actions twice.

Edit: I've also just realized that when the player exits the equip scene, the music stops and the skill's user is cleared of all status effects.
yanfly has a plugin to accesses the equip core in battle btw.

not sure if that could be set to work on a skill as i haven't used the plugin as i don't want ppl to change outside of town lol.
yanfly has a plugin to accesses the equip core in battle btw.

not sure if that could be set to work on a skill as i haven't used the plugin as i don't want ppl to change outside of town lol.
I do have that plugin, but it grants more unrestricted access to the player than what I want. I'm looking for it to be an actual skill; not every character can do it, and it should cost TP in order to pull off.

If I could find some way to trigger that plugin through the "Re-Equip" skill, it would probably get me what I'm looking for, but as it stands, I don't know how to do that.

Thank you though.
unless someone else comes up with another idea what about placing the <Disable Change Battle Equip> in a passive hidden state on the characters (if you have yanflys passive states) then have your skill temporary remove that and places a new state (hidden) on the player that has a turn end tag to remove it then place the other state back on with the instant cast it wont take the turn and allow accesses to the equip menu then have it so the state is readded at turn end so next turn its not in the menu anymore

its not perfect but does close to what your looking for unless someone else knows a way to accesses it without the roundabout way xD
unless someone else comes up with another idea what about placing the <Disable Change Battle Equip> in a passive hidden state on the characters (if you have yanflys passive states) then have your skill temporary remove that and places a new state (hidden) on the player that has a turn end tag to remove it then place the other state back on with the instant cast it wont take the turn and allow accesses to the equip menu then have it so the state is readded at turn end so next turn its not in the menu anymore

its not perfect but does close to what your looking for unless someone else knows a way to accesses it without the roundabout way xD
I tried out your suggestion, but now there seems to be a plugin conflict, because now I'm receiving an error message. Also, if I did get it working, it would still feel kind of clunky. Thanks for the advice though.

Edit: alternatively, I could maybe use Yanfly's "Map Select Equip" to try and give the player the option to change their weapon mid battle, but after trying it, the plugin command only seems to work outside of combat.

Edit #2: so I opened Yanfly's "map Select Equip" plugin in notepad and replaced every instance of the word "Map" with "Battle", and saved it as a separate plugin. This actually works, but I also tried doing the same thing with a plugin by "Aloe Guvner" so that it would display the weapon descriptions on screen: https://forums.rpgmakerweb.com/index.php?threads/yep-extensions-by-aloe-guvner.95141/

Unfortunately, my edited version of Aloe Guvner's "Map Select Equip - Help Window" plugin doesn't seem to be doing anything.
I'm not sure this is something that needs attention from someone who knows a bit more xD. I tried replicating what you did and more or less got the same outcome where it either froze or ended the battle or caused the next to have to enter the commands several times for them to work.

The suggestion above i had working since its just simply hidden the equip option in the menu then showing it when the skill is used. It wasn't perfect and the player still had to open the equip menu in the action list. I also tried a different battle plugin mogs and got the same issue where it just froze or exited the battle. Also did a fresh clean game with just the plugins needed to use the equip core same results. So I'm assuming to make this work is goanna require a little editing to stop it form killing the battle scene or causing whatever it is making the commands have to be put in several times.

-------------------------------------------------------------------------------------------------------

May have read that wrong you got it working? Lol with the map equip plugin? xD
I'm not sure this is something that needs attention from someone who knows a bit more xD. I tried replicating what you did and more or less got the same outcome where it either froze or ended the battle or caused the next to have to enter the commands several times for them to work.

The suggestion above i had working since its just simply hidden the equip option in the menu then showing it when the skill is used. It wasn't perfect and the player still had to open the equip menu in the action list. I also tried a different battle plugin mogs and got the same issue where it just froze or exited the battle. Also did a fresh clean game with just the plugins needed to use the equip core same results. So I'm assuming to make this work is goanna require a little editing to stop it form killing the battle scene or causing whatever it is making the commands have to be put in several times.

-------------------------------------------------------------------------------------------------------

May have read that wrong you got it working? Lol with the map equip plugin? xD
okay, so what I did was I opened the map equip plugin in notepad, clicked "edit - replace" and replaced every instance of the word "Map" with the word "Battle", and saved it as a different .js file named "BattleSelectEquip".

Then, the skill calls on a common event which runs the plugin command: BattleSelectEquip 9 weapon

Then, the rest of the common event has to; figure out which actor used the skill, which weapon it was that they selected, and then force equip the weapon for them. It works but their are some downsides;

  1. Their's no way for the player to see which weapon they actively have equipped.
  2. When selecting a new weapon, the player can not see the weapons descriptions.
  3. Inside the common event I have to create a different conditional branch for every single weapon choice, and then repeat it for every single character.

If anyone could help me find a workaround for these issues, then I'd be golden.

Edit: you know, this whole thing would be a lot easier if I knew how to make a plugin that triggered Yanfly's change battle equip through a skill.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-yanflys-instant-cast-plugin.158252/