Move Event, Repeat action - Stop detection Script Call?

Is there a way to detect if an event is moving or stopped?  I have some boulders that move when you tell them to....  I have them set up for repeat action and skip if unable.  Well they stop when they hit something, but when that something is moved they continue on.  I want them to stop processing the move event after they hit something.  Is there a JS code for the script call?  Maybe I could put it in a conditional branch or loop and stop it when it's true?

Original thread: https://forums.rpgmakerweb.com/threads/move-event-repeat-action-stop-detection-script-call.62791/