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

Stuck with creating a new NPC - tutorial's a bit complicated

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

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


    Joined:
    Sep 2, 2003
    Messages:
    14
    Likes Received:
    0
    [​IMG] I have created a .d file for my character with joining dialogs and all that stuff. Using WeiDU, I just turned it into a .dlg file.

    Now I have a .cre file and a .dlg file. What are the next steps ? I'd like to test my "mod" out and see if it works on my computer, but I can't understand how to do it. Please, bear in mind that I never coded before, and what might seem easy to you could provide very difficult for me. Tutorials, for instance, usually seem to take for granted that you'll know what to do from now on. Well, I don't ;)

    Could someone explain me, really nice and slow, as to a half-witted 5 year old, what I should do with these files and how I could put them into my game (for instance, how I could make this NPC appear in Irenicus Dungeon, next to the cages, so I can talk to him quick and see if it works)

    Thanks a lot for your help
     
  2. Rastor Gems: 30/31
    Latest gem: King's Tears


    Joined:
    Jul 8, 2002
    Messages:
    3,533
    Likes Received:
    0
    Well, you'd have to append the script for the Irenicus dungeon, level 1 (Sorry, I'm too lazy to look up the name of it.)

    Make a file *.baf that contains:
    IF
    Global("MyNPCExists","ARXXXX",0)
    THEN
    RESPONSE #100
    SetGlobal("MyNPCExists","ARXXXX",1)
    CreateCreature("MyNPC",[x.y],z)
    END

    Then, in your TP2

    EXTEND_TOP ~ARXXXX~ ~Path/*.baf~
     
  3. Grenouillebleue Gems: 1/31
    Latest gem: Turquoise


    Joined:
    Sep 2, 2003
    Messages:
    14
    Likes Received:
    0
    I managed to create my NPC using Map Editor. I gave it the .dlg I made for her, and the .cre file as well.

    However, now I seem to encounter some kind of weird problem: my NPC is actually there when I load the game, but I cannot talk to her. It says "Frog - has nothing to say to you".

    Weird enough, Frog's the name of *my* character, *not* the NPC's.

    [ September 30, 2003, 00:39: Message edited by: Grenouillebleue ]
     
  4. Mystra's Chosen Gems: 22/31
    Latest gem: Sphene


    Joined:
    Sep 28, 2002
    Messages:
    1,451
    Likes Received:
    0
    I had that same problem, but couldn't figure out how to make it work. I ended up giving up. The problem is that the NPC doesn't have anything to say, because you probably didn't tell it to say anything. Or did you?
     
  5. Grenouillebleue Gems: 1/31
    Latest gem: Turquoise


    Joined:
    Sep 2, 2003
    Messages:
    14
    Likes Received:
    0
    Well, I don't really know.

    I did write a .d file, then weidu-ed it into a *.dlg file.

    I put this .dlg file into the .cre file (where it says: dialog) and also on the Map Editor when adding a creature.

    It's really frustrating :o
     
  6. 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] have you put the right variables/globals as conditions?
     
  7. Rastor Gems: 30/31
    Latest gem: King's Tears


    Joined:
    Jul 8, 2002
    Messages:
    3,533
    Likes Received:
    0
    I already see the problem.

    Don't WeiDU the dlg first. You should put the dlg filename into the .cre file, but don't compile the .d.

    If you desperately want to do it your way instead of the better, .tp2 way, then weidu your .d using the --tlkout argument. The way you did it, you created a compiled dialogue file that links to nonexistant lines in the dialog.tlk file, which is why it doesn't work.
     
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.