Please note that new user registrations disabled at this time.

What do I need to know/have to make an NPC?

This forum is to be used for all discussions pertaining to BioWare's Baldur's Gate II: Shadows of Amn.
Post Reply
User avatar
Bad Karma
Posts: 121
Joined: Mon Jun 24, 2002 6:48 pm
Location: I dunno
Contact:

What do I need to know/have to make an NPC?

Post by Bad Karma »

I've heard about (but not tried) custom NPC's, and I was wondering how I would go about making one and what I would need to do so. I'm not too knowledgable about the BG2 editing 'scene' so any help would be appreciated.
"Have no hard feelings toward anyone who has not shown you enmity, do not fight with anyone who does not oppose you." - Zhuge Liang, Chinese strategist

-The world is yours-

"I disapprove of what you say, but I will defend to the death your right to say it." - Voltaire
User avatar
Sabre
Posts: 1658
Joined: Sun Apr 29, 2001 10:00 pm
Location: Melbourne, Australia
Contact:

Post by Sabre »

Go to TeamBG, they have tools and tutorials that will help.
User avatar
kopywrite
Posts: 945
Joined: Mon Mar 12, 2001 11:00 pm
Location: West London, UK
Contact:

Post by kopywrite »

Or you could try WeiDU.
User avatar
Bad Karma
Posts: 121
Joined: Mon Jun 24, 2002 6:48 pm
Location: I dunno
Contact:

Post by Bad Karma »

Thanks, I'll try 'em out and see what my severely limited intellect can accomplish.
"Have no hard feelings toward anyone who has not shown you enmity, do not fight with anyone who does not oppose you." - Zhuge Liang, Chinese strategist

-The world is yours-

"I disapprove of what you say, but I will defend to the death your right to say it." - Voltaire
User avatar
jcompton
Posts: 427
Joined: Tue Apr 16, 2002 4:59 pm
Contact:

Post by jcompton »

WeiDU is the tool/system to use for new NPCs--that's why all of the major new NPC projects use it.

Here's a basic tutorial on using WeiDU to create a new NPC.

http://forums.forgottenwars.net/index.p ... readid=678

You will also want to acquire these tools to help you explore in-game dialogue and scripts:

