Aller au contenu

Photo

Noob question


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
manageri

manageri
  • Members
  • 394 messages
I'm trying to alter one of the scripts in Kaedrin's pack, which is the first bit of scripting I've ever done in nwn2. Compiling the script goes fine and when I open the toolset and the script again the changes are there, but it appears to be running the old script in game. Is there something more I need to do than just compile the thing?

#2
Dann-J

Dann-J
  • Members
  • 3 161 messages
Are you loading from a saved game? If so, you'll have to start a new game to see the changes.

#3
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages
You should not need to start over. Scripts in the override or campaign folder are used even for saved games. After you compile you should have an updated ncs file. That is the compiled code. The nss file is the source code. You will need to put the ncs file in the override folder or the campaign folder in order for it to be used.



You don't say what script you are modifying, but if it is a spawn script then changing it after you have already started the module might have no effect because by that point the creatures have already been spawned.



Regards

#4
manageri

manageri
  • Members
  • 394 messages
I'm trying to make the touch spell sneak attack script take facing into account, as it currently lets you sneak attack someone from any direction. Of course I'm not sure whether the changes I made towards that end would even work but the reason I assume it's not even using the updated script is that I changed the message that says "sneak attack!" but that's still the same when I try it in game.