At least for emotes:
http://steamcommunity.com/sharedfiles/filedetails/?id=1171786943&searchtext=EmotesEasy patrolling was asked for from day one on. Looks like a ( by Larian considered)proper way is not so trivial.
I have no clue about scripting, but my implementation suggestion was:
Create blank NPC templates with a special wander / patrolling script
Which starts patrolling once special tagged patrolling points /waypoints) (object templates like small stones or invisible objects like stickies) are placed. Cycling through these patrolling points. Once only one waypoint exists the NPC will return/stop there. If all patrolling objects are deletes NPC stops immediately.
Don't know if that was possible to implement / script.