Talk:NWScript

view

Talk:NWScript

Program

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

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

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

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

Some suggestions

(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

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.