Engine sound (only while player is moving).

Hello,
I have a very complicated problem (this time for real).
I want the player to make sounds while moving. When he is in some building - it's easy. I've used the idea from Dalamar :
Bez tytułu.png


But... In my game the player is changing into a vehicle very often. I know that there is an in-game vehicle mode but I have plenty reasons not to use it.
So I'm changing only the image of the player to a vehicle in certain locations.
And here is the problem because the engine sound needs to be constant and also has to start and end. So it should use one specific SE file when starts moving, one constant sound when moving further than one tile and another SE file when stopping.
The last one could be made by a simple fadeout but still, I want to ask you guys, how would you do something like that?
It seems like the simplest way you could do this is with a sound effect triggered when first getting into the vehicle. Then initiating a BGS (instead of SE) for the continuous engine noise. And another sound effect, BGS end when you get out.
This would solve your problem entirely. http://www.yanfly.moe/wiki/Footstep_Sounds_(YEP)
But if you don't want to use that plugin then you need to alter your conditional branch by checking following: https://prnt.sc/uxw6hm

Like this: https://prnt.sc/uxw9em

Wich can be read for humans:
If player is walking AND is NOT in vechicle: --play sound
otherwise check:
If player is walking AND is NOT in airship: --play sound
otherwise:
etc etc etc.
Thanks for the answers. I've actually did it another way. I've used the same pattern as in my first post. Only with shorter amount of frames in the "wait" command. And with a little bit longer sound that fadeouts itself. It starts with every step and it ends up with a few sounds playing together but with a correct type of sound the result is pretty okay.

Original thread: https://forums.rpgmakerweb.com/threads/engine-sound-only-while-player-is-moving.128602/