Forums
Games
Cyberpunk 2077 Thronebreaker: The Witcher Tales GWENT®: The Witcher Card Game The Witcher 3: Wild Hunt The Witcher 2: Assassins of Kings The Witcher The Witcher Adventure Game
Jobs Store Support Log in Register
Forums - CD PROJEKT RED
Menu
Forums - CD PROJEKT RED
  • Hot Topics
  • NEWS
  • GENERAL
    THE WITCHER ADVENTURE GAME
  • STORY
    THE WITCHER THE WITCHER 2 THE WITCHER 3 THE WITCHER TALES
  • GAMEPLAY
    THE WITCHER THE WITCHER 2 THE WITCHER 3 MODS (THE WITCHER) MODS (THE WITCHER 2) MODS (THE WITCHER 3)
  • TECHNICAL
    THE WITCHER THE WITCHER 2 (PC) THE WITCHER 2 (XBOX) THE WITCHER 3 (PC) THE WITCHER 3 (PLAYSTATION) THE WITCHER 3 (XBOX) THE WITCHER 3 (SWITCH)
  • COMMUNITY
    FAN ART (THE WITCHER UNIVERSE) FAN ART (CYBERPUNK UNIVERSE) OTHER GAMES
  • RED Tracker
    The Witcher Series Cyberpunk GWENT
THE WITCHER
THE WITCHER 2
THE WITCHER 3
MODS (THE WITCHER)
MODS (THE WITCHER 2)
MODS (THE WITCHER 3)
Menu

Register

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

+
J

J_Slash

Forum veteran
#1
Nov 4, 2008
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.
 
Share:
Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email Link
  • English
    English Polski (Polish) Deutsch (German) Русский (Russian) Français (French) Português brasileiro (Brazilian Portuguese) Italiano (Italian) 日本語 (Japanese) Español (Spanish)

STAY CONNECTED

Facebook Twitter YouTube
CDProjekt RED Mature 17+
  • Contact administration
  • User agreement
  • Privacy policy
  • Cookie policy
  • Press Center
© 2018 CD PROJEKT S.A. ALL RIGHTS RESERVED

The Witcher® is a trademark of CD PROJEKT S. A. The Witcher game © CD PROJEKT S. A. All rights reserved. The Witcher game is based on the prose of Andrzej Sapkowski. All other copyrights and trademarks are the property of their respective owners.

Forum software by XenForo® © 2010-2020 XenForo Ltd.