Using Visustella's Items and Equips Core, I'm creating a system where certain Armors can dynamically affect the number of Accessory (a different type of Armor) slots you have. Unfortunately, Plugin Commands are the only way to do so with this particular plugin, and while it technically works with standard Common Event functionality, it comes with an obnoxious QOL issue. The player has to equip an Armor, exit the Equip Menu, and then reenter the menu to see the number of equip slots actually change.
I've heard there are ways to run Common Events without exiting the Menu Scene in RPG Maker MV, and I've even found such a plugin for RGSS3, but I haven't found anything I can actually use. If someone could point me in the right direction, or even make something on the fly, that would be much appreciated.
Did that waynee equipeval stuff work in RPG Maker MZ? If yes, try running the plugin commands in script form with that. You can google here how to run them like that (it's shown in the Ultimate New User Manual also, I think).
EDIT: Check post 8 for better info.
As useful as that plugin would be under most circumstances, I don't think it'll work here. I'd have to find the actual code that the Plugin Command is based off of, which normally wouldn't be too hard, but most of Visustella's code is heavily obfuscated. If there is a way to run a Plugin Command in Javascript, or a way to de-obfuscate the code with relative ease, then it'd work out.
Yeah but that's why I said that run the code through the plugin command script. And mentioned where you'll find an example (in my signature).
EDIT: Though now that I think about it, it probably won't work LOL, my bad. EDIT 2: Because I guess it'd need that event list syntax?
Oh! It was all the way at the bottom, but it's there alright. Thank you very much.
Yeah, but did you see my edit. I don't think it works like that, because as I understand it's made to run like that in that event list format. So, can't offer you any advice, other than use the console to try to check what kinds of functions there are and guess stuff the parameters, LOL.
Ough. Well, there is a HIME plugin that works around this problem entirely, but I'm not sure if it'll work well with Visustella's plugins.
I actually figured out something by checking console and guessing. Seemed to do something (that array is like the equipment type ids, also you need to change the actor reference to the menuActor or whatever):
$gameActors.actor(1).forceChangeEquipSlots([1,2,3,4,5,5,5]);
$gameActors.actor(1).updateChangedSlots();
SceneManager._scene._slotWindow.refresh();
EDIT: You need to be in the Scene_Equip for that last line to work.
Well the HIME plugin didn't work out, but this works like a charm. Again, thank you very much.