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...
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).