Sections 1, 2, 5, 10, 12... in with diminishing returns... and then you can look at the constructed files after installing for example the SCS's component, the component prints the backups* ... you won't be able to understand the codeitself as it's build fromit's own scripting way, but that shouln't matter. This is as deep hell as you like it to be.
You should then be able to basically use the same way in all the other files. This will of course not work in all files as unfortunately not all the .are'as have native scripts running on the background, and that will be a problematic. Which is why I wouldn't do this with scripting at all, but with a forced monster/guard interruptions during the sleeping.
*The reason why I hate this mod is that it prints files outside the mods own folder, read more about that in there. .. into it's own "workshop" folder, that also contains the backups. To actually be able to read those, you just need to have Near Infinity, a Java tool associated with a game folder. From which you can then open up the ar0602.bcs, as that's the area script the game uses to presumably do this feature.
Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit).
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.