NWN2 Scripting.




Simulation Training.

Introduction
Home
First Program
Seeing Results
Variables and Data Types
Comments
Functions
Data Conversion
Random Numbers
Concatenation
Arithmetic Operators
Compound Assignments
One More or Less
Precedence
Relational Operators
The Open Branch
The Closed Branch
Logical AND
Logical OR
Compound Statements
ELSE If
Switch Case
The ? Operator
The for Loop
The while Loop
The do while Loop
Introduction to Functions
Passing Values
Passing Multiple Values
Multiple Functions
Simplifying Functions
TRUE/fALSE Conditions
Return Values
Setting Global Variables
Getting Global Variables
Setting Local Variables
Getting Local Variables
WayPoints Introduction
Static Waypoint Sets
Dynamic Waypoint Sets
Dynamic WP Cycles
Input Output

Introduction to NWN2 Scripting

NWN2 Scripting uses a language close to C, complete with compiler. This is one of the most powerful and popular programming languages available.

It is the language used in the NWN2 (NeverWinter Nights 2) editor. It can be used to control the games environments, events, characters, and almost every aspect of gameplay. It is a great learning tool for those just learning their first programming language.


What You Need

Before you continue you need to have the following:

NeverWinter Nights 2

The boxed game comes complete with the NWN2 Editor. This is the editor that uses the NWN2 scripting.


What is NWN2 Scripting?

NWN2 Scripting is actually close to the C language.

NWN2 Scripting is a compiled language, meaning it will run very fast.

NWN2 Scripting is programmed using the NWN2 editor.

NWN2 Scripting uses a C compiler that comes with the NWN2 editor. • NWN2 Scripting can be used to control almost every aspect of the NWN2 game environment.

NWN2 Scripting with the NeverWinter Nights game environment offers an interesting and exciting way of learning a powerful and popular programming language.

NWN2 Scripting use of a standard programming language allows the user to move on to other applications using this language in other environments.

Nwn2Scripting provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 2008 by Adamson House, Ltd. All Rights Reserved.

Questions or Comments: EMail Webmaster

Donations are to Adamson House, Ltd who maintains this site.
All donations go the the improvement of this site.