Hmm.. weird structure. that line just change the battler_in_motion variable inside game_temp class to false.
there's probably another update somewhere looking for that statement.
You said something about more than one "def update" right? The right one should be somewhere below "class Scene_Battle" in that script or module BattleManager, or Sprite_Battler.. hmmm.. quite a lot of possibilities 😛
Well, judging from the variable name.. that code might just work. The script probably check if battler_in_motion is true/false in another update somewhere and change the graphic if it's false. (Which seems to be a weird and laggy way to implement a script)
Try add that if statement behind the line
$game_temp.battler_in_motion = false if !$game_switches[1]
And turn on switch 1 using troop event to see if it works. As battle goes and depending on where the update is called, the enemies might not stop moving right away but should stop moving on the next turn.
there's probably another update somewhere looking for that statement.
You said something about more than one "def update" right? The right one should be somewhere below "class Scene_Battle" in that script or module BattleManager, or Sprite_Battler.. hmmm.. quite a lot of possibilities 😛
Well, judging from the variable name.. that code might just work. The script probably check if battler_in_motion is true/false in another update somewhere and change the graphic if it's false. (Which seems to be a weird and laggy way to implement a script)
Try add that if statement behind the line
$game_temp.battler_in_motion = false if !$game_switches[1]
And turn on switch 1 using troop event to see if it works. As battle goes and depending on where the update is called, the enemies might not stop moving right away but should stop moving on the next turn.