You won't be able to run a village on OPC scripts only.
You cannot do anything skill wise that would result in a chance of failure. You cannot for example experiment and develop a new method of making iron with a script. Nor can you advance skills without being online.
Opc scripting is meant to keep your avatar from dying of thirst if you park him/her in the wilds. It's meant to allow a certain chance of escape if you are attacked. Read that to be minimal.
To make a villiage that is self sustaining you would need to play each villiager and advance their skill levels to where they can use the scripting to produce things the town needs. Which likely would require several skill advances before they become "grey" enough recipes to be done via the scripting system.
Ambitious idea but a bit outside the realm of possibility.
Now NPCs do not have these limitations and any NPC villiager would be able to help a town be self sustaining. In short your best bet would be to become the mayor of an entirely NPC town. You would only be able to directly control your avatar with a script but the town would survive.