MV Change motion on actor switch when they reach a certain spot...

I'm using this to switch out actors http://www.yanfly.moe/wiki/Actor_Party_Switch_(YEP) and everything works as intended except when I try changing the motion the characters come in on. I have custom motions where the player can "dash" in... but I can't get the motion to go away lol. thing is, I want the motion to carry on until they reach a certain spot. I can't seem to get "clearMotion" to wait until they've reached said spot, thus if I put that anywhere in the code, it'll override the requestMotion and they won't change motions at all. is there a way to get the game to wait until they reach their spot THEN change the motion?

ScreenShot_11_7_2022_4_44_34.png


basically I want to end the motion above, but only once they've reached their destination on screen. If I don't put clearMotion anything, it won't end until they act. if I do put it, they'll skip this motion entirely and just use the Walk motion the entire time. I've tried different things but they either don't work or they just override the motion I want to use.

Crap I wasn't paying attention and put this in the wrong spot. sorry about that MODS, this is supposed to be in Support.

I'm gonna report this as solved as I figured it out...

setTimeout(function () {
$gameParty.members()[0].requestMotion('walk')
}, 300);
did the trick tho incase anyone sees this and is curious.

I've moved this thread to Javascript/Plugin Support. Thank you.


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/change-motion-on-actor-switch-when-they-reach-a-certain-spot.152533/