PDA

View Full Version : Im new and I have a question about scripting


Jene<3
08-13-2005, 03:26 AM
Hi everyone,

My name is Jene! First of all, I would like to say that I think this community is just great, all these people coming together and going against the grain to make great mods.

My question is, and forgives me if this has been asked or anything. But I need some help with scripting.

I took a firm look around the Scripting section and I feel there is a bit more I could learn. Is there a website I can go to that has all the basic functions and has some good learning type things for basic NWN scripting? Im not asking for a straight out tutorial, I know that kind of thing would take pages to make but I need to know if there is a place that lists functions for NWN scripting, as I hear that it is the same as KOTOR scripting, or at least similar.

Anyways glad to finally be here.

PS. I'm not the ONLY girl here am I?

stoffe
08-13-2005, 05:16 AM
I took a firm look around the Scripting section and I feel there is a bit more I could learn. Is there a website I can go to that has all the basic functions and has some good learning type things for basic NWN scripting? Im not asking for a straight out tutorial, I know that kind of thing would take pages to make but I need to know if there is a place that lists functions for NWN scripting, as I hear that it is the same as KOTOR scripting, or at least similar.


Check the nwscript.nss file in Scripts.bif. This is the constant and function definition file, all the core functions of the scripting language are listed there, and most of them have some kind of description added in the comments above it.

This should give you a fairly good idea of what you have to work with, and what the scripting language can and cannot do.

As for NWN scripting, this (http://www.nwnlexicon.com/) is one of the best online references which contains detailed descriptions and examples of most of the functions in NWN's nwscript language.

If you use that, keep in mind though that while the scripting language in NWN and KotOR is similar, the KotOR version forked off from the NWN foundation fairly early in NWN (prior to v1.28 I believe) and went off in its own direction. Generally speaking, the KotOR version of NWScript is a lot more limited in what you can do than the NWN version.

NWN was made to be modded by other people and is as such fairly flexible, while KotOR was made for one specific game scenario and has done away with much of that flexibility in favor of lower memory usage and efficiency (probably to squeeze the game onto the X-box, but that's just my guess).

While you can't blindly follow the NWNLexicon when making scripts for KotOR, it's still a useful resource for the parts that still are the same.

Doc Valentine
08-13-2005, 12:08 PM
Thanks. I can use this info too.

Hey welcome to the forums.