This is a complementary tutorial PDF to my XML Coding For Beginners PDF. This tutorial, however, attempts to cover basic information that aims to help the reader become familar with the terms when writing scripts for NWN2. (It may also be helpful to those who want to know about writing scripts for NWN1 too.)
It starts by explaining things like event hooks for various objects and how we attach our scripts to these to allow us to have our scripts work in the game. From there, it tries to explain some of the various coding terms we may need to know and use, like "variables", "operators" and "parameters", as well as the "functions" themselves.
Then I try to break down and explain an example On Acquire script before trying to take the reader through a step-by-step writing of a script.
NOTE: It is written for beginners, and so does not cover scripting to any depth, but I hope leaves the reader in a better position to begin looking at writing their own scripts and with a knowledge of how to ask for help about the various aspects when writing a script. The most complicated section is to do with trying to explain a "loop".
If the project takes off with a large interest, then maybe I can look at expanding on what I have written here in a future update. For now, it is what it is!
v1.02 Added Area & Timing Information.
v1.01 Fixed logic on page 13.
v1.00 Original Release.
Attachment | Size |
---|---|
NWN2 Scripting For Beginners v1.02 (LB) (643) | 2.54 MB |
Thanks for the tutorial!