I dig up a little about that, the jailguy that follows you use "mova", one could add a "line" around the place they hit the wall instead of going after player, that would stop this script and turn on "lader" script, BUT I dunno if it can be made for those entities to follow character move by move as:
-LADER:
If this opcode is used as part of a non-playable character entity, the NPC object will automatically climb from the start to the end point without need for player interaction.
So if they would get on, they would go all the way up/down. That could work on ladders you can't control your movement, but on those you can, if you would change your mind and return they would be blocked on the other side I guess.
I'm trying to find something that could actually "read" player movements, but other than getdir, getxy, getai that could be made to completely replace MOVA with something more accurate(and more complicated:/), but nothing for a ladder problem

...
Oh wait, maybe using IFKEY/IFKEYON/IFKEYOFF and "just" make the "lader" variable from player keypressed(it CAN check WHAT key is pressed not just "any"

so up/down can be usefull here). Not sure exactly if that could be made to work ingame, I only worry if it's possible to continue/start from the place current entity is actually, couse "lader" uses beginning and end, not sure if they can be somehow set as variables I'm green at ff7 script.
Well good luck anyway. Hope my waste of time was at least a little usefull

.