<s>
NWScript	B-Operating_System
is	O
the	O
scripting	B-Language
language	I-Language
developed	O
by	O
BioWare	O
for	O
the	O
role-playing	O
video	O
game	O
Neverwinter	B-Application
Nights	I-Application
.	O
</s>
<s>
It	O
is	O
based	O
on	O
the	O
C	B-Language
programming	I-Language
language	I-Language
and	O
is	O
implemented	O
in	O
the	O
Aurora	O
toolset	O
.	O
</s>
<s>
Neverscript	O
,	O
an	O
open	B-License
source	I-License
3rd	O
party	O
editor	O
,	O
has	O
been	O
created	O
for	O
the	O
Mac	B-Operating_System
OS	I-Operating_System
X	I-Operating_System
and	O
Linux	B-Application
versions	O
of	O
Neverwinter	B-Application
Nights	I-Application
because	O
the	O
Aurora	O
toolset	O
has	O
not	O
been	O
ported	O
to	O
those	O
platforms	B-Device
.	O
</s>
<s>
NWScript	B-Operating_System
is	O
also	O
used	O
in	O
the	O
video	O
games	O
The	B-Application
Witcher	I-Application
,	O
Star	B-Application
Wars	I-Application
:	I-Application
Knights	I-Application
of	I-Application
the	I-Application
Old	I-Application
Republic	I-Application
and	O
Star	B-Application
Wars	I-Application
:	I-Application
Knights	I-Application
of	I-Application
the	I-Application
Old	I-Application
Republic	I-Application
II	I-Application
The	I-Application
Sith	I-Application
Lords	I-Application
,	O
which	O
use	O
the	O
Odyssey	O
Engine	O
.	O
</s>
<s>
Neverwinter	B-Application
Nights	I-Application
2	I-Application
,	O
the	O
sequel	B-Language
to	O
the	O
original	O
NWN	B-Application
,	O
features	O
a	O
modified	O
version	O
of	O
this	O
scripting	B-Language
language	I-Language
.	O
</s>
<s>
While	O
based	O
on	O
C	B-Language
,	O
NWScript	B-Operating_System
does	O
not	O
have	O
many	O
functions	O
from	O
the	O
C	B-Language
family	O
,	O
excluding	O
logical	O
and	O
binary	O
/	O
ternary	O
operators	O
and	O
some	O
mathematical	O
functions	O
.	O
</s>
<s>
Function	O
source	O
code	O
is	O
not	O
accessible	O
to	O
the	O
end-user	O
,	O
but	O
the	O
correct	O
syntax	O
is	O
defined	O
in	O
a	O
script	B-Language
file	O
called	O
nwscript.nss	O
.	O
</s>
<s>
The	O
users	O
can	O
create	O
their	O
own	O
functions	O
,	O
and	O
these	O
can	O
be	O
included	O
in	O
other	O
scripts	O
through	O
the	O
#include	B-Language
directive	O
,	O
which	O
works	O
slightly	O
differently	O
than	O
in	O
C++	B-Language
.	O
</s>
<s>
NWScript	B-Operating_System
has	O
no	O
way	O
to	O
directly	O
target	O
the	O
screen	O
for	O
output	O
.	O
</s>
<s>
This	O
script	B-Language
puts	O
a	O
"	O
Hello	O
world	O
"	O
message	O
in	O
the	O
player	O
's	O
message	O
log	O
.	O
</s>
<s>
For	O
it	O
to	O
work	O
,	O
it	O
should	O
be	O
placed	O
in	O
the	O
OnClientEnter	O
event	B-Application
of	O
the	O
module	O
's	O
properties	B-Language
.	O
</s>
<s>
The	O
first	O
line	O
is	O
the	O
void	O
main	O
function	O
which	O
is	O
the	O
function	O
that	O
a	O
NWScript	B-Operating_System
will	O
start	O
at	O
.	O
</s>
<s>
NWScript	B-Operating_System
allows	O
structs	B-Language
,	O
but	O
not	O
objects	B-Language
.	O
</s>
<s>
The	O
following	O
common	O
data	O
types	O
are	O
available	O
in	O
NWScript	B-Operating_System
:	O
</s>
<s>
NWScript	B-Operating_System
has	O
also	O
introduced	O
some	O
data	O
types	O
for	O
purposes	O
of	O
the	O
Neverwinter	B-Application
Nights	I-Application
game	O
:	O
</s>
<s>
object	O
(	O
refers	O
to	O
game	O
objects	B-Language
,	O
such	O
as	O
NPCs	O
and	O
placeable	O
objects	B-Language
)	O
.	O
</s>
<s>
effect	O
(	O
refers	O
to	O
game-mechanics-altering	O
effects	O
on	O
objects	B-Language
;	O
for	O
example	O
effects	O
created	O
by	O
spells	O
,	O
diseases	O
,	O
and	O
displayed	O
visual	O
effects	O
)	O
.	O
</s>
<s>
When	O
saving	O
a	O
script	B-Language
,	O
the	O
Aurora	O
Toolset	O
saves	O
the	O
plain	O
text	O
of	O
the	O
script	B-Language
as	O
a	O
file	O
with	O
a	O
.nss	O
filename	O
extension	O
.	O
</s>
<s>
When	O
compiling	B-Language
the	O
script	B-Language
,	O
a	O
.ncs	O
containing	O
Bytecode	O
to	O
be	O
run	O
on	O
the	O
NWScript	B-Operating_System
Virtual	B-Architecture
Machine	I-Architecture
file	O
is	O
created	O
.	O
</s>
