Cleaner NPC outfit swap.

An area has been built where party members are acting as events outside of the party. I've made 10 different custom sprites for each character to show what they're wearing. I've used a common event to check their equip then auto change their actor image and that works great while they're in the party. But as events in the world the actor check doesn't work. For the time being I've used set a movement route to change their image in a parallel event. It works but I fear as I add more outfits I might get a bit messy. I'm just wondering if anyone else has a better solution.
we can't tell you if there is a better way without seeing how you structured your parallel process.

you either have to use a parallel process or a plugin that calls a common event on equip.
But both variants can be done easy or with a hell of lag, and from your description we don't know which way you made the events.
we can't tell you if there is a better way without seeing how you structured your parallel process.

you either have to use a parallel process or a plugin that calls a common event on equip.
But both variants can be done easy or with a hell of lag, and from your description we don't know which way you made the events.
Apologies, I realize now my phrasing as a bit a unclear.
How I do it for the actors is a common event just checks what the character has equipped then adjusts the visual. It's clean and easy.

1624806760402.png

As of right now, I've made an event on the map running parallel that does similar by checking what the actor has equipped and changing the events visual image to match. It works fine, but the more outfits I add the more I worry it might clog.
1624806781546.png
those events are relatively clean.
the only thing you should do is add a wait(20) or so to the end of the parallel.

For a parallel process, a wait command basically means "skip this process for x frames". You don't have to check and change the pictures sixty times per second, with a wait(20) you would change that to three times per second - still more than enough to change the effect fast, but much less lag.
Probably the easiest way to do it for sprites, you'll just need to put together a script from the print console log for each character's dynamic actor. When it comes to faces it'll be hard to do it if it's more than one face per party member.
those events are relatively clean.
the only thing you should do is add a wait(20) or so to the end of the parallel.

For a parallel process, a wait command basically means "skip this process for x frames". You don't have to check and change the pictures sixty times per second, with a wait(20) you would change that to three times per second - still more than enough to change the effect fast, but much less lag.
okay thats some good advice, I've got a few common events always checking certain toggles. i should probably add a wait command to those too. thank you!

Probably the easiest way to do it for sprites, you'll just need to put together a script from the print console log for each character's dynamic actor. When it comes to faces it'll be hard to do it if it's more than one face per party member.
thank you, i'm gonna check it out!

Original thread: https://forums.rpgmakerweb.com/threads/cleaner-npc-outfit-swap.137855/