Talk:NWScript

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Program[edit]

I was thinking that perhaps this program should be added to the links: Lilac Soul's Script Generator. However, since I am myself the creator of it, I don't want to risk being accused of self-promotion by adding it myself. What do others think? Lilac Soul 13:23, 23 April 2007 (UTC)[reply]

Given its popularity in relevant circles, it certainly deserves a mention, so I've put it in. Feel free to edit the link description to something more suitable, if you think the present one does not adequately describe what your program does. -- int19h 17:01, 23 April 2007 (UTC)[reply]

Scripting Language Infobox[edit]

Could people please help to fill this in so we can migrate it to the script page.

NWscript
Designed byBioware
DeveloperBioware
First appearedJune 18, 2002
Stable release
1.66 / August 4, 2005
OSWindows
LicenseBioware EULA
WebsiteBioware Developers Portal
Influenced by
C, Java

Enigmatical 23:06, 25 April 2006 (UTC)[reply]

Hello World Example[edit]

The exampe given currently as the "simplest" hello world script is actually a bit misleading and not the simplest way. A much simpler way both descriptively and codewise would be as follows:

void main()
{

object oPlayer = GetEnteringObject();

SendMessageToPC(oPlayer, "hello world");

}


This will display the text directly in the targetted players message\action log (In this case the player entering the trigger or area the script was attached to), which is as close as NWN comes to printing a message onto the screen itself.

The existing example is not only longer but it is entering the text as part of the players action queue, which would potentially interuppt the player's behaviour, be cancelled by the player or cause other issues, thus if the scripter wanted to display a message to the player this would be the least desirable method.

Other methods could include:

SpeakString() - Much as per existing example but it overrides the action queue preventing mistakes
FloatingTextOnCreature() - Causes larger letters to float about the target creatures head for a few seconds.

--86.152.0.199 (talk) 14:18, 11 June 2008 (UTC) Ryuujin[reply]

You're right, I'll go edit it straight away. -Lilac Soul (talk contribs count) 16:23, 11 June 2008 (UTC)[reply]

Some suggestions[edit]

(sorry for my bad english)

Datatypes: There are booleans - you just need to create an int and assign him TRUE or FALSE.

NWScript is also used in: The witcher bases on the neverwinter nights 1 engine, therefore the nwscript language is used in the witcher too! —Preceding unsigned comment added by 92.74.183.94 (talk) 10:20, 14 March 2009 (UTC)[reply]

Booleans are not a datatype in NWScript. TRUE and FALSE are int constants. NWScript implicitly converts ints to booleans, with > 0 == TRUE and <= 0 == FALSE. The part of the page that says booleans are datatypes should be removed. 68.94.212.87 (talk) 05:47, 24 August 2009 (UTC)[reply]