yanfly stop all movement script help

been trying to figure out how to use this... says to go to the module and bind this to a switch but i cant find what the heck i'm supposed to be looking for to bind it... please help

Capture2.PNG
You have to change the numbers next to the Stop lines. What this will do is assign the number to the switch with the same number. So because Stop NPC Movement switch is assign to switch number 22, whenever that switch is on it will stop all events.
helpful information but this doesn't really help with my question... I'm still confused
You need to decide which switch number you want to use for stopping the movement. This has to be your decision because no one knows which switches you might have used for other purposes already.


Then you need to go to the line mentioned and change the number there (at the moment 22 for events and 23 for the player) to the number of the switch you selected. That is what Yanfly means by "binding" a switch. And you should name that switch accordingly in your game so that you remember what switch is for what.


That's it - whenever you turn on the switches with a control switch command in one of your events, the movement assigned to that switch will stop.
ahhh i just figured it out, the number indicated which switch the script worked on. STOP_PLAYER_MOVEMENT_SWITCH = 23 meant that the script worked on the switch number 23... okay now i understand.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-stop-all-movement-script-help.61017/