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

Variable scope and general script syntax

Discussion in 'Neverwinter Nights (Classic)' started by wanderer013, Jul 18, 2002.

  1. wanderer013 Gems: 1/31
    Latest gem: Turquoise


    Joined:
    Aug 18, 2001
    Messages:
    3
    Likes Received:
    0
    i was just wondering about the general syntax of the scripting language. is it exactly like c in terms of the reserved words used for the conditional and looping statements, etc.

    I was also wondering about how to declare functions and their scope after declaration. are new functions accessible by all scripts or just the script they are declared in. what about variables? are local variables local to the object attached to the script they run off or are they accessible to other functions and scripts? what is the scope of declared variables exactly? is it possible to declare arrays and other constructed data types?

    i wish somebody would come out with a full syntax guide instead of all the bare bones function listings we're getting. something like a programmer's guide for the toolset.

    and please don't tell me to buy the published module creation/scripting guide as i am just an impoverished college student ,and after plunking down 60 or so dollars for the game, i really can't afford the book.

    *sigh* where's peter norton when you need him?
     
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.