Aller au contenu

A few questions


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
Guest_JujuSamedi_*

Guest_JujuSamedi_*
  • Guests

Hi all,

 

I am a developer by day and developer by night and I feel like getting my hands dirty in scripting for NWN. The impression I get is that it is close enough to C. My question is that is it like a superset or subset of C?



#2
henesua

henesua
  • Members
  • 3 863 messages

The answer to your question is so obvious that I suspect I do not understand it.

 

My assessment:

  • It certainly is not a subset since most of the language has NWN special functions.
  • Is it a superset? No. Is it like one? More or less I suppose. It can't do everything that C does as far as I am aware so this is not really true, but its C-ish syntax more or less behaves as C does.

More importantly, I don't think the answer to that question really matters. NWScript is not C, but behaves like C. So if you know C or any C-like languages you will be right at home very soon. I am not a developer and have no education in coding, but I figured it out fairly quickly. You should do fine.



#3
Guest_JujuSamedi_*

Guest_JujuSamedi_*
  • Guests

The answer to your question is so obvious that I suspect I do not understand it.

 

My assessment:

  • It certainly is not a subset since most of the language has NWN special functions.
  • Is it a superset? No. Is it like one? More or less I suppose. It can't do everything that C does as far as I am aware so this is not really true, but its C-ish syntax more or less behaves as C does.

More importantly, I don't think the answer to that question really matters. NWScript is not C, but behaves like C. So if you know C or any C-like languages you will be right at home very soon. I am not a developer and have no education in coding, but I figured it out fairly quickly. You should do fine.

Thanks,

 

I asked this question to access the gauge myself in terms of the learnign curve.  I might start writing up a few scripts soon.

 

Thanks you again.



#4
MagicalMaster

MagicalMaster
  • Members
  • 2 000 messages

It's similar to C++ in a number of ways -- very object oriented but as henesua said it's neither a subset or superset.  It's probably more accurate to think of it as a subset with extra functions specific to game related things.

 

You might find this page useful for gauging stuff.



#5
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
It uses C++ syntax. But is compiled to a proprietary language that as far as I know is only used by bioware.

If you already know C++ you will have no problem with the syntax for .NSS (Neverwinter Source Script). the biggest challenge is learning the system that the game/scripts runs under.

#6
Proleric

Proleric
  • Members
  • 2 346 messages
Indeed. The Lexicon (link supplied by MagicalMaster above) illustrates that while the syntax is very simple, the Body of Knowledge (stuff you just have to know) is considerable. The outcome of f(x) may depend on whether x is object class foo or bar, except on Wednesdays... but it's such a fun game, probably unrivalled in terms of community-made components.

#7
Dagesh

Dagesh
  • Members
  • 30 messages

Lightfoot and Proleric have both been around for some time.  Their advice is well worth considering.