Changing the equipped weapon with a state or skill

Hi! i decided to register in here after searching for some things that i didn't find so i guess i could ask here, maybe i get lucky and you guys can answer me so i think i will list my one of my questions here:

I'm making some habilities that give the char a state and i would like that when the character use them they change their equipped weapon. I'm making something kind of simple, the default weapon animation of the guy is the sword one but when he uses the hability and give himself the state, i would like to change the equipped weapon (or if it is just too dificult, change the animation of the basic attack) to the futuristic weapon one ("on hit" animation included).

Also, im using certain plugins, all from HimeWorks so if i need another plugin i think i have to say that to not mess up with compatibility issues.
Thanks
In future, please post queries separately - one query, one thread. This not only makes it easier to reply to, but also means that if anyone else has the query they can find the answer more quickly. To help that, in future please write meaningful topic titles which give some clear indication about what your question is.
Thanks.
ok, i will edit my topic with only one question and create new ones to ask the others. Thanks for the guidance
At a very basic level this can be done by having your skill run a Common Event that calls the "Change Equipment" command. Change the equipment for the actor that used the skill to the desired equip. (There's no way to check which actor used the skill automatically, but you can have a separate skill and a separate common event for every single actor, or if you're clever with setting variables in the damage formula (not recommended for newbies) you can check the variable inside a single common event on a single skill).

There are a few drawbacks to this approach, of course. First of all, the equipment switch won't happen at all if the player doesn't have the item you're trying to call for in their inventory. Secondly, you can't call for a "category" of item such as Swords - you need to call for a single item such as Tyrfing Sword. So if your idea to is to have the character automatically equip the highest-level Sword in their inventory, you would need to do a metric crapton of eventing to check for each sword from highest to lowest and equip it.

I don't know of any plugins that allow for skill-based equipment control, so if you want something more complex than the above, you will either need to have a ton of Conditional Branches in your common event, or you will need to create/request a new plugin.
yeah actually its pretty simple, i have this character to use one kind of swords, and when he uses the skill im trying to make he gains the hability to equip "greatswords", and he will have allways this weapon on his inventory. This character is the only one who will use that skill so i think that other actors wont be a problem. My idea is to he will take the greatsword and beat the enemies, there is only one so i think i could do it. What i dont actually know, is how to call that common event in the skill

EDIT: i tested it in the program and i found how to call the common event. i did it and it turned pretty good the only issue is that im using the equipment plugin of HimeWorks, and i have 2 weapons slot on that character. The problem is, when i use the skill, the character equips the greatsword, but i think, looking at the animations, is that he is still equipped with the other two weapons can you help me with that?

EDIT2: i made two common events, one to equip the greatsword an other to equip the curved sword that the pj had before. Both in separate skills and states. The issue is that when i use the first skill and the pj use the new weapon and the battle ends, the greatsword stays equipped and that is something i dont want to happen :/
EDIT: i tested it in the program and i found how to call the common event. i did it and it turned pretty good the only issue is that im using the equipment plugin of HimeWorks, and i have 2 weapons slot on that character. The problem is, when i use the skill, the character equips the greatsword, but i think, looking at the animations, is that he is still equipped with the other two weapons can you help me with that?

I don't use sideview animations in my games so I don't have much experience with them. Could be that you set them both as the same equip type, so they use the same graphic? Could be an issue with the equipment plugin, or you're using it? I'm not sure.

EDIT2: i made two common events, one to equip the greatsword an other to equip the curved sword that the pj had before. Both in separate skills and states. The issue is that when i use the first skill and the pj use the new weapon and the battle ends, the greatsword stays equipped and that is something i dont want to happen :/

In the common event that equips the greatsword, set a Switch to ON. Now, make another Common Event with trigger "Autorun", and use that same Switch as the Condition Switch. Inside the Autorun event, equip the original sword that you want to go back to (using the Change Equipment command), and then turn off the Switch. This event will therefore run after any battle that you have changed to the Greatsword in, and once it runs it will turn itself off since the condition switch is no longer met.
Thanks! it worked! i really apreciate your help, it turned out just as i wanted 🙂

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-equipped-weapon-with-a-state-or-skill.78547/