1. SPS Accounts:
    Do you find yourself coming back time after time? Do you appreciate the ongoing hard work to keep this community focused and successful in its mission? Please consider supporting us by upgrading to an SPS Account. Besides the warm and fuzzy feeling that comes from supporting a good cause, you'll also get a significant number of ever-expanding perks and benefits on the site and the forums. Click here to find out more.
    Dismiss Notice
Dismiss Notice
You are currently viewing Boards o' Magick as a guest, but you can register an account here. Registration is fast, easy and free. Once registered you will have access to search the forums, create and respond to threads, PM other members, upload screenshots and access many other features unavailable to guests.

BoM cultivates a friendly and welcoming atmosphere. We have been aiming for quality over quantity with our forums from their inception, and believe that this distinction is truly tangible and valued by our members. We'd love to have you join us today!

(If you have any problems with the registration process or your account login, please contact us. If you've forgotten your username or password, click here.)

Scripting made easy?

Discussion in 'Neverwinter Nights (Classic)' started by DragonRider SkyWard, Oct 29, 2002.

  1. DragonRider SkyWard Gems: 16/31
    Latest gem: Shandon


    Joined:
    Sep 22, 2001
    Messages:
    830
    Likes Received:
    0
    Does any one know of a web page that talks about scripting in a way that you can understand? Like really simple ways to put scripts together. Any ideas or anything.
     
  2. Taluntain

    Taluntain Resident Alpha and Omega Staff Member ★ SPS Account Holder Resourceful Adored Veteran Pillars of Eternity SP Immortalizer (for helping immortalize Sorcerer's Place in the game!) New Server Contributor [2012] (for helping Sorcerer's Place lease a new, more powerful server!) Torment: Tides of Numenera SP Immortalizer (for helping immortalize Sorcerer's Place in the game!) BoM XenForo Migration Contributor [2015] (for helping support the migration to new forum software!)

    Joined:
    Jun 11, 2000
    Messages:
    23,653
    Media:
    494
    Likes Received:
    570
    Gender:
    Male
    Last edited: Dec 31, 2017
  3. Blackthorne TA

    Blackthorne TA Master in his Own Mind Staff Member ★ SPS Account Holder Adored Veteran Pillars of Eternity SP Immortalizer (for helping immortalize Sorcerer's Place in the game!) New Server Contributor [2012] (for helping Sorcerer's Place lease a new, more powerful server!) Torment: Tides of Numenera SP Immortalizer (for helping immortalize Sorcerer's Place in the game!)

    Joined:
    Oct 19, 2000
    Messages:
    10,416
    Media:
    40
    Likes Received:
    232
    Gender:
    Male
    If you know the C programming language, you should have no problem understanding the NWN scripts, and you can just look at various examples to understand the quirks of NWN.

    If you don't, I would suggest learning it (there are hundreds of books on C) if you want to do anything complicated with scripts.
     
  4. Thorin Gems: 9/31
    Latest gem: Iol


    Joined:
    Jan 3, 2002
    Messages:
    303
    Likes Received:
    0
    Actually NWN scripting is draws alot from Java programming and the concepts of object orient programming style. I recommend the nwn lexicon found at HERE
     
  5. DragonRider SkyWard Gems: 16/31
    Latest gem: Shandon


    Joined:
    Sep 22, 2001
    Messages:
    830
    Likes Received:
    0
    Thankyou all.
     
  6. Blackthorne TA

    Blackthorne TA Master in his Own Mind Staff Member ★ SPS Account Holder Adored Veteran Pillars of Eternity SP Immortalizer (for helping immortalize Sorcerer's Place in the game!) New Server Contributor [2012] (for helping Sorcerer's Place lease a new, more powerful server!) Torment: Tides of Numenera SP Immortalizer (for helping immortalize Sorcerer's Place in the game!)

    Joined:
    Oct 19, 2000
    Messages:
    10,416
    Media:
    40
    Likes Received:
    232
    Gender:
    Male
    [​IMG] To say that NWN script even remotely uses the concepts of object oriented programming is a stretch. About the only thing it has is a data type called object which is more like a struct than anything else object oriented.

    [ October 30, 2002, 04:17: Message edited by: Blackthorne TA ]
     
  7. Thorin Gems: 9/31
    Latest gem: Iol


    Joined:
    Jan 3, 2002
    Messages:
    303
    Likes Received:
    0
    BT why is NWN not object oriented design? The whole toolest reeks of it, everything from the classes, the object style of scripting. Please tell me why it is structured designed language.

    Ohh and don't tell me because it cannot creat a gui like vb, vb is an structred design language that promotes the use of event driven commands.
     
  8. Blackthorne TA

    Blackthorne TA Master in his Own Mind Staff Member ★ SPS Account Holder Adored Veteran Pillars of Eternity SP Immortalizer (for helping immortalize Sorcerer's Place in the game!) New Server Contributor [2012] (for helping Sorcerer's Place lease a new, more powerful server!) Torment: Tides of Numenera SP Immortalizer (for helping immortalize Sorcerer's Place in the game!)

    Joined:
    Oct 19, 2000
    Messages:
    10,416
    Media:
    40
    Likes Received:
    232
    Gender:
    Male
    The NWN toolset is in a way object oriented. The objects have scripts associated with them at least, and the objects are associated with handles.

    The NWN scripting language is not. The language is very structured. You have data types and you have separated functions that act upon them. There are no classes in the scripting language. There is no way to associate the methods with the objects other than through the toolset.

    [ October 30, 2002, 06:14: Message edited by: Blackthorne TA ]
     
  9. Thorin Gems: 9/31
    Latest gem: Iol


    Joined:
    Jan 3, 2002
    Messages:
    303
    Likes Received:
    0
    I can understnad your point BT but it has some traits of object programming

    now when i look at the scripter i see the skeleton oultines of object programming

    1. we have a away to find every object in the scripter from the game by asking for its name

    2. we can change things it knows ie, state, attributes, and contents

    3. we tell it to do methods ie, actionforcemove
    actiongiveitem

    4. they have problems still variables and strings
    are not objects

    i see that they have taken some of the concepts of object programming and melded it with structured design to create a beast that does not know what it is.

    Maybe I am just looking at the whole package and you are looking at just the scripter
     
Sorcerer's Place is a project run entirely by fans and for fans. Maintaining Sorcerer's Place and a stable environment for all our hosted sites requires a substantial amount of our time and funds on a regular basis, so please consider supporting us to keep the site up & running smoothly. Thank you!

Sorcerers.net is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on amazon.com, amazon.ca and amazon.co.uk. Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.