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 Possibilies for bars

Discussion in 'Neverwinter Nights (Classic)' started by fade, Dec 12, 2003.

  1. fade Gems: 13/31
    Latest gem: Ziose


    Joined:
    May 4, 2003
    Messages:
    544
    Likes Received:
    0
    How would you go about scripting a bartender?

    I would like to choose a drink through dialogue, meaning once I select what I want in the conversation, I would be given the drink, I would use it, and a certain amount of gold would be taken from me.

    Also is there any way to examine the NWN campains in the toolset?

    Thanks in advance.
     
  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
    This has been done several times on NWVault. Check for some bartender scripts there.
     
  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
    Well, you need to tell us what you are able to do. For example, do you have any programming skills?

    If not, then the best bet is to do as Tal says and get one of the ones already done by the community.

    I'll assume you know how to use the converstion and script editors. The script commands that you'll need are: GetPCSpeaker, GetGold, TakeGoldFromCreature, and CreateItemOnObject.


    Assuming you're using standard drink items (ones already created for you), first you need to create a script that gets the object for the PC speaking to the bartender (GetPCSpeaker), checks how much gold he's got (GetGold), takes the price of the drink (TakeGoldFromCreature), and then creates the drink item on the PC (CreateItemOnObject).

    Then, on the conversation line where you select the drink you want, select the script name of the script you created above from the pulldown on the "Actions Taken" tab.

    Simple as that.
     
  4. fade Gems: 13/31
    Latest gem: Ziose


    Joined:
    May 4, 2003
    Messages:
    544
    Likes Received:
    0
    I know all that, but what is the command to actually forces the PC to drink it, but without ending the conversation. I want all of it to take place during the conversation.

    What I have tried as always ended the conversation, while the PC drinks the drink.
     
  5. Alavin

    Alavin If I wanted your view, I'd read your entrails Veteran

    Joined:
    Aug 26, 2003
    Messages:
    930
    Likes Received:
    0
    You could, rather than actually create the drink, simulate its effects. Under "other actions" in the dialogue editor, set the PC to do the drinking animation, and set a temporary effect that reduces the PC's int (or wis? I forget) by one.
     
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.