The fifth installment of Neverwinter Vault's scripting lesson is online now. It deals with functions:
A function acts like a small program that is run when called. It performs work, and possibly returns a value, saving you typing out a lot of extra code.
Like in NWN, the King gives you a quest, and you return the result, a Longsword of Gnome smashing +9. So instead of the King going and doing it himself, he gives the task to you to perform.
Or maybe like in your school, where the teacher gives you work and your return the results to her. In that example, you would be the function.
Got it? *g* |