Item equipped, other sprite

How can I let the sprite of the hero change in another one when, for example a sword is quipped?

I mean, that when I equip the hero in the equipment menu with a sword, that I change the sprite of the hero. I know how to change the sprite of the hero, but how do I let it know that he has a sword equipped?
Edit: I misunderstood the question.  Ignore this.
You can have common events run upon equipping/de-equipping weapons and armors (tsukihime has a script for this) and have it change the actor graphic sprite. If using an animated battle system, you'll have to make the changes for that.
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.


There are scripts that will let you do this. YOU need to provide all the different sprites though.
No need for a script here. You can do it with a simple common event. It must be a parallel process. You add the conditional branch that actor X equipped item Y and then you say if so the sprite changes. Always also set handling when conditions do not apply and say if they don´t change sprites to "normal" sprites. That´s all. 

As also told above you need to work the custom sprite with the weapons on it yourself. A good program here would be Gimp cuz it´s free and it can do all you need it to do. 
Though using a parallel process here can be a bad idea as it will always run, when you only really need to check is when you change equips... several parallel processes at the same time can cause performance issues so I suggest not using them unless highly needed...

anyway, it's your call...
With a parallel process as you describe, it would not only be checking every single frame, but it would be changing the graphics every single frame. I dread to think how much lag that would cause.
I dont understand the common events that good.

I have now in the chest event this:

Spoiler
Naamloos.jpg
I also think that a parallel process is not good. I tried some things but I cant get it in a common event. I tried to make it so, that if he finds a better weapon that it gets equipped automaticly. As I understand is the common event the best thing for that. But how? I have no idea.

I use GraphisGale, Gimp and iDraw for the sprites.

Edit:

I have found it for the common events 🙂

Thank you guys for the answers, its solved.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/item-equipped-other-sprite.18584/