This is a script I wrote that mimics the effect of the Gray Cowl in Oblivion, when attached to an article of clothing. I wanted to share this with the TESA Community, so use it as you see fit, but I do request that you never repost the source on another website (preferrably just link them to this page) and to give credit if you use this in a published mod.
When equipped by the player (it does not function on NPCs), the player will have a separate list of bounties for each hold (and any other vanilla crime factions). They will not stop fighting you, if you are already resisting arrest (I could probably tweak it to do that if someone would like though).
I'll try to add a demonstration video when time allows.
To use this script:
Attach it to an Article of clothing
Open the Properties Window and use the Auto-Fill button
Click "Edit" on each of the Integers (you can just leave them at 0, but if you want the Gray fox to start out with a bounty like he did in oblivion, modify the "Fake" integers (the "Real" ones are the ones that store your regular bounties).
You do not need to do anything else; all variables are stored internally and factions already exist, so there's no need to define any external variables.