The Witcher board : Here's somthing that might be of use to some of us. - The Witcher board

Jump to content

Community Discussions

ssssssssssssssss

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Here's somthing that might be of use to some of us.


    • Posts: 44
    • Joined: 05 December 07
  • Advanced Member
  • PipPipPip

04.11.2008 @ 00:24 #1

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.

Attached File(s)


Vive La Revolution..!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users