Infinity Explorer (http://infexp.sourceforge.net)

Near Infinity (http://www.idi.ntnu.no/~joh/ni/)
"t's a testament to the determined RPG fraternity that a number of Baldur's Gate II mods have been successfully produced. The best can be found at pocketplane.net." - PC Gamer UK
User avatar
Aqua-chan
Posts: 4607
Joined: Sat Apr 13, 2002 9:17 am
Location: Right Off Elsewhere
Contact:

Post by Aqua-chan »

@ jcompton -

Since I went to try this stuff out, I've learned that it is really challenging and difficult. However, I'm going to try it anyways. :D

I've read some of your earlier posts on the Forgotten Wars boards, and I think I have the dialogue files almost right. However, I do need some help here.

I'm asking your permission to e-mail you for some slight tips on a certain file I just CAN NOT figure out. If you don't want me bugging you about it at your e-mail address, then I'll just find another sourse. However, I think that you, with a lot of experience with this by creating Kelsey, may be my best bet.

Sorry, Fable. If you don't like this post, I'll delete it lata. ;) :rolleyes: :D

PS~ WeiDU is not as easy as people make it out to be!
"There are worse things in the world than serving the whims of a deadly sex goddess." - Zevran
User avatar
Bad Karma
Posts: 121
Joined: Mon Jun 24, 2002 6:48 pm
Location: I dunno
Contact:

Post by Bad Karma »

Please dont' tell me all this junk requires even the most basic of programming knowledge (which I don't have). Is it really really tough, or would it be comparable to, say, modding weapons for Rogue Spear (which I've done with moderate success). I'm just an ambitious kid who wants to make an NPC, but if I need to know programming I should just give up :(
"Have no hard feelings toward anyone who has not shown you enmity, do not fight with anyone who does not oppose you." - Zhuge Liang, Chinese strategist

-The world is yours-

"I disapprove of what you say, but I will defend to the death your right to say it." - Voltaire
User avatar
Aqua-chan
Posts: 4607
Joined: Sat Apr 13, 2002 9:17 am
Location: Right Off Elsewhere
Contact:

Post by Aqua-chan »

Karma, I've tried editing and working on other MODs before. This is the first time I'm ever going to try to make one up from scratch, but I can easily tell you it's gonna take a lot of typeing to get where you want to go.

Look. This is the BEGINNING of my "Welcome, hello, can I join the party?" conversation. I'm creating another Druid who is half-sane and isn't a freak about Manaining the Balance, and you'll meet up with her just ouside the Druid Grove. She'll explain a little of the situation, but look how long it is...

I'm not even halfway done yet and still don't know what I'm doing. If somebody whose made an NPC would check over this and help me figure out what I'm doing wrong, then I may have a chance.
"There are worse things in the world than serving the whims of a deadly sex goddess." - Zevran
User avatar
Rattman
Posts: 230
Joined: Tue Apr 23, 2002 12:22 pm
Location: The Kingdome of Rothes
Contact:

Post by Rattman »

you also need imaginagtion, time and the ability to make people interisted in your mod :)

and you may want to ask what people would like to seen in your mod
Ancient times they had no statistics so they had to fall back on lies

"I'm invinceable"
"your a loony"

I'd rather be rich than stupid.

If trees could scream, would we be so cavalier about cutting them down? We might, if they screamed all the time, for no good reason.
User avatar
Bad Karma
Posts: 121
Joined: Mon Jun 24, 2002 6:48 pm
Location: I dunno
Contact:

Post by Bad Karma »

I can handle the typing, and I like to think I have at least an excuse for an imagination, but do I have to know programming languages?
"Have no hard feelings toward anyone who has not shown you enmity, do not fight with anyone who does not oppose you." - Zhuge Liang, Chinese strategist

-The world is yours-

"I disapprove of what you say, but I will defend to the death your right to say it." - Voltaire
User avatar
Bad Karma
Posts: 121
Joined: Mon Jun 24, 2002 6:48 pm
Location: I dunno
Contact:

Post by Bad Karma »

Originally posted by Rattman
and you may want to ask what people would like to seen in your mod
Cruel as it may sound, I'm not interested in making an NPC that other people will enjoy playing (just yet). I want to learn how to do it first, and if I'm able, THEN I'll ask around. At this time, I'm just testing the water.
"Have no hard feelings toward anyone who has not shown you enmity, do not fight with anyone who does not oppose you." - Zhuge Liang, Chinese strategist

-The world is yours-

"I disapprove of what you say, but I will defend to the death your right to say it." - Voltaire
User avatar
jcompton
Posts: 427
Joined: Tue Apr 16, 2002 4:59 pm
Contact:

Post by jcompton »

Originally posted by Aqua-chan
If you don't want me bugging you about it at your e-mail address, then I'll just find another sourse. However, I think that you, with a lot of experience with this by creating Kelsey, may be my best bet.
Go ahead and e-mail me, although I also see that you're on the FW boards now so you might consider posting your problems there, where more than one person can help.

jcompton@xnet.com.
PS~ WeiDU is not as easy as people make it out to be!
I rather think it's not as hard as people make it out to be.

Yes, you must understand the game's .DLG format, but that's a requirement for ANY dialogue tool.

And yes, it helps if you understand the concept of a compiled programming language. But that's valuable to understand anyway.
"t's a testament to the determined RPG fraternity that a number of Baldur's Gate II mods have been successfully produced. The best can be found at pocketplane.net." - PC Gamer UK
User avatar
jcompton
Posts: 427
Joined: Tue Apr 16, 2002 4:59 pm
Contact:

Post by jcompton »

Okay. You're close, you just need to tighten up your understanding a little bit. First of all, you don't need that last END at the bottom and you stopped using capital letters after a while which can be a problem.

The basic PC-talking-to-NPC stuff is right, but your interjections are not.
IF ~~ THEN BEGIN HelpGroveTwo
SAY ~Yes. The solution. To regain the Grove, Faldorn will only fight by traditional druidic procedures. None other than a druid may challenge her, so I suggest you either prepare one that is currently in your party, or either find another who would be willing to do the job.~
IF ~IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~It is quite possible that I can go into combat with Faldorn. However, it seems that this young woman here has more quarrel with the Shadow Druids than I. Perhaps the matter should be left to Cernd, or even Delara herself.~ GOTO SelectDruid
END
When you want to EXTERN to a new dialogue state (line), you must CREATE that new state with an APPEND. Here's how this works:
IF ~~ THEN BEGIN HelpGroveTwo
SAY ~Yes. The solution. BLAH BLAH BLAH willing to do the job.~
IF ~!IsValidForPartyDialog("Jaheira")~ THEN GOTO SelectDruid
IF ~IsValidForPartyDialog("Jaheira")~ THEN EXTERN JAHEIRAJ JaheiraComment1
END
Now, we need to insert Jaheira's line into the JAHEIRAJ (joined-party-dialogue/commentary) DLG file. You can do this with APPEND or APPENDI. I would use APPENDI in this circumstance, and just have the next section (before the AboutFaldorn state) be this:
APPENDI JAHEIRAJ
IF ~~ THEN BEGIN JaheiraComment1
SAY ~It is quite possible that I can go into combat with Faldorn. However, it seems that this young woman here has more quarrel with the Shadow Druids than I. Perhaps the matter should be left to Cernd, or even Delara herself.~
IF ~~ THEN EXTERN S#Delara SelectDruid
END
END
(APPENDI and APPEND need a second END when you're done appending, to tell WeiDU to stop appending!)

Now, here's what will happen:

If Jaheira is around, we'll branch from HelpGroveTwo to her comment, and then back to SelectDruid, part of the S#Delara dialogue.

If Jaheira is NOT around, we'll just go from HelpGroveTwo to SelectDruid.
"t's a testament to the determined RPG fraternity that a number of Baldur's Gate II mods have been successfully produced. The best can be found at pocketplane.net." - PC Gamer UK
User avatar
Aqua-chan
Posts: 4607
Joined: Sat Apr 13, 2002 9:17 am
Location: Right Off Elsewhere
Contact:

Post by Aqua-chan »

Thanks jcompton, you're the best. This will give me something to do until I get back on my home computer and start really getting this stuff together. :)
"There are worse things in the world than serving the whims of a deadly sex goddess." - Zevran
User avatar
jcompton
Posts: 427
Joined: Tue Apr 16, 2002 4:59 pm
Contact:

Post by jcompton »

Originally posted by Aqua-chan
Thanks jcompton, you're the best.
(Remembers something about "flop" and grumbles mightily.)
"t's a testament to the determined RPG fraternity that a number of Baldur's Gate II mods have been successfully produced. The best can be found at pocketplane.net." - PC Gamer UK
User avatar
jcompton
Posts: 427
Joined: Tue Apr 16, 2002 4:59 pm
Contact:

Post by jcompton »

Remember to fix the other interjections you have further down in the same way.
"t's a testament to the determined RPG fraternity that a number of Baldur's Gate II mods have been successfully produced. The best can be found at pocketplane.net." - PC Gamer UK
User avatar
Aqua-chan
Posts: 4607
Joined: Sat Apr 13, 2002 9:17 am
Location: Right Off Elsewhere
Contact:

Post by Aqua-chan »

Originally posted by jcompton


(Remembers something about "flop" and grumbles mightily.)
Hey! I was talking only about one specfic dialog there! Not the whole guy! Jeeze!

...I'm sorry, but the only person I take that kind of lip he gave me is my mother. :p ;)

Yes, yes. I'll fix the baddies in there soon...
"There are worse things in the world than serving the whims of a deadly sex goddess." - Zevran
Post Reply