Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN MOVIES

- Jump to comments -
Title  Lesson 04 - Functions
Author  Maximus
Submitted / Updated  07-29-2003 / 05-12-2005
Category  Scripting Lessons - Basic
Movie Format  Viewlets
Description

Functions

Goals : Learn what functions are and how to create your own
Keywords: functions, declare, parameters, calling
Links :

Files

NameTypeSizeDownloads
scripting4.zipscripting4.zip
Submitted: 07-29-2003 / Last Updated: 05-12-2005
zip5.7Mb3193
--
ClickToView.htmlClickToView.html
Submitted: 07-29-2003 / Last Updated: 05-12-2005
html1.11Kb11281
--
SCORE OUT OF 10
9.25
2 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS





You Must Be Logged In to Participate.
Comments (5):

Posted by Indira Lightfoot at 2008-02-12 00:58:22    Voted 9.50 on 02/12/08
For someone like me, who recently started using the NWN2 toolset, and who therefore never have dabbled in C++ or any NWN1-scripting before, this was pure gold! :)

The examples are explained so slowly and visually that even I can get them thru to the thinking part of my brain without any major circuit burnout. So a big, big thanks for this tutorial!
_________________________
From someone who is starting to feel like an Ent among saplings when playing computer-based D&D games...

Posted by sketchofme at 2005-05-18 22:41:53    
donald, I don't know if someone responded to you already, but...

if what you typed is what you were running in your script, then you have a typo.

The function is not InToString it's IntToString, as in Integer to String.

Hope that helped?
_________________________
soundless tones of dreamer�s tongue
in shadow�s filtered sight
thrash and writhe at shadow�s feet
for dreamer�s base delight

Posted by donald ( 142.162.xxx.xxx ) at 2004-08-29 20:17:00    
theres is a part in the tutorial where it makes a script I have been making it on my own throught following the tutorial, it goes

string sFull_Sentence = "There Are" + InToString(nNumber_Dogs) and under there are is + "dogs in " + sTown" and this part of the script is causing errors for me plz e-mail me with what is going on if it helps I have both xpns and the first version of the CEP without the fix


Plz plz help

Posted by Mordred ( 213.119.xxx.xxx ) at 2004-08-15 03:36:00    
Just a note: In this tutorial the author mentions you have to place all your user defined functions ABOVE the main function or the script won't compile. This is not true. If you define your function before main, but put the function body below main() then it will work, like this:

int test();

void main()
{
int nTest = test();
}

int test()
{
return (4+2); // just do whatever
}

Cause the function was defined before main we can put the actual code below main, this is just C..

Also, the general notation for string variables is that they are prefixed with "sz" not "s" (Hungarian notation).

Posted by Old_Scores_Transfered at 2004-02-20 10:32:35    Voted 9.00 on 02/20/04
This is a compilation of the old system into a single score. There were 8 that made this score of 8.87 then rounded to 9.

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Prefab Blueprints


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters