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

How to script an NPC into a game - part II

Discussion in 'BG2: Shadows of Amn (Classic)' started by Grenouillebleue, Sep 30, 2003.

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


    Joined:
    Sep 2, 2003
    Messages:
    14
    Likes Received:
    0
    [​IMG] I still have loads of problems with coding my NPC into the game.

    She actually made it into the game (through Creature Editor). She's there, all right, and the .cre file seems to be okay since I can kill her and get the equipment I gave her. So that's something that works.

    However, what doesn't work are her script and dialog. I don't know what I did wrong, but whenever I try to click on her, I get the answer "charname" - has nothing to say to you, which is quite odd.

    I made a .d file for her and turned it into a .dlg using WeiDU, BUT I didn't give her any script. I guess that's the problem, but I don't know what to do, and most importantly how to do it.

    I suppose I should make a script that tells her that, whenever someone clicks on her, a dialog issues, or something like this. Am I right ?
     
  2. 8people

    8people 8 is just another way of looking at infinite ★ SPS Account Holder Adored Veteran

    Joined:
    Apr 20, 2002
    Messages:
    7,141
    Media:
    74
    Likes Received:
    133
    Gender:
    Female
    [​IMG] you need a script to say how she fights, quests related, reactions to things like reputation and do on. Dialogues you should be able to attatch fairly easily.

    as to the dialogue - my question is that dialog.tlk isn't updated and that the dialogue files are called the wrong name.
     
  3. Grenouillebleue Gems: 1/31
    Latest gem: Turquoise


    Joined:
    Sep 2, 2003
    Messages:
    14
    Likes Received:
    0
    Could you perhaps point me to a tutorial that explains things quite simply (as: so that a moron can me could understand) ?

    I tried most tutorials around, but they all assume that you have at least basic knowledge in scripting, and stuff like this.

    For instance, someone told me I should put a death variable on my char. huh ?
     
  4. 8people

    8people 8 is just another way of looking at infinite ★ SPS Account Holder Adored Veteran

    Joined:
    Apr 20, 2002
    Messages:
    7,141
    Media:
    74
    Likes Received:
    133
    Gender:
    Female
    [​IMG] heh, I don't usually use many tutorials, I look at a few on the internet and then play around with a couple of things to see what works and what doesn't.

    I suppose looking on the Forgotten Realms forum and the TeamBG website will guide you to a few tutorials that will be of some help.

    I don't know much, but I know enough to get a basic NPC working, so I don't really know about the death variable thing, I'll have a look about that - your friend might mean when you make dialogues with other party members.
     
  5. Rastor Gems: 30/31
    Latest gem: King's Tears


    Joined:
    Jul 8, 2002
    Messages:
    3,533
    Likes Received:
    0
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.