As far as I understand you should be able to use the same script multiple times, adjusting it by changing the properties. Using ONE script over and over.
In my town mod I have the lights in every NPC house turn off at different times at night, as though the NPCs are turning off their house lights when they go to bed. I also have some events such as skeletons/ghosts appearing on the same script at different times.
I set these all up by attaching the script 'AutomaticLightSwitchScript' to a marker activator and parenting the light bulbs to it so that they 'enable' when the marker is enabled by the script. I used the same script for each NPC house and just changed the properties, which in that script are the time.
BUT the scripts are misfiring all over the place, lights are turning on during the day, ghosts appearing when they shouldn't etc. If you save game at any point, when you reload the scripts have misfired and lights etc that should not be on are on. I have to get this issue resolved for the updated release of the mod. The only thing that solves it is if I make a new script for every instance I use the script. For instance for every NPC house the same script under a new name is required.
I had this same issue when setting up my manual light switches. I could not use the same script on different activators or it seemed to affect every other activator with that same script on it. So I would flip the lever of one manual light and it would affect other separate lights that have the same script. I had to have three separate scripts (the same script under a different name) for my three manual light switches.
Hopefully I am explaining this correctly, I have a https://www.dropbox.com/s/g01w4qqd7ejvved/ShezriesOldHroldan1pt5.7z?dl=0 to the mod if anyone can help and needs to look at how I have it set up.
So I have 26 buildings in my mod. In order to have the Lighting Script work I would need to make 26 instances of the same script with a different name for each script. I cannot use the same script 26 times over as it misfires.
Would it just be easier to attach the scripts to the lightbulbs themselves and place those? That would place three or four scripted objects in each cell.