Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Include Files

Page: 1 of 1
 TimBob12
03-16-2011, 1:47 PM
#1
Hi there,
I have created a new include file but whenever I try to use it just says unable to find include file. I have put the file in the same place as nwnscomp.exe.

Here is my code:


#include "populate"

int main() {

string first = "NPC1";
string second = "NPC2";
string third = "NPC3";

Populate(10, first, second, third);

return 0;
}


Im stuck and can't find anything about this anywhere.

Thanks

TB12
 bead-v
03-16-2011, 2:13 PM
#2
You have to put the include file in the override, then compile the script that uses the include.

Also, you include the file by typing the full name of the file:
#include "populate.nss"
Page: 1 of 1