I'm trying to add to my Master of Disguise mod a way to break out of prison by taking a guard's uniform and walking out the front door.
I've implemented this to some extent; however, the guards are always hostile to the player once they see the player and the player is not in his/her cell.
Furthermore, whenever the player leaves the jail, the player always incurs a 100 bounty.
- I've searched through every script. There's nothing that involves adding the player to a hidden escaped prisoner faction, setting the player's crime gold, or triggering the guards to attack.
- I've experimented with guard and crime factions, disabling those factions' "attack on sight" flags, adjusting crime values, and so on to no avail.
- I've even rewritten the JailDoorScript, which by default creates a detection event when the cell door is opened, so that no event is generated when the door is opened by the player. At the very least, I can allow the player to pick the cell door lock without having to immediately engage the guards.
I suspect that the logic governing the Jail Event and Escape Jail Event is not exposed to modders, but maybe I'm missing something.
Anyone have a better idea?