GAME CONCEPT AND DESIGN
COSC 320.101_SU09
SUMMER 2009
Getting Help
The commands of the scripting language are usually pretty common language. If you want to find out how many hit points a creature has, you can probably find the command by searching for the keywords "creature" or "hitpoints." In this case "hitpoints" brings up a list of commands that contain the word and there we find....GetCurrentHitPoints( ) .
The Assistance Windows
When working in the scripting window, you will see three distinct panes. The main one (top-left) is where you do your actual typing. To the right is a "search" pane. You can type keywords in the field, and it'll filter down to the commands that contain those keywords.
Select one of those commands and you'll see text appear in the bottom window. This gives you some (limited) idea of what the command does, how to format the command, what arguments it requires, and what it returns (if it returns anything).
Also note that NWN scripting is extremely case-sensitive!
The Lexicon
I mentioned it at the beginning and I'll re-mention it here. The Lexicon is a great help. It also has keyword search and filtering, but it also breaks the commands down into catgories (Visual Effects, String Manipulation, and so on) and gives more data on how to use the commands, what hidden traps exist and how to avoid them, and so forth. I couldn't NWN without the Lexicon. (http://www.nwnlexicon.com/)
The Forums
Set up an account at the Bioware site and search the forums for your answer. For a good, long while, it's probably a safe bet that any question you have has already been answered a dozen times. So search first, and post only if you can't find an answer.
|