Author Topic: A few questions  (Read 772 times)

Legacy_Guest_JujuSamedi_*

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
A few questions
« on: March 20, 2014, 03:06:01 pm »


               

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?



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
A few questions
« Reply #1 on: March 20, 2014, 04:37:12 pm »


               

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.



               
               

               
            

Legacy_Guest_JujuSamedi_*

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
A few questions
« Reply #2 on: March 20, 2014, 05:25:14 pm »


               


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.


               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
A few questions
« Reply #3 on: March 20, 2014, 07:51:16 pm »


               

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.



               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
A few questions
« Reply #4 on: March 20, 2014, 10:32:03 pm »


               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.
               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
A few questions
« Reply #5 on: March 20, 2014, 11:41:26 pm »


               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.
               
               

               
            

Legacy_Dagesh

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +0/-0
A few questions
« Reply #6 on: March 21, 2014, 12:58:19 am »


               

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