Aller au contenu

Photo

Noob question re: Advanced Script compiler


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

#1
AharonShaw

AharonShaw
  • Members
  • 11 messages
 Hi! 

I don't script very often, so despite dabbling in it since about a year, I still consider myself very inexperienced. 

I tried to change around the damage values of spells a bit and wanted to compile the results. I put both the .nss file and nwscript.nss in the override folder and then ran the advanced script compiler, using the command 

Code:nwnscriptcompiler.exe *.nss 


This used to work for NWN with nwnnsscomp, IIRC (it's been a while, as I said above). 
However, for NWN2, I got a huge amount of error messages (nwscript.nss(line number): Error: NSC 1045/NSC1046: Identifier "..." is already defined at nwscript.nss/ variable "..." defined multiple times in the same scope (previous definition at...). 

I'm a bit at a loss at what to do, and after searching for considerable time, I decided to ask for help here. 

Thank you in advance!

#2
Lugaid of the Red Stripes

Lugaid of the Red Stripes
  • Members
  • 955 messages
Can you post the code in question? It's probably just a syntax error.

#3
AharonShaw

AharonShaw
  • Members
  • 11 messages
The code of the changed script? I just changed damage values of a few spells to be the same as our PnP-Houserules, for example (Fireball max 20 instead of max 10d6). I didn't change anything else.