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.

How do I get started scripting

Page: 1 of 1
 shosey
04-07-2004, 12:18 AM
#1
Ok, I know several programming languages so this shouldn't be that hard for me. Now, how do I get started. Is there source code that you extract with kotor? Or, do you have to decompile it somehow.

any help would be appreciated in getting me started :)

thanks in advance.
 Darth333
04-07-2004, 12:34 AM
#2
I'm probably not the best person to answer this but you will find useful stuff in the nwscript.nss file.
 thegoryone
04-07-2004, 1:19 AM
#3
I haven't really looked into it but it looks like C++ to me. Which is no use at all as when it comes to OO languages I only know Java and PHP (yes its OO people, its not just for dodgy web apps).
 tk102
04-07-2004, 1:49 AM
#4
If you learn well by example, take a look at scripts.bif -- it contains a good collection of script sources used by the game, including nwscript.nss which is the function decalaration script for swkotor.exe. For external resources, take a look at T7's sticky post -- he has a link to NWN Scripting Forum which contains numerous tutorials. Also of note is NWN Lexicon (http://www.nwnlexicon.com) which a user's reference for scripting NWN. Not all the functions available to NWN are available to KotOR and vice versa, but it does give some extra commentary and information on data types that nwscript.nss doesn't provide.
 shosey
04-07-2004, 10:49 PM
#5
what do I use to compile?? Will gcc work fine?
 tk102
04-08-2004, 4:21 AM
#6
You'll need to download HazardX's Script Compiler (nwnnsscomp.exe). It's command line. The link for it is available on Kitty Kitty's sticky thread.

Btw, scripting is a lot of fun and is where almost all the power of the game is. Have fun and post screenshots (http://www.lucasforums.com/showthread.php?s=&threadid=126014).
Page: 1 of 1