@MollyI found a couple things I think are wrong with the blackjacking bandits part of the script.
1. When a bandit walks behind the wall outside of the building that you're in blackjacking, sometimes the script will try to thieve that one or try to knock it out.
2. When you run out of food and are still being attacked, the script leaves the house to get more food. Maybe this should be, drop aggro by climbing the ladder, then leave to get food if this happens. I've almost died a couple times watching this happen.