Here's somthing that might be of use to some of us.
As i was checking the game scripts a few days ago, i stumbled upon the "def_arealoaded.ncs" script.Given by the name, this script is executed every time an area is loaded, I decompiled the script using "nwnnsscomp.exe", and to my surprize, it was a very simple script, it just handles some GUI, so i hooked an "ExecuteScript" at the end of it.So now, every time an area loads, it will execute a script called "custom_script". You can put whatever you want in that script, and you can do everything that can be done by scripting in the OC (or any module if you wish), you can create and edit spawnsets, quests, creatures, items, placables, and fix bugs if you encounter them.I think this would be helpful for poeple who wish to edit the OC, without editing the modules.A word of caution though, Executing very large scripts might increase the load times, so if you have a large script, or a LOT of small scripts, and you only need to run them once, don't forget to remove them from the override folder after you're done, or setting a local VAR, and using " if() Return;". Or you can use "DelayCommand" to execute the scripts after the area is loaded.
As i was checking the game scripts a few days ago, i stumbled upon the "def_arealoaded.ncs" script.Given by the name, this script is executed every time an area is loaded, I decompiled the script using "nwnnsscomp.exe", and to my surprize, it was a very simple script, it just handles some GUI, so i hooked an "ExecuteScript" at the end of it.So now, every time an area loads, it will execute a script called "custom_script". You can put whatever you want in that script, and you can do everything that can be done by scripting in the OC (or any module if you wish), you can create and edit spawnsets, quests, creatures, items, placables, and fix bugs if you encounter them.I think this would be helpful for poeple who wish to edit the OC, without editing the modules.A word of caution though, Executing very large scripts might increase the load times, so if you have a large script, or a LOT of small scripts, and you only need to run them once, don't forget to remove them from the override folder after you're done, or setting a local VAR, and using " if() Return;". Or you can use "DelayCommand" to execute the scripts after the area is loaded.


