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?
Noob question
Débuté par
manageri
, déc. 02 2010 08:12
#1
Posté 02 décembre 2010 - 08:12
#2
Posté 02 décembre 2010 - 11:04
Are you loading from a saved game? If so, you'll have to start a new game to see the changes.
#3
Posté 03 décembre 2010 - 12:54
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
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
Posté 03 décembre 2010 - 04:20
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.





Retour en haut






