NWN Scripting -- C or C++

gregweller

First Post
I've seen the scripting language in NWN described as 'C' and 'C++' does anyone have a definitive answer as to which it is? It seems like C++ to me, although I'm far from an expert. I've also seen some articles posted on NWN boards about how it deviates from C or C++ (at least in code execution) . Any answers?
 

log in or register to remove this ad

gregweller said:
I've seen the scripting language in NWN described as 'C' and 'C++' does anyone have a definitive answer as to which it is? It seems like C++ to me, although I'm far from an expert. I've also seen some articles posted on NWN boards about how it deviates from C or C++ (at least in code execution) . Any answers?

From what I've looked at in the World Builder Guide, it's pretty much C. You have a lot of object variable types, but you aren't really doing OOP type stuff with them. I haven't see any examples, for instance, where you call any properties or functions of any of the objects. Rather, you pass the objects into Bioware functions.

I haven't delved very deeply into the scripting part of NWN yet, so maybe there's more that I'm missing. But it looks like you're not so much programming in C as much as using C as a convenient way to store state variables, make conditional choices, and call various intrinsic functions in the scripting engine. In other words, you don't need to worry about learning C or C++ to really use the engine; just be familiar with the basic syntax enough to use Bioware's version.
 

Remove ads

Top