I've also added some behavior switch rules for Custom NPCs in this release; in this video, I explain how you can get a switch rule that causes the NPC to switch behaviors if the player gets to the right of the NPC, or to the left of the NPC.