I want to talk about something that I came up these days.
I have a script that spawns a bandit NPC on an entrance of a Tavern while the player is inside. As I don't want to create a new script every time I spawn something I created four (can be more) waypoints with tags WPSpawn_1, WPSpawn_2 and so on.
When I want to spawn the bandit at the door I put WPSpawn_1 there and name it with the resref of the bandit. I then run the wps1_activate.nss script which creates an object at the nearest WPSpawn_1 waypoint to the PC with resref equal to the name of that waypoint.
The other waypoints are in case I want to spawn another creature in that area. They have their own wps*_activate.nss scripts.
As I am sure that I am not the first one with such idea, I want to know if someone else has done something similar and you can give some tips or more ideas. I have the feeling that this system can be expanded a lot more as I am always trying to have as little scripts as possible for all kind or repeated tasks that are almost identical to each other (like spawning creature at waypoint).