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

Help with Merchants and Doors

Discussion in 'Neverwinter Nights (Classic)' started by Faerus Stoneslammer, Apr 6, 2003.

  1. Faerus Stoneslammer Gems: 16/31
    Latest gem: Shandon


    Joined:
    Apr 10, 2002
    Messages:
    852
    Likes Received:
    0
    Can anyone explain to me, in laymen's terms, how to link an NPC to a store and let me (ie the PC) access the store through dialog?

    Secondly, I created an inn in a village and I can enter the inn by opening a door and walking in. However, on the inside I created an exit but it's not visible (ie there's no door or doorway) can anyone please help?

    ANY help would be greatly appreciated, thanks!
     
  2. 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
    Basically, the link is through scripting. You can take actions (attach a script) to any dialog line via the "Actions Taken" tab in the conversation editor. So, you have a dialog from the NPC saying something like "Would you like to see my wares?" and then on the "Yes" reply of the PC, you attach a script that has the "OpenStore" function in it like so:
    Code:
    void main()
    {
       OpenStore(GetNearestObjectByTag("tag_name_for_your_store"), GetPCSpeaker());
    }
    Oh, and in case you didn't know, you have to paint the store somewhere in your module (just like you painted the NPC). Typically you do so close to the NPC who "owns" the store.

    [ April 08, 2003, 03:04: Message edited by: Blackthorne TA ]
     
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